incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dykman <mdyk...@gmail.com>
Subject DataStax C++ on Ubuntu - linking question
Date Thu, 06 Mar 2014 14:36:29 GMT
I managed to get libcql.so built without error but am somewhat
confused about the depending libraries.   In the documentation, I read
that the XX-mt version of boost are required (which makes all kinds of
sence) and files generated by cmake seem to agree as I have:

In ./CMakeFiles/cql.dir/build.make
...
libcql.so.0.7.0: /usr/lib/libboost_system-mt.so
libcql.so.0.7.0: /usr/lib/libboost_thread-mt.so
...

which are the version I would expect.

When I examine the resulting shared library though, I see this:

mdykman@sage:~/projects/datastax-cpp-driver$ ldd libcql.so
linux-vdso.so.1 =>  (0x00007fff5d5fc000)
   libboost_system.so.1.46.1 => /usr/lib/libboost_system.so.1.46.1
(0x00007fbf2f999000)
     libboost_thread.so.1.46.1 => /usr/lib/libboost_thread.so.1.46.1
(0x00007fbf2f780000)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fbf2f521000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(0x00007fbf2f146000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbf2ef29000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbf2ec28000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbf2e92c000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbf2e716000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbf2e355000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbf2e151000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbf2df3a000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbf301eb000)

I have confirmed that /usr/lib has both -mt and non-mt  version of all
the shared libraries.

Does anyone know why my version appears to have linked to the
single-threaded version and what I can do to fix that?


-- 
 - michael dykman
 - mdykman@gmail.com

 May the Source be with you.

Mime
View raw message