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
Created attachment 48414 [details, diff] Quick&Dirty solution
Any comments, John?
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.
Taking over maintainership of this package.
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.