[xsd-users] pthread issues when compiling libxsd-frontend

Gavin Davies gavin.s.davies at gmail.com
Sat Jun 11 20:02:00 EDT 2011


Hi All,

Please help. I have been trying to install xsd from source and have followed
the build instructions using a pre-installed boost and xerces_c and
specifying their src_root and out_root in the interactive configuration.
I receive the following error when building libxsd-frontend:

ld /nova/app/users/gsdavies/art/xsd-3.3.0/examples/cxx/tree/embedded/xsdbin
/nusoft/app/externals/xerces_c/v3_1_1/Linux64bit+2.6-2.5-gcc45/lib/libxerces-c.a(PosixMutexMgr.o):
In function
`xercesc_3_1::PosixMutexMgr::create(xercesc_3_1::MemoryManager*)':
/archives/nova/novasoft/xerces_c/v3_1_1/source/xerces-c-3.1.1/src/xercesc/util/MutexManagers/PosixMutexMgr.cpp:60:
undefined reference to `pthread_mutexattr_init'
/archives/nova/novasoft/xerces_c/v3_1_1/source/xerces-c-3.1.1/src/xercesc/util/MutexManagers/PosixMutexMgr.cpp:61:
undefined reference to `pthread_mutexattr_settype'
/archives/nova/novasoft/xerces_c/v3_1_1/source/xerces-c-3.1.1/src/xercesc/util/MutexManagers/PosixMutexMgr.cpp:66:
undefined reference to `pthread_mutexattr_destroy'
collect2: ld returned 1 exit status
make: ***
[/nova/app/users/gsdavies/art/xsd-3.3.0/examples/cxx/tree/embedded/xsdbin]
Error 1

>From what I gather it is because I am may be missing a link to the pthread
library but I can't seem to link this anywhere in the build of
libxsd-frontend. Any help/insight?

Cheers,
Gavin


More information about the xsd-users mailing list