[odb-users] Build error on CentOS 6

Dave Johansen davejohansen at gmail.com
Mon Feb 18 23:28:44 EST 2013

I just tried building 2.2 on CentOS 6 and I get the following error:
libtool: link: /opt/centos/devtoolset-1.1/root/usr/bin/g++ -g -O2 -o
.libs/odb odb-odb.o odb-option-types.o odb-option-functions.o odb-profile.o
semantics/relational/odb-name.o odb-options.o
-Wl,-rpath -Wl,/usr/local/lib
/usr/bin/ld: .libs/odb: undefined reference to symbol 'pthread_cancel@
/usr/bin/ld: note: 'pthread_cancel@@GLIBC_2.0' is defined in DSO
/lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation

Please let me know if there's anything else I can do to try and diagnose
the problem.


More information about the odb-users mailing list