On 02/23/2011 11:07 PM, Khem Raj wrote:
> On Tue, Feb 22, 2011 at 11:55 PM, Steffen Sledz <[email protected]> wrote:
>> Again a clean build:
>>
>> OE:hipox sledz@mobil-400-586:~/work/openembedded> bitbake net-snmp
>> ...
>>
>> Build Configuration:
>> BB_VERSION        = "1.12.0"
>> METADATA_BRANCH   = "org.openembedded.dev"
>> METADATA_REVISION = "8e4bd2f"
>> TARGET_ARCH       = "arm"
>> TARGET_OS         = "linux-gnueabi"
>> MACHINE           = "hipox"
>> DISTRO            = "angstrom"
>> DISTRO_VERSION    = "2010.7-test-20110223"
>> TARGET_FPU        = "soft"
>>
>> ...
>> libtool: link: arm-angstrom-linux-gnueabi-gcc -march=armv5te 
>> -mtune=arm926ej-s -Wl,-rpath-link 
>> -Wl,/home/sledz/work/OE-testing/tmp.6/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib
>>  -Wl,-O1 -Wl,--hash-style=gnu -mthumb-interwork -mno-thumb 
>> -DNETSNMP_ENABLE_IPV6 
>> -isystem/home/sledz/work/OE-testing/tmp.6/sysroots/armv5te-angstrom-linux-gnueabi/usr/include
>>  -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 
>> -ggdb2 -Ulinux -Dlinux=linux -Wall -Winline -Wstrict-prototypes 
>> -Wwrite-strings -Wcast-qual -Wno-char-subscripts -o .libs/snmpd 
>> .libs/snmpd.o -Wl,-rpath-link 
>> -Wl,/home/sledz/work/OE-testing/tmp.6/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib
>>  -Wl,-O1 -Wl,--hash-style=gnu  
>> -L/home/sledz/work/OE-testing/tmp.6/work/armv5te-angstrom-linux-gnueabi/net-snmp-svn-r7.0/net-snmp/agent/.libs
>>  
>> -L/home/sledz/work/OE-testing/tmp.6/work/armv5te-angstrom-linux-gnueabi/net-snmp-svn-r7.0/net-snmp/agent/helpers/.libs
>> -L/home/sledz/work/OE-testing/tmp.6/work/armv5te-angstrom-linux-gnueabi/net-snmp-svn-r7.0/net-snmp/snmplib/.libs
>>  
>> -L/home/sledz/work/OE-testing/tmp.6/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib
>>  
>> -L/home/sledz/work/OE-testing/tmp.6/work/armv5te-angstrom-linux-gnueabi/net-snmp-svn-r7.0/net-snmp/snmplib
>>  
>> -L/home/sledz/work/OE-testing/tmp.6/work/armv5te-angstrom-linux-gnueabi/net-snmp-svn-r7.0/net-snmp/agent/helpers
>>  ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so 
>> ./.libs/libnetsnmpmibs.so 
>> /home/sledz/work/OE-testing/tmp.6/work/armv5te-angstrom-linux-gnueabi/net-snmp-svn-r7.0/net-snmp/agent/helpers/.libs/libnetsnmphelpers.so
>>  
>> /home/sledz/work/OE-testing/tmp.6/work/armv5te-angstrom-linux-gnueabi/net-snmp-svn-r7.0/net-snmp/agent/.libs/libnetsnmpagent.so
>>  
>> /home/sledz/work/OE-testing/tmp.6/work/armv5te-angstrom-linux-gnueabi/net-snmp-svn-r7.0/net-snmp/snmplib/.libs/libnetsnmp.so
>>  -ldl ../snmplib/.libs/libnetsnmp.so -lcrypto -lssl
>> ./.libs/libnetsnmpmibs.so: undefined reference to `pthread_create'
>> collect2: ld returned 1 exit status
>> make[1]: *** [snmpd] Error 1
> 
> confgure could have a test to use/not use libpthread to link and this
> test may be failing for some reason and disabling libpthread from
> getting into
> linker commandline and resulting in this. look at config.log I would
> say and see what games it plays with libpthread tests if they are
> runtime
> tests then they wont succeed for sure.

Nothing suspicios in config.log:

...
configure:27538: checking pthread.h usability
configure:27555: arm-angstrom-linux-gnueabi-gcc -march=armv5te 
-mtune=arm926ej-s -Wl,-O1 -Wl,--hash-style=gnu -mthumb-interwork -mno-thumb -c 
-DNETSNMP_ENABLE_IPV6 -fexpensive-optimizations -frename-registers 
-fomit-frame-pointer -O2 -ggdb2 -Ulinux -Dlinux=linux  conftest.c >&5
configure:27562: $? = 0
configure:27576: result: yes
configure:27580: checking pthread.h presence
configure:27595: arm-angstrom-linux-gnueabi-gcc -E  conftest.c
configure:27602: $? = 0
configure:27616: result: yes
configure:27649: checking for pthread.h
configure:27658: result: yes
...
ac_cv_header_pthread_h=yes
...
#define _POSIX_PTHREAD_SEMANTICS 1
...
#define HAVE_PTHREAD_H 1
...

Steffen

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:[email protected]
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to