Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.11.6, 10.4.33, 10.5.24, 10.6.17, 11.4.1
-
None
-
Ubuntu 22.04
Description
I use this with cmake: -DWITH_SSL=/home/mdcallag/d/openssl-111
And it is respected during the build. If I check binaries in the build directory they are linked against it. But after "make install" when I check with ldd on the installed binaries, they reference a different path to SSL.
In the build directory I see:
ldd ./extra/mariabackup/mariadb-backup | grep ssl
|
libssl.so.1.1 => /home/mdcallag/d/openssl-111/lib/libssl.so.1.1 (0x00007f4d68653000)
|
libcrypto.so.1.1 => /home/mdcallag/d/openssl-111/lib/libcrypto.so.1.1 (0x00007f4d68364000)
|
But after "make install" in the install directory I see:
ldd ma110401_rel/bin/mariadb-backup | grep ssl
|
libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f8680acc000)
|
My cmake command line is
BF=" -g1 "
|
CF=" $BF "
|
CXXF=" $BF "
|
|
#-DWITH_BOOST=$PWD/../boost \
|
#-DCMAKE_CXX_FLAGS="$CXXF" -DCMAKE_C_FLAGS="$CF" \
|
#-DWITH_NUMA=ON -DWITH_ROUTER=OFF -DWITH_MYSQLX=OFF \
|
#-DWITH_SSL=system \
|
#-DWITH_ZLIB=bundled \
|
#-DENABLED_LOCAL_INFILE=1 \
|
|
cmake .. \
|
-DCMAKE_BUILD_TYPE=Release \
|
-DMYSQL_MAINTAINER_MODE=OFF \
|
-DCMAKE_INSTALL_PREFIX=$1 \
|
-DWITH_EMBEDDED_SERVER=OFF \
|
-DWITH_UNIT_TESTS=OFF \
|
-DCONC_WITH_UNITTEST=OFF \
|
-DCONC_WITH_SSL=OFF \
|
-DWITH_SSL=/home/mdcallag/d/openssl-111 \
|
-DPLUGIN_ARCHIVE=NO \
|
-DPLUGIN_TOKUDB=NO \
|
-DPLUGIN_MROONGA=NO \
|
-DPLUGIN_OQGRAPH=NO \
|
-DPLUGIN_ROCKSDB=NO \
|
-DPLUGIN_CONNECT=NO \
|
-DPLUGIN_SPIDER=NO
|
In output from cmake I see:
-- The following RECOMMENDED packages have been found:
|
|
* OpenSSL
|
And
-- Found OpenSSL: /home/mdcallag/d/openssl-111/lib/libcrypto.so (found version "1.1.1w")
|
-- OPENSSL_INCLUDE_DIR = /home/mdcallag/d/openssl-111/include
|
-- OPENSSL_SSL_LIBRARY = /home/mdcallag/d/openssl-111/lib/libssl.so
|
-- OPENSSL_CRYPTO_LIBRARY = /home/mdcallag/d/openssl-111/lib/libcrypto.so
|
-- OPENSSL_VERSION = 1.1.1w
|
-- SSL_LIBRARIES = /home/mdcallag/d/openssl-111/lib/libssl.so;/home/mdcallag/d/openssl-111/lib/libcrypto.so;dl
|
-- TLS library/version: OpenSSL 1.1.1w
|
-- SYSTEM_LIBS /usr/lib/x86_64-linux-gnu/libz.so;dl;m;dl;m;/home/mdcallag/d/openssl-111/lib/libssl.so;/home/mdcallag/d/openssl-111/lib/libcrypto.so
|
-- SYSTEM_LIBS: /usr/lib/x86_64-linux-gnu/libz.so;dl;m;dl;m;/home/mdcallag/d/openssl-111/lib/libssl.so;/home/mdcallag/d/openssl-111/lib/libcrypto.so;/usr/lib/x86_64-linux-gnu/libz.so
|
-- SSL support: OPENSSL Libs: /home/mdcallag/d/openssl-111/lib/libssl.so;/home/mdcallag/d/openssl-111/lib/libcrypto.so
|