Re: net-snmpd v5.5 build fails with "undefined reference to `pthread_create'"

"Howarth, James" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I do not quite follow your response.

Are you suggesting that this is bug and config_os_libs should be modified? If so should I create a bug for this?

Or are you suggesting that I have not configured the build correctly via the configure command?

Sorry for the naive questions but I am sure how to move forward on this problem.

Thanks.

James Howarth

On Apr 3, 2010, at 5:01 AM, Bart Van Assche wrote:

On Fri, Apr 2, 2010 at 10:17 PM, Wes Hardaker <[email protected]<mailto:[email protected]>> wrote:
>>>>> On Wed, 31 Mar 2010 15:34:00 +0000, James Howarth <[email protected]<mailto:[email protected]>> said:

JH> ./configure --enable-ipv6 --disable-embedded-perl

Are you sure that's *all* the options you used?  Because this error:

 JH> ./.libs/libnetsnmpmibs.so: undefined reference to `pthread_create'

Seems to indicate that a mib module was compiled in that wants threads
support, and none of the base distribution modules should require it.

I'm not sure that I understood the above correctly, but there is a pthread_create() call present in the source file agent/mibgroup/if-mib/data_access/interface_linux.c. Shouldn't an AC_CHECK_LIB test for libpthread be added to configure.d/config_os_libs ?

Bart.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.