RE: 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]> |
I actually was able to find a solution to this. I'm using version 5.5 and it appears that version 5.5.1 has removed the calls to the pthread library. I'm able to compile with IPv6 enabled without specifying the pthread library. Also, no extra children are spawned when I launch version 5.5.1 of snmpd. The only thing I don't understand now is why IPV6-ICMP-MIB isn't being returned. I enabled it and IPV6-MIB on the "--with-mibs" line, but snmpd is only returning IPV6-MIB. From: [email protected] To: [email protected] Subject: Is it possible to enable IPv6 support without the pthread library? Date: Mon, 18 Apr 2011 19:05:33 -0400 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. ------------------------------------------------------------------------------ Fulfilling the Lean Software Promise Lean software platforms are now widely adopted and the benefits have been demonstrated beyond question. Learn why your peers are replacing JEE containers with lightweight application servers - and what you can gain from the move. http://p.sf.net/sfu/vmware-sfemails _______________________________________________ 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