Problem of dependencies in casablanca

Apr 10, 2014 at 7:19 AM
Edited Apr 10, 2014 at 7:19 AM
Hello,

I manage to compile casablanca in CentOs but when I do an ldd on the libcasablanca.so I got:

./libcasablanca.so: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.18' not found (required by ./libcasablanca.so)
./libcasablanca.so: /usr/lib64/libstdc++.so.6: version
GLIBCXX_3.4.15' not found (required by ./libcasablanca.so)
./libcasablanca.so: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.14' not found (required by ./libcasablanca.so)
./libcasablanca.so: /usr/lib64/libstdc++.so.6: version
GLIBCXX_3.4.19' not found (required by ./libcasablanca.so)
./libcasablanca.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/user/dev/rebld/src/boost_1_55_0/lib/libboost_regex-gcc48-mt-1_55.so.1.55.0)

I used libboost 1.55 and gcc 4.8.2.
I recompile libboost first then gcc 4.8.2.

If you have an idea ?

Thanks
Marked as answer by kristo33 on 4/9/2014 at 11:37 PM
Coordinator
Apr 10, 2014 at 8:02 AM
Hi again kristo,

You've got an interesting error here. My gut impression is that you either have your toolchains slightly misconfigured or you're somehow using binaries for a different machine.

Searching your error leads me to this stackoverflow.

Could you try running the following commands (in the appropriate directories) and reporting back what they say?
strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
ldd -v libcasablanca.so
ldd -v libboost.so
Thanks,
roschuma
Apr 10, 2014 at 8:28 AM
Hi,

I succeed in found the answer. I was not using the right libstdc++. It was not the one generated by my compile of gcc 4.8.2.

Thanks
Marked as answer by kristo33 on 4/10/2014 at 12:28 AM
Apr 11, 2014 at 6:18 PM
kristo33, it would be very helpful if you could document whatever is needed to get C++ Rest SDK running on CentOS/Red Hat. Otherwise, I'll have to retrace your steps in a few weeks.
Jun 2, 2014 at 6:36 PM
I ran into the same problem. The reason is that I built a custom gcc 4.8.3 and didn't tell the linker
to pick up the libstdc++.so file that came with it, i.e.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/gcc4.8.3/lib64

Then

cmake ..

succeeded.