From: Warren Young [mailto:mysqlpp@stripped]
Sent: Saturday, August 16, 2008 4:54 PM
Subject: Re: Unable to build MySQL++ on Solaris
On Aug 16, 2008, at 4:17 AM, Jonathan Wakely wrote:
> 2008/8/14 Warren Young:
>>> --enable-thread-check --with-mysql=/rusers/Charging/kartikm/mysql
>> It should build if you turn off the check for threads. Clearly
>> more work is
>> needed to make that case work.
> On sparc hardware GCC spells the option -pthreads not -pthread.
Thanks for that. Good thing we have autoconf to rooting such
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
I have been able to build the libmysqlpp.so library with
--enable-thread-check by commenting out #define HAVE_SYNCH_H 1 that is
generated after ./configure --enable-thread-check
--with-mysql=/rusers/Charging/kartikm/mysql and also because of help of the
earlier email i.e using pthreads instead of pthread( really thanks for that
However I am unable to resolve the linker error. If I am correct, then if I
do grep for the missing symbols, I should be able to find the symbols in the
mysqlclient_r.so library, right ? But it doesn't show any symbols. So may be
the mysqlclient_r.so library that I have is wrong. However I doubt that as
I get the following error when I make :
g++ -o test_cpool test_cpool_cpool.o -L/rusers/Charging/kartikm/mysql/lib/
-L. -lnsl -lsocket -lintl -lnsl -lsocket -lmysqlclient_r -lmysqlpp
Undefined first referenced
symbol in file
ld: fatal: Symbol referencing errors. No output written to test_cpool
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `test_cpool'
Kindly guide me as what should my next step be ????