Bug #1900
Fix detection and build issues with libcrypto++
0%
Description
Currently ceph's build system uses AC_SEARCH_LIBS (in some cases) to search for libcrypto++. As a result C++ library is unconditionally added to LIBS when found.
That leads to --as-needed compilation failures of C programs in following checks, due to lack of stdc++ in link phase:
configure:16883: x86_64-pc-linux-gnu-gcc -o conftest -g -O2 conftest.c -lcrypto++ -lpthread >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libcrypto++.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& std::ws<char, std::char_traits<char> >(std::basic_istream<char, std::char_traits<char> >&)'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libcrypto++.so: undefined reference to `typeinfo for std::exception'
History
#1 Updated by Sage Weil almost 12 years ago
- Priority changed from Normal to High
#2 Updated by Sage Weil almost 12 years ago
- Status changed from New to Resolved