[rtg] configure: error: Cannot link with thread-safe MySQL lib(libmysqlclient_r)

Matt Provost mprovost at termcap.net
Mon May 1 00:54:28 EDT 2006


On Sun, Apr 30, 2006 at 05:21:51AM +0100, One OfTheMany wrote:
> I also meant to add that my configure.log file shows:
> 
> 
> configure:4339: checking for my_thread_init in -lmysqlclient_r
> configure:4372: gcc -o conftest -I/usr/local/mysql/include/mysql -g -O2  
> -L/usr/local/mysql/lib/mysql  conftest.c -lmysqlclie
> nt_r  -lz -lpthread -lm -lnsl  >&5
> /usr/bin/ld: skipping incompatible 
> /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libmysqlclient_r.so when 
> searching for -lm
> ysqlclient_r
> /usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient_r.so when 
> searching for -lmysqlclient_r
> /usr/bin/ld: cannot find -lmysqlclient_r
> collect2: ld returned 1 exit status
> 

I'm not sure what that incompatible message means but that's why it
won't work - the linker can't find anything. I guess make sure that it's
compatible with your kernel. What does the file command show for that
library, and it is different from other libraries on the system? What
does ldd output if you run it against the libmysqlclient_r.so library?

Thanks,
Matt


More information about the RTG mailing list