[MDEV-24498] mysql_config reports wrong libs for libmysqld Created: 2020-12-28  Updated: 2021-02-01

Status: Stalled
Project: MariaDB Server
Component/s: Compiling, Packaging
Affects Version/s: 10.5.8
Fix Version/s: 10.5

Type: Bug Priority: Minor
Reporter: Heinz Wiesinger Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None


 Description   

$ mysql_config --libmysqld-libs
-L/usr/lib64  -lmysqld -lpthread -lcrypt -llz4 -llzo2 -llzma -lbz2 -laio -lz -lm -lssl -lcrypto -ldl -ltpool

mysql_config reports -ltpool as library for apps linking libmysqld, but libtpool is linked statically during the build:

[ 91%] Linking CXX shared library libmariadbd.so
cd /tmp/mariadb-10.5.8/build/libmysqld && /usr/bin/cmake -E cmake_link_script CMakeFiles/libmysqld.dir/link.txt --verbose=1
/usr/libexec/icecc/bin/c++ -fPIC -O2 -fPIC -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -O3 -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -Wno-uninitialized -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -DDBUG_OFF -Wall -Wextra -Wno-format-truncation -Wno-init-self -Wno-nonnull-compare -Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -Wvla -Wwrite-strings  -Wl,--no-undefined  -Wl,-z,relro,-z,now -shared -Wl,-soname,libmariadbd.so.19 -o libmariadbd.so.19 CMakeFiles/libmysqld.dir/libmysqld_exports_file.cc.o  -lpthread libmariadbd.a -lcrypt -llz4 -llzo2 -llzma -lbz2 -lz -lm -lssl -lcrypto -ldl ../tpool/libtpool.a -lpthread -laio



 Comments   
Comment by Sergei Golubchik [ 2021-01-28 ]

How did you configure the build? the cmake line, I mean.
I don't see -ltpool in my compiled 10.5 branch.

Comment by Sergei Golubchik [ 2021-01-28 ]

got it, nevermind

Generated at Thu Feb 08 09:30:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.