[MDEV-5152] mysql_config includes -lprobes_mysql but mo such library installed Created: 2013-10-18  Updated: 2014-04-19  Resolved: 2014-04-18

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.33a, 10.0.10
Fix Version/s: 5.5.37, 10.0.11

Type: Bug Priority: Major
Reporter: Edgar Torres Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None
Environment:

Dell PowerEdge R620 (2x Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz)

Red Hat Enterprise Linux Client release 5.9 (Tikanga)
Linux 2.6.18-348.el5 #1 SMP Wed Nov 28 21:22:00 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

./BUILD/compile-pentium64-max

testing nocona ... ok
+++ /bin/rm -rf configure
+++ /bin/rm -rf CMakeCache.txt CMakeFiles/
+++ path=./BUILD
+++ . ./BUILD/autorun.sh
+++++ dirname ./BUILD/compile-pentium64-max
++++ path=./BUILD
++++ cp ./BUILD/cmake_configure.sh ./BUILD/../configure
++++ chmod +x ./BUILD/../configure
+++ CC='gcc --pipe'
+++ CFLAGS='-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -mtune=nocona -m64 -O3 -fno-omit-frame-pointer '
+++ CXX=g++
+++ CXXFLAGS='-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -Wno-unused-parameter -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=nocona -m64 -O3 -fno-omit-frame-pointer '
+++ CXXLDFLAGS=
+++ ./configure --prefix=/tenhw/apps/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-plugin-aria --with-aria-tmp-tables --with-readline --with-ssl --with-plugins=max --with-embedded-server --with-libevent --with-zlib-dir=bundled --enable-local-infile --verbose
configure.pl : calling cmake /tenhw/src/mariadb/mariadb-5.5.33a -DCMAKE_INSTALL_PREFIX=/tenhw/apps/mysql -DENABLE_ASSEMBLER=1 -DWITH_EXTRA_CHARSETS=complex -DENABLE_THREAD_SAFE_CLIENT=1 -DWITH_BIG_TABLES=1 -DWITH_PLUGIN_ARIA=1 -DWITH_ARIA_TMP_TABLES=1 -DWITH_READLINE=1 -DWITH_SSL=bundled -DWITH_MAX=1 -DWITH_EMBEDDED_SERVER=1 -DWITH_LIBEVENT=1 -DWITH_ZLIB=bundled -DENABLE_LOCAL_INFILE=1 -DCMAKE_VERBOSE_MAKEFILE=1
....


Attachments: File BUILD.out     File make_install.out    
Issue Links:
Duplicate
duplicates MDEV-5793 Fedora packages built with probes_mys... Closed

 Description   

I compiled mariadb 5.5.33a using my own gcc (4.8.1) and libraries, everything in --prefix /tenhw/local

I used BUILD/compile-pentium64-max (thinking it is best default for my environment)

The compile finished succesfully and the 'make install' as well.

The problem is mysql_config, whose output is:

Options:
        --cflags         [-I/tenhw/apps/mysql/include/mysql -I/tenhw/apps/mysql/include/mysql/.. -Wall -Wunused -Wno-uninitialized -m64 -fno-omit-frame-pointer    -g]
        --include        [-I/tenhw/apps/mysql/include/mysql -I/tenhw/apps/mysql/include/mysql/..]
        --libs           [-L/tenhw/apps/mysql/lib -lmysqlclient -lpthread -lprobes_mysql -lm -lrt -ldl]
        --libs_r         [-L/tenhw/apps/mysql/lib -lmysqlclient_r -lpthread -lprobes_mysql -lm -lrt -ldl]
        --plugindir      [/tenhw/apps/mysql/lib/plugin]
        --socket         [/tmp/mysql.sock]
        --port           [0]
        --version        [5.5.33a]
        --libmysqld-libs [-L/tenhw/apps/mysql/lib -lmysqld]
        --variable=VAR   VAR is one of:
                pkgincludedir [/tenhw/apps/mysql/include/mysql]
                pkglibdir     [/tenhw/apps/mysql/lib]
                plugindir     [/tenhw/apps/mysql/lib/plugin]

However, there is no probes_mysql library installed. I can find probes_mysql.o many times in the output during compile, but I cannot find generation of a library...

So any third party that uses mysql_config fails during compile with gcc not finding the library

/tenhw/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lprobes_mysql
collect2: error: ld returned 1 exit status



 Comments   
Comment by Oleksandr Byelkin [ 2013-11-07 ]

Actually pentium64 script aimed for IA-64 (AKA Itanium)

It this case should be used amd64, because amd is not related to processor producer but to command set used in the processor.

Nowdays there is not big difference in the sctipts, but in any case it would be bettr to see results with correct script.

Comment by Edgar Torres [ 2013-11-07 ]

Hi!

I just did a google search for "pentium64", and neither itanium or ia-64
show up in the first 5 pages of results, did not look further.

I am pretty confident using pentium64 to indicate itanium or ia-64 is
confusing...

If you look here
https://mariadb.com/kb/en/generic-build-instructions/

it says

> BUILD/compile-pentium64-max # Build for intel/amd 64 bit with all options

I just realized that I should have used cmake for 5.5 , instead of using
BUILD scripts, so perhaps that is the problem... but then perhaps the
BUILD scripts should be removed, or there should be something in the
README that they are deprecated...

Edgar

On 11/7/2013 8:52 AM, Oleksandr Byelkin (JIRA) wrote:

Comment by Sergei Golubchik [ 2013-11-10 ]

please, could you comment here, saying whether it worked better with cmake without BUILD scripts?

Comment by Brian Evans [ 2013-11-13 ]

Gentoo sees this when -DDTRACE is enabled via cmake.

Our bug: https://bugs.gentoo.org/show_bug.cgi?id=483434

Comment by Sergei Golubchik [ 2013-11-13 ]

ok, so, apparently, this happen also with older gcc versions

Comment by Elena Stepanova [ 2014-04-05 ]

As stated in MDEV-6025, 10.0 is also affected.

Comment by Nitin Gupta [ 2014-04-19 ]

Please also update Fedora 20 RPMS to 10.0.11. Currently, only 10.0.10 is available:
http://yum.mariadb.org/10.0/fedora20-amd64/rpms/

Thanks.

Comment by Elena Stepanova [ 2014-04-19 ]

10.0.11 has not been released yet.

Generated at Thu Feb 08 07:02:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.