From: SourceForge.net <no...@so...> - 2010-04-12 13:20:46
|
Bugs item #2985915, was opened at 2010-04-12 09:20 Message generated for change (Tracker Item Submitted) made by jamiehowarth248 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2985915&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: configure Group: linux Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jamie Howarth (jamiehowarth248) Assigned to: Nobody/Anonymous (nobody) Summary: net-snmpd v5.5 "undefined reference to `pthread_create'" Initial Comment: There appears to be an issue with building build net-snmpd v5.5 from the sources with the options '--enable-ipv6 --disable-embedded-perl'. Eventually I will be building on a custom version of Linux but I see the same problem when I try and build on a stock ubuntu distribution (9.10). I used the following options: ./configure --enable-ipv6 --disable-embedded-perl When I build, it stops with the following error: libtool: link: gcc -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -o .libs/snmpd .libs/snmpd.o -L/home/jhowarth/net-snmp-5.5/agent/.libs -L/home/jhowarth/net-snmp-5.5/agent/helpers/.libs -L/home/jhowarth/net-snmp-5.5/snmplib/.libs -L/home/jhowarth/net-snmp-5.5/snmplib -L/home/jhowarth/net-snmp-5.5/agent/helpers ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so /home/jhowarth/net-snmp-5.5/agent/helpers/.libs/libnetsnmphelpers.so /home/jhowarth/net-snmp-5.5/agent/.libs/libnetsnmpagent.so /home/jhowarth/net-snmp-5.5/snmplib/.libs/libnetsnmp.so -ldl ../snmplib/.libs/libnetsnmp.so ./.libs/libnetsnmpmibs.so: undefined reference to `pthread_create' collect2: ld returned 1 exit status make[1]: *** [snmpd] Error 1 I verified that v5.4.2.1 builds successfully using the same configuration options on the same ubuntu box. I have posted this to the user mail list and another user has been able to replicate this problem. Bart - 'Yes, I consider this as a bug in the Net-SNMP configure scripts. Please create a bug report. I have been able to reproduce the issue you reported with r18453 of the source code on the 5.5 branch. Apparently it's the configure option --disable-embedded-perl that triggers the breakage. A possible workaround is to use the following configure command: ./configure --enable-ipv6 --disable-embedded-perl --with-libs=-lpthread ' Jamie Howarth ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2985915&group_id=12694 |