Menu

#2139 net-snmpd v5.5 "undefined reference to `pthread_create'"

linux
closed
nobody
configure (132)
5
2012-11-08
2010-04-12
No

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

Discussion

  • Bart Van Assche

    Bart Van Assche - 2010-05-12

    Thanks for reporting this issue. A fix is available on the trunk as r18721. This fix still has to be backported to the V5.5 and V5.4 branches though.

     
  • Bart Van Assche

    Bart Van Assche - 2010-06-18

    Backported to the 5.5 branch as r19048.

     
  • Bart Van Assche

    Bart Van Assche - 2010-06-18

    Note: in contrary to what I wrote earlier, this bug report does not apply to Net-SNMP 5.4.3.

    Please close this bug report.

     
  • Dave Shield

    Dave Shield - 2010-10-28

    Closing as requested

     
  • Dave Shield

    Dave Shield - 2010-10-28

    Thanks for the bug report!
    We've fixed the problem in the 5.5.x code branch
    and the main development tree, so it should be
    fixed in future releases of the Net-SNMP package.

     

Log in to post a comment.