Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77876 - xerces-c-2.6.0 should be linked against libpthread.so
Summary: xerces-c-2.6.0 should be linked against libpthread.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Mark Loeser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-13 12:04 UTC by golloza
Modified: 2005-07-07 20:36 UTC (History)
0 users

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


Attachments
Quick&Dirty solution (pthread-patch.diff,292 bytes, patch)
2005-01-13 12:08 UTC, golloza
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description golloza 2005-01-13 12:04:33 UTC
I emerged xerces-c-2.6.0, linked something (Half-Life 2 Linux SDK if that matters) against libxerces-c.so and got these errors:
/usr/lib/libxerces-c.so: undefined reference to `pthread_mutexattr_destroy'
/usr/lib/libxerces-c.so: undefined reference to `pthread_mutexattr_settype'
/usr/lib/libxerces-c.so: undefined reference to `pthread_mutexattr_init'

I prepended `LDFLAGS="${LDFLAGS} -lpthread"` to the econf line, now it gets linked against libpthread.so and works for me.

But I don't know whether or not this is the right solution (does it break with nptl/nptlonly?).

Shouldn't the ebuild better use runConfigure instead econf?
http://xml.apache.org/xerces-c/build-winunix.html#UNIX
Comment 1 golloza 2005-01-13 12:08:35 UTC
Created attachment 48414 [details, diff]
Quick&Dirty solution
Comment 2 golloza 2005-03-22 09:33:46 UTC
Any comments, John?
Comment 3 Thiago 2005-04-17 09:24:50 UTC
Christoph, I had the sabe problem here trying to compile HL2 SDK and your solution worked fine, thanks.

The LDFLAGS variable probably is one of the "strange environment variables you need to use..." mentioned at the build structions of xerces-c. I hope that this is the only problem caused by not using the provided runConfigure script.
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2005-07-07 20:31:12 UTC
Taking over maintainership of this package.
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2005-07-07 20:36:13 UTC
I switched the ebuild to use runConfigure instead.  The patch is not needed. 
Thanks for the report.  Try out xerces-c-2.6.0-r1.