Summary: | app-mobilephone/gammu-1.32.0 - ld: cannot find -lmysqlclient (looking for /usr/lib64/mysql/libmysqlclient.so) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | grknight, kripton, rose |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
ls -latrR /usr/lib32
gammu-1.33.0.ebuild |
Description
Martin Mokrejš
2013-09-14 16:57:12 UTC
I should have added that on this new Gentoo install this was created for me: /lib -> /lib64 I got around by USE=-mysql I just copied the 1.32.0 ebuild under 1.33.0 name and tried the newer version but no diff. It's nothing to do with 64-bit/no-multilib profiles, but with the "new" /usr/lib64/mysql subdir. Could not confirm here, only difference I see between my equery files and yours is that I have /usr/lib64/libmysqlclient as a symlink to mysql/libmysqlclient.so.18.0.0. Have you rebuilt mysql? I reinstalled mysql again but that did not help. I manually entered the source dir and types "make" to see where would it continue. There is another places ahead with same symptom: Linking C shared library libgsmsd.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqlclient Probably the answer is here. gammu-1.33.0_build # grep mysqlclient * CMakeCache.txt:MYSQL_LIBRARIES:FILEPATH=/usr/lib32/libmysqlclient.so;/usr/lib64/libpthread.so;/usr/lib64/libz.so;/usr/lib64/libm.so;/usr/lib64/librt.so;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libdl.so CMakeCache.txt:MYSQL_LIBRARIES_mysqlclient:FILEPATH=/usr/lib32/libmysqlclient.so CMakeCache.txt:gsmsd_LIB_DEPENDS:STATIC=general;libGammu;general;array;general;/usr/lib64/libodbc.so;general;/usr/lib32/libmysqlclient.so;general;/usr/lib64/libpthread.so;general;/usr/lib64/libz.so;general;/usr/lib64/libm.so;general;/usr/lib64/librt.so;general;/usr/lib64/libssl.so;general;/usr/lib64/libcrypto.so;general;/usr/lib64/libdl.so; gammu-1.33.0_build # # ls -la /usr/lib32/libmysqlclient.so lrwxrwxrwx 1 root root 30 Sep 18 00:00 /usr/lib32/libmysqlclient.so -> mysql/libmysqlclient.so.16.0.0 # ls -la /usr/lib32/mysql/libmysqlclient.so.16.0.0 -rwxr-xr-x 1 root root 1474508 Feb 24 2013 /usr/lib32/mysql/libmysqlclient.so.16.0.0 # Why do I hav old libmysqlclient.so.16.0.0 possibly coming from the stage3 fiel I donwloaded a week ago while doing the new install? I recompiled mysql jsut few minutes ago should that file should have been overwritten, right? # ls -la /usr/lib64/libmysq* lrwxrwxrwx 1 root root 20 Sep 9 20:25 /usr/lib64/libmysqlcppconn.so -> libmysqlcppconn.so.6 lrwxrwxrwx 1 root root 26 Sep 9 20:25 /usr/lib64/libmysqlcppconn.so.6 -> libmysqlcppconn.so.6.1.1.1 -rwxr-xr-x 1 root root 5064142 Sep 9 20:24 /usr/lib64/libmysqlcppconn.so.6.1.1.1 # These are correct (up-to-date). Complete listing is here: # equery files mysql | grep lib /etc/env.d/80mysql-libdir /usr/include/mysql/typelib.h /usr/lib64 /usr/lib64/mysql /usr/lib64/mysql/libmysqlclient.a /usr/lib64/mysql/libmysqlclient.so /usr/lib64/mysql/libmysqlclient.so.18 /usr/lib64/mysql/libmysqlclient.so.18.0.0 /usr/lib64/mysql/libmysqlclient_r.a /usr/lib64/mysql/libmysqlclient_r.so /usr/lib64/mysql/libmysqlclient_r.so.18 /usr/lib64/mysql/libmysqlclient_r.so.18.0.0 /usr/lib64/mysql/libmysqlservices.a /usr/lib64/mysql/plugin /usr/lib64/mysql/plugin/adt_null.so /usr/lib64/mysql/plugin/auth.so /usr/lib64/mysql/plugin/auth_socket.so /usr/lib64/mysql/plugin/auth_test_plugin.so /usr/lib64/mysql/plugin/daemon_example.ini /usr/lib64/mysql/plugin/debug /usr/lib64/mysql/plugin/ha_example.so /usr/lib64/mysql/plugin/ha_federated.so /usr/lib64/mysql/plugin/libdaemon_example.so /usr/lib64/mysql/plugin/mypluglib.so /usr/lib64/mysql/plugin/qa_auth_client.so /usr/lib64/mysql/plugin/qa_auth_interface.so /usr/lib64/mysql/plugin/qa_auth_server.so /usr/lib64/mysql/plugin/semisync_master.so /usr/lib64/mysql/plugin/semisync_slave.so # Created attachment 358920 [details]
ls -latrR /usr/lib32
Just grep for "Feb " in this file for files which I believe are useless for me on amd64 (non-multilib). So, a distribution media issue? shall I find the installation files?
*** Bug 485276 has been marked as a duplicate of this bug. *** Could it be that this bug is a duplicate of https://bugs.gentoo.org/show_bug.cgi?id=474952, i.e., that the ebuild system of gammu does not use mysql_config to generate the linker option? Do not know. But here is an output you might have asked for. ;) # mysql_config /usr/bin/mysql_config --libs Usage: /usr/bin/mysql_config [OPTIONS] Options: --cflags [-I/usr/include/mysql -pipe -maes -mpclmul -mpopcnt -fno-strict-aliasing -g -DNDEBUG] --include [-I/usr/include/mysql] --libs [-L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl] --libs_r [-L/usr/lib64/mysql -lmysqlclient_r -lpthread -lz -lm -lrt -lssl -lcrypto -ldl] --plugindir [/usr/lib64/mysql/plugin] --socket [/var/run/mysqld/mysqld.sock] --port [0] --version [5.5.32] --libmysqld-libs [-L/usr/lib64/mysql -lmysqld] --variable=VAR VAR is one of: pkgincludedir [/usr/include/mysql] pkglibdir [/usr/lib64/mysql] plugindir [/usr/lib64/mysql/plugin] # Any news? I just disabled mysql and that let me compile it (actually compiled 1.33.0). I did not investigate further. Created attachment 360274 [details]
gammu-1.33.0.ebuild
I suspect that this is indeed related to bug 474952, but I can't replicate it myself so I don't have a fix at this time. gammu-1.33.0 with USE=mysql fails to emerge, too. (In reply to Chris Reffett from comment #13) > I suspect that this is indeed related to bug 474952, but I can't replicate > it myself so I don't have a fix at this time. gammu-1.33.0 with USE=mysql fails to emerge, too. Why can't you replicate it? If I knew why I couldn't replicate it, then I would actually have an idea as to what the problem is. All I can say is that I have mysql 5.5 and latest gammu and I do not get a build failure. The s(In reply to Chris Reffett from comment #15) > If I knew why I couldn't replicate it, then I would actually have an idea as > to what the problem is. All I can say is that I have mysql 5.5 and latest > gammu and I do not get a build failure. The same happens with gammu-1.33.0 at all of my systems: cd /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/smsd && /usr/bin/cmake -E cmake_link_script CMakeFiles/gsmsd.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -fPIC -march=amdfam10 -O2 -pipe -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wno-pointer-sign -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -Wwrite-strings -Wredundant-decls -Wl,-O1 -Wl,--as-needed -Wl,-zrelro -Wl,--as-needed -shared -Wl,-soname,libgsmsd.so.7 -o libgsmsd.so.7.1.33.0 CMakeFiles/gsmsd.dir/core.c.o CMakeFiles/gsmsd.dir/services/files.c.o CMakeFiles/gsmsd.dir/services/null.c.o CMakeFiles/gsmsd.dir/services/sql.c.o CMakeFiles/gsmsd.dir/services/mysql.c.o CMakeFiles/gsmsd.dir/services/pgsql.c.o CMakeFiles/gsmsd.dir/services/dbi.c.o CMakeFiles/gsmsd.dir/services/odbc.c.o ../libgammu/libGammu.so.7.1.33.0 ../helper/libarray.a -ldbi -lodbc -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl -lpq ../helper/libstring.a -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lgobject-2.0 -lbluetooth -lusb-1.0 -lc -lm -Wl,-rpath,/var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/libgammu: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqlclient root@caiman:/root(20)# ll /usr/lib/libmysql* lrwxrwxrwx 1 root root 20 Nov 22 2012 /usr/lib/libmysqlcppconn.so -> libmysqlcppconn.so.6* lrwxrwxrwx 1 root root 26 Nov 22 2012 /usr/lib/libmysqlcppconn.so.6 -> libmysqlcppconn.so.6.1.1.1* -rwxr-xr-x 1 root root 646184 Nov 22 2012 /usr/lib/libmysqlcppconn.so.6.1.1.1* root@caiman:/root(21)# ll /usr/lib/mysql mysql/ mysql-workbench/ root@caiman:/root(21)# ll /usr/lib/mysql/libmysql* -rw-r--r-- 1 root root 3675212 Jun 29 09:12 /usr/lib/mysql/libmysqlclient.a lrwxrwxrwx 1 root root 16 Jun 29 09:12 /usr/lib/mysql/libmysqlclient_r.a -> libmysqlclient.a lrwxrwxrwx 1 root root 17 Jun 29 09:12 /usr/lib/mysql/libmysqlclient_r.so -> libmysqlclient.so* lrwxrwxrwx 1 root root 17 Jun 29 09:12 /usr/lib/mysql/libmysqlclient_r.so.18 -> libmysqlclient.so* lrwxrwxrwx 1 root root 17 Jun 29 09:12 /usr/lib/mysql/libmysqlclient_r.so.18.0.0 -> libmysqlclient.so* lrwxrwxrwx 1 root root 20 Jun 29 09:12 /usr/lib/mysql/libmysqlclient.so -> libmysqlclient.so.18* lrwxrwxrwx 1 root root 24 Jun 29 09:12 /usr/lib/mysql/libmysqlclient.so.18 -> libmysqlclient.so.18.0.0* -rwxr-xr-x 1 root root 3067304 Jun 29 09:12 /usr/lib/mysql/libmysqlclient.so.18.0.0* -rw-r--r-- 1 root root 19119474 Jun 29 09:12 /usr/lib/mysql/libmysqld.a lrwxrwxrwx 1 root root 15 Jun 29 09:12 /usr/lib/mysql/libmysqld.so -> libmysqld.so.18* lrwxrwxrwx 1 root root 19 Jun 29 09:12 /usr/lib/mysql/libmysqld.so.18 -> libmysqld.so.18.0.0* -rwxr-xr-x 1 root root 11201696 Jun 29 09:12 /usr/lib/mysql/libmysqld.so.18.0.0* -rw-r--r-- 1 root root 4378 Jun 29 09:12 /usr/lib/mysql/libmysqlservices.a I assume that it fails (https://bugs.gentoo.org/show_bug.cgi?id=474952) because 'mysql_config --libs' is not used by configure. root@caiman:/root(23)# mysql_config --libs -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl So the -L/usr/lib64/mysql option is missing in the call of gcc above. Chris, do you have a link from /usr/lib/mysql/libmysqld.so to /usr/lib/ ? Any news? It seems that MYSQL_LIBRARIES is set in .../gammu-1.33.0/cmake/FindMySQL.cmake: if (TMP_MYSQL_LIBRARIES) set(MYSQL_LIBRARIES ${TMP_MYSQL_LIBRARIES} CACHE FILEPATH "MySQL Libraries" FORCE) else (TMP_MYSQL_LIBRARIES) set(MYSQL_LIBRARIES ${TMP_MYSQL_LIBRARIES} CACHE FILEPATH "MySQL Libraries") endif (TMP_MYSQL_LIBRARIES) Furthermore there is a block: if(MYSQL_CONFIG) message(STATUS "Using mysql-config: ${MYSQL_CONFIG}") # set INCLUDE_DIR exec_program(${MYSQL_CONFIG} ARGS --include OUTPUT_VARIABLE MY_TMP) string(REGEX REPLACE "-I([^ ]+)( .*)?" "\\1" MY_TMP "${MY_TMP}") set(MYSQL_ADD_INCLUDE_DIR ${MY_TMP} CACHE FILEPATH INTERNAL) # set LIBRARY_DIR exec_program(${MYSQL_CONFIG} ARGS --libs OUTPUT_VARIABLE MY_TMP) set(MYSQL_ADD_LIBRARIES "") string(REGEX MATCHALL "(^| )-l[^ ]+" MYSQL_LIB_LIST "${MY_TMP}") foreach(LIB ${MYSQL_LIB_LIST}) string(REGEX REPLACE "[ ]*-l([^ ]*)" "\\1" LIB "${LIB}") list(APPEND MYSQL_ADD_LIBRARIES "${LIB}") endforeach(LIB ${MYSQL_LIBS}) set(MYSQL_ADD_LIBRARY_PATH "") string(REGEX MATCHALL "-L[^ ]+" MYSQL_LIBDIR_LIST "${MY_TMP}") foreach(LIB ${MYSQL_LIBDIR_LIST}) string(REGEX REPLACE "[ ]*-L([^ ]*)" "\\1" LIB "${LIB}") list(APPEND MYSQL_ADD_LIBRARY_PATH "${LIB}") endforeach(LIB ${MYSQL_LIBS}) else(MYSQL_CONFIG) But it seems me that MYSQL_CONFIG ia never defined in the gammu tree, so I don't understand if this block is executed or. Maybe someone with better knowledge of cmake can help. (In reply to Juergen Rose from comment #18) > But it seems me that MYSQL_CONFIG ia never defined in the gammu tree, so I > don't understand if this block is executed or. Maybe someone with better > knowledge of cmake can help. The MYSQL_CONFIG is defined: https://github.com/gammu/gammu/blob/master/cmake/FindMySQL.cmake#L19 If that is found, you should see it in cmake's output: https://github.com/gammu/gammu/blob/master/cmake/FindMySQL.cmake#L27 So that's good place where to start (I don't see it in this bug). Of course there might be bug in mysql-config output parsing... (In reply to Michal Čihař from comment #19) > (In reply to Juergen Rose from comment #18) > > But it seems me that MYSQL_CONFIG ia never defined in the gammu tree, so I > > don't understand if this block is executed or. Maybe someone with better > > knowledge of cmake can help. > > > The MYSQL_CONFIG is defined: > > https://github.com/gammu/gammu/blob/master/cmake/FindMySQL.cmake#L19 > > If that is found, you should see it in cmake's output: > > https://github.com/gammu/gammu/blob/master/cmake/FindMySQL.cmake#L27 > > So that's good place where to start (I don't see it in this bug). > > Of course there might be bug in mysql-config output parsing... I tried once more. First I did: "USE=-mysql emerge gammu" This worked: root@impala:/root(67)# emerge -pvD gammu These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-mobilephone/gammu-1.33.0 USE="bash-completion bluetooth curl dbi mysql* nls postgres python usb -debug -irda" LINGUAS="de fr ru -af -ar -bg -ca -cs -da -el -en_GB -es -et -fi -gl -he -hu -id -it -ko -nl -pl -pt_BR -sk -sv -sw -tr -zh_CN -zh_TW" 0 kB Now I try to emerge with mysql USE flag: root@impala:/root(68)# emerge -vD gammu 2>&1 | tee emerge_gammu.log This failes as before with : cd /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/getint.dir/link.txt --verbose=1 /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqlclient collect2: error: ld returned 1 exit status contrib/sqlreply/CMakeFiles/sqlreply.dir/build.make:95: recipe for target 'contrib/sqlreply/sqlreply' failed make[2]: *** [contrib/sqlreply/sqlreply] Error 1 libmysqlclient.so is in /usr/lib/mysql/: root@impala:/root(70)# ll /usr/lib/mysql/libmysqlclient* -rw-r--r-- 1 root root 9016476 Jun 29 2013 /usr/lib/mysql/libmysqlclient.a lrwxrwxrwx 1 root root 16 Jun 29 2013 /usr/lib/mysql/libmysqlclient_r.a -> libmysqlclient.a lrwxrwxrwx 1 root root 17 Jun 29 2013 /usr/lib/mysql/libmysqlclient_r.so -> libmysqlclient.so* lrwxrwxrwx 1 root root 17 Jun 29 2013 /usr/lib/mysql/libmysqlclient_r.so.18 -> libmysqlclient.so* lrwxrwxrwx 1 root root 17 Jun 29 2013 /usr/lib/mysql/libmysqlclient_r.so.18.0.0 -> libmysqlclient.so* lrwxrwxrwx 1 root root 20 Jun 29 2013 /usr/lib/mysql/libmysqlclient.so -> libmysqlclient.so.18* lrwxrwxrwx 1 root root 24 Jun 29 2013 /usr/lib/mysql/libmysqlclient.so.18 -> libmysqlclient.so.18.0.0* -rwxr-xr-x 1 root root 4885211 Jun 29 2013 /usr/lib/mysql/libmysqlclient.so.18.0.0* mysql_config shows this: root@impala:/root(72)# mysql_config --libs -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl If I grep /var/tmp/portage/app-mobilephone/gammu-1.33.0/temp/build.log for mysql, I see: root@impala:/root(73)# grep mysql /var/tmp/portage/app-mobilephone/gammu-1.33.0/temp/build.log * USE: amd64 bash-completion bluetooth curl dbi elibc_glibc kernel_linux linguas_de linguas_fr linguas_ru mysql nls postgres python usb userland_GNU -- Using mysql-config: /usr/bin/mysql_config -- Found MySQL: /usr/include/mysql, /usr/lib32/libmysqlclient.so;/usr/lib64/libpthread.so;/usr/lib64/libz.so;/usr/lib64/libm.so;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libdl.so cd /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/tests && /usr/bin/x86_64-pc-linux-gnu-gcc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DNDEBUG -march=amdfam10 -O2 -pipe -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wno-pointer-sign -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -Wwrite-strings -Wredundant-decls -I/var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/tests/../include -I/usr/include/mysql -o CMakeFiles/sizes.dir/sizes.c.o -c /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0/tests/sizes.c cd /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/contrib/sqlreply && /usr/bin/x86_64-pc-linux-gnu-gcc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DNDEBUG -march=amdfam10 -O2 -pipe -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wno-pointer-sign -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -Wwrite-strings -Wredundant-decls -I/usr/include/mysql -o CMakeFiles/sqlreply.dir/c/michal.c.o -c /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0/contrib/sqlreply/c/michal.c cd /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/tests && /usr/bin/x86_64-pc-linux-gnu-gcc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DNDEBUG -march=amdfam10 -O2 -pipe -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wno-pointer-sign -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -Wwrite-strings -Wredundant-decls -I/var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/tests/../include -I/usr/include/mysql -o CMakeFiles/array-test.dir/array-test.c.o -c /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0/tests/array-test.c cd /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/tests && /usr/bin/x86_64-pc-linux-gnu-gcc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DNDEBUG -march=amdfam10 -O2 -pipe -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wno-pointer-sign -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -Wwrite-strings -Wredundant-decls -I/var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0_build/tests/../include -I/usr/include/mysql -o CMakeFiles/getint.dir/getint.c.o -c /var/tmp/portage/app-mobilephone/gammu-1.33.0/work/gammu-1.33.0/tests/getint.c /usr/bin/x86_64-pc-linux-gnu-gcc -march=amdfam10 -O2 -pipe -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wno-pointer-sign -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -Wwrite-strings -Wredundant-decls -Wl,-zrelro -Wl,--as-needed -Wl,-O1 -Wl,--as-needed CMakeFiles/sqlreply.dir/c/michal.c.o -o sqlreply -rdynamic -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqlclient So mysql_config seems to be used, but the part: # set LIBRARY_DIR exec_program(${MYSQL_CONFIG} ARGS --libs OUTPUT_VARIABLE MY_TMP) set(MYSQL_ADD_LIBRARIES "") string(REGEX MATCHALL "(^| )-l[^ ]+" MYSQL_LIB_LIST "${MY_TMP}") foreach(LIB ${MYSQL_LIB_LIST}) string(REGEX REPLACE "[ ]*-l([^ ]*)" "\\1" LIB "${LIB}") list(APPEND MYSQL_ADD_LIBRARIES "${LIB}") endforeach(LIB ${MYSQL_LIBS}) set(MYSQL_ADD_LIBRARY_PATH "") string(REGEX MATCHALL "-L[^ ]+" MYSQL_LIBDIR_LIST "${MY_TMP}") foreach(LIB ${MYSQL_LIBDIR_LIST}) string(REGEX REPLACE "[ ]*-L([^ ]*)" "\\1" LIB "${LIB}") list(APPEND MYSQL_ADD_LIBRARY_PATH "${LIB}") endforeach(LIB ${MYSQL_LIBS}) does not work as expected. [QA] The mobile-phone herd has been dissolved to maintainer-needed due to absence. This package has no maintainer so this bug may go unnoticed for a long time. Gentoo has a dedicated team[1] for assisting users in maintaining orphaned packages. If you are interested in maintaining this package, please contact proxy-maint@gentoo.org. [1]: https://wiki.gentoo.org/index.php?title=Project:Proxy_Maintainers The mysql/mariadb builds were recently redone. Is this still an issue? I have no problem with gammu-1.33.0 versus against dev-db/mariadb-10.0.17. The ebuild currently somehow ignores my USE="-bluetooth" and links with -lbluetooth but I do not mind. # ldd /usr/bin/gammu-detect linux-vdso.so.1 (0x00007ffecb9e9000) libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f81205e3000) libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007f8120392000) libGammu.so.7 => /usr/lib64/libGammu.so.7 (0x00007f8120034000) libgudev-1.0.so.0 => /usr/lib64/libgudev-1.0.so.0 (0x00007f8120aec000) libbluetooth.so.3 => /usr/lib64/libbluetooth.so.3 (0x00007f811fe17000) libc.so.6 => /lib64/libc.so.6 (0x00007f811fa7f000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f811f864000) libffi.so.6 => /usr/lib64/libffi.so.6 (0x00007f811f65b000) libusb-1.0.so.0 => /lib64/libusb-1.0.so.0 (0x00007f811f444000) libm.so.6 => /lib64/libm.so.6 (0x00007f811f14b000) libudev.so.1 => /lib64/libudev.so.1 (0x00007f8120ad4000) /lib64/ld-linux-x86-64.so.2 (0x00007f812091a000) librt.so.1 => /lib64/librt.so.1 (0x00007f811ef43000) # ldd /usr/bin/gammu-smsd linux-vdso.so.1 (0x00007ffeaa1ec000) libgsmsd.so.7 => /usr/lib64/libgsmsd.so.7 (0x00007f5056963000) libGammu.so.7 => /usr/lib64/libGammu.so.7 (0x00007f5056605000) libc.so.6 => /lib64/libc.so.6 (0x00007f505626d000) libodbc.so.2 => /usr/lib64/libodbc.so.2 (0x00007f5056007000) libmysqlclient.so.18 => /usr/lib64/libmysqlclient.so.18 (0x00007f5055aa8000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f505588d000) libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f5055556000) libbluetooth.so.3 => /usr/lib64/libbluetooth.so.3 (0x00007f5055339000) libusb-1.0.so.0 => /lib64/libusb-1.0.so.0 (0x00007f5055122000) libm.so.6 => /lib64/libm.so.6 (0x00007f5054e29000) /lib64/ld-linux-x86-64.so.2 (0x00007f5056b7a000) libltdl.so.7 => /usr/lib64/libltdl.so.7 (0x00007f5054c1f000) libz.so.1 => /lib64/libz.so.1 (0x00007f5054a09000) libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 (0x00007f505479c000) libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007f50543bc000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f50541b8000) libudev.so.1 => /lib64/libudev.so.1 (0x00007f5056d3e000) librt.so.1 => /lib64/librt.so.1 (0x00007f5053fb0000) # equery belongs /usr/lib64/libmysqlclient.so.18 * Searching for /usr/lib64/libmysqlclient.so.18 ... dev-db/mariadb-10.0.17 (/usr/lib64/libmysqlclient.so.18.0.0) dev-db/mariadb-10.0.17 (/usr/lib64/libmysqlclient.so.18 -> libmysqlclient.so.18.0.0) # |