Project

General

Profile

Bug #1900

Fix detection and build issues with libcrypto++

Added by Anonymous about 12 years ago. Updated about 12 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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'

0003-Handle-corner-case-of-crypto-correctly-i.e.-use-c-wh.patch View - fixing crypto++ detection (1.47 KB) Anonymous, 01/07/2012 07:23 AM

History

#1 Updated by Sage Weil about 12 years ago

  • Priority changed from Normal to High

#2 Updated by Sage Weil about 12 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF