Discussion:
dlopen failed: /*.so undefined symbol: pthread_create
William
2011-05-15 08:26:22 UTC
Permalink
 
Dear:

I develop my project using the net-snmp 5.4.2.1,with cross-tools
arm-linux-gcc.
After I configure ,make ,and make install.

It works well when I snmpget/snmpset the sysUpTime etc..
When I start the snmpd service:
#snmpd -f -Lo -d
Error appears:
dlopen failed: /usr/lib/libuart.so: undefined symbol: pthread_create

I guess it's the problem about the configure arguments,so I added the
"--enable-reentrant",the problem still exist.

The configure arguments as following:
CC=arm-linux-gcc ./configure --build=i386-linux --host=arm-linux
--disable-ipv6 --with-endianness=little --disable-manuals
--disable-ucd-snmp-compatibility --enable-as-needed --disable-embedded-perl
--without-perl-modules --disable-snmptrap-subagent --disable-scripts
--enable-reentrant

Looking forward to your help!
Bart Van Assche
2011-05-15 15:44:15 UTC
Permalink
Post by William
I develop my project using the net-snmp 5.4.2.1,with cross-tools
arm-linux-gcc.
After I configure ,make ,and make install.
It works well when I snmpget/snmpset the sysUpTime etc..
#snmpd -f -Lo -d
dlopen failed: /usr/lib/libuart.so: undefined symbol: pthread_create
I guess it's the problem about the configure arguments,so I added the
"--enable-reentrant",the problem still exist.
CC=arm-linux-gcc ./configure --build=i386-linux --host=arm-linux
--disable-ipv6 --with-endianness=little --disable-manuals
--disable-ucd-snmp-compatibility --enable-as-needed --disable-embedded-perl
--without-perl-modules --disable-snmptrap-subagent --disable-scripts
--enable-reentrant
Please try again with a more recent Net-SNMP version -- older versions link
with the pthread library, newer ones do not. I'm not sure which versions - a
look at the release notes should allow you to find out from which version on
linking with libpthread.so does no longer happen.

Bart.

Loading...