[odb-users] Build error on CentOS 6

Boris Kolpackov boris at codesynthesis.com
Tue Feb 19 00:29:19 EST 2013


Dave Johansen <davejohansen at gmail.com> writes:

> I just tried building 2.2 on CentOS 6 and I get the following error:
>
> [...]
>
> /usr/bin/ld: .libs/odb: undefined reference to symbol 'pthread_cancel@@GLIBC_2.0'
> /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

I believe this thread explains what happens:

http://lists.fedoraproject.org/pipermail/devel/2010-January/129148.html

Now, because internal Boost uses threads by default, libcutl links
to -lpthread. And this leads to what is described in that mailing
list post. I am trying to confirm this on FC17 right now.

In the meantime, you can build libcutl with threads disabled (ODB
does not use threads) by passing the --disable-threads configure
option. I believe this will fix the issue.

Boris



More information about the odb-users mailing list