Is it possible to enable IPv6 support without the pthread library?
Zack Little <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello. I'm having trouble enable IPv6 support with snmpd from version 5.5. I added the following items to when I call configure: --with-transports="UDP TCP Unix UDPIPv6 TCPIPv6" --with-mib-modules="mibII host notification ucd_snmp mibII/ipv6" --with-mibs="IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB:HOST-RESOURCES-MIB:HOST-RESOURCES-TYPES:UCD-SNMP-MIB:ATT-NETGATE-MIB:ENTITY-MIB:IPV6-MIB:IPV6-ICMP-MIB" --enable-ipv6 When I did this I found that I got the following error when I tried to compile: interface_linux.c:(.text+0x990): undefined reference to `pthread_create' collect2: ld returned 1 exit status I fixed this by adding a “--with-libs="-lpthread"”. However, once snmpd is launched I noticed something very odd. If I launch snmpd then three instances of it get created (the one I launched, which launches a child, which also launches a child).11624 11433 root pts0 3976 2556 S 04/18 15:43:03 0:16 /bin/snmpd -V -a -f -c /etc/config/snmpd.conf -Ls d 11625 11624 root pts0 3976 2556 S 04/18 15:43:03 0:00 /bin/snmpd -V -a -f -c /etc/config/snmpd.conf -Ls d 11626 11625 root pts0 3976 2556 S 04/18 15:43:03 0:00 /bin/snmpd -V -a -f -c /etc/config/snmpd.conf -Ls d Snmpd does answer my polling requests with this configuration. However, I encounter a big problem when I want to launch several instances of snmpd, with each being passed IP address they should listen on. Normally in a particular configuration I use I’ll launch three instances of snmpd, each listening on a different local loopback address. Another instance of snmpd is launched when my IPSec tunnel is in use (obviously snmpd listens on the IPSec interface IP address). Because of what I mentioned earlier the three instaces of snmpd launched for my local loopback addresses make a total of 9 instances of snmpd that get launched. When I try to launch another for my IPSec interface it won’t start. Sometimes in the messages file I’ll see this error: error on subcontainer 'ia_index' insert (-1) My research on that error found some posts from people who encountered it when they had the same IP address being used on different interfaces, which does not apply to me. All of this works fine with IPv4. I just want a way to return some IPv6 information with the information already being returned. I’m assuming that the two children launched for each instance of snmpd are because I’m compiling with pthread support. Is there a way not to do this and still use IPv6? Thank you. ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users