Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253742 - dev-libs/xerces-c-3.0.0-r1 - ThreadTest.cpp:(.text+0x21cc): undefined reference to `pthread_create'
Summary: dev-libs/xerces-c-3.0.0-r1 - ThreadTest.cpp:(.text+0x21cc): undefined referen...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-04 16:27 UTC by René Rhéaume (a.k.a. repzilon, rener)
Modified: 2009-03-02 08:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,3.46 KB, text/plain)
2009-01-04 16:28 UTC, René Rhéaume (a.k.a. repzilon, rener)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume (a.k.a. repzilon, rener) 2009-01-04 16:27:52 UTC
When I emerge xerces-c, it fails its test suite because it fails to *build* it.

Reproducible: Always

Steps to Reproduce:
1. FEATURES="test" emerge -1 xerces-c


Actual Results:  
make check failed

Compiling src/ThreadTest/ThreadTest.cpp
i486-pc-linux-gnu-g++ -march=athlon-xp -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -Wl,-O1 -o .libs/ThreadTest src/ThreadTest/ThreadTest.o  ../src/.libs/libxerces-c.so -lnsl
src/ThreadTest/ThreadTest.o: In function `ThreadFuncs::startThread(void (*)(void*), void*)':
ThreadTest.cpp:(.text+0x21cc): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[2]: *** [ThreadTest] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1


Expected Results:  
Test suite built and hopefully run successfully, so it can be merged to the system.

Appending -pthread to the link command line shown the actual results section fixes the issue. However, I do not know to apply the fix in Makefile.{am,in} .
Comment 1 René Rhéaume (a.k.a. repzilon, rener) 2009-01-04 16:28:06 UTC
Created attachment 177356 [details]
emerge --info
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2009-03-02 08:59:43 UTC
Upstream seems to have it fixed for version 3.0.1.