This leads to an error looking for the MYSQL library.
checking mysql... checking for my_thread_init in -lmysqlclient_r... no
configure: WARNING: Cannot link with thread-safe MySQL lib (libmysqlclient_r)
If after checkout the following change is made to configure.in it works on both systems above.
Find the section containing:
MYSQL_LIB_CHK($i/lib)
MYSQL_LIB_CHK($i/lib64)
MYSQL_LIB_CHK($i/lib/mysql)
and change to:
MYSQL_LIB_CHK($i/lib64)
MYSQL_LIB_CHK($i/lib)
MYSQL_LIB_CHK($i/lib64/mysql)
MYSQL_LIB_CHK($i/lib/mysql)
The lib64 needs to appear before lib as RHEL and Fedora can have 32bit versions of the library in lib which matches the filename test.
The changed configure.in has also been tested on ubuntu 8.04 and appears to work.
From mfaxf...@gmail.com on July 08, 2010 17:19:24
When compiling on 64bit RHEL and Fedora ./configure cannot find the mysql libraries.
Tested on 64bit systems running RHEL 5.5 and Fedora 8
Compiling from the current svn version
Run the boot strap script
Run Configure
This leads to an error looking for the MYSQL library. checking mysql... checking for my_thread_init in -lmysqlclient_r... no configure: WARNING: Cannot link with thread-safe MySQL lib (libmysqlclient_r)
If after checkout the following change is made to configure.in it works on both systems above. Find the section containing: MYSQL_LIB_CHK($i/lib) MYSQL_LIB_CHK($i/lib64) MYSQL_LIB_CHK($i/lib/mysql) and change to: MYSQL_LIB_CHK($i/lib64) MYSQL_LIB_CHK($i/lib) MYSQL_LIB_CHK($i/lib64/mysql) MYSQL_LIB_CHK($i/lib/mysql)
The lib64 needs to appear before lib as RHEL and Fedora can have 32bit versions of the library in lib which matches the filename test.
The changed configure.in has also been tested on ubuntu 8.04 and appears to work.
Original issue: http://code.google.com/p/rtg2/issues/detail?id=15