2010-09-03 08:11:50 |
GVLePage |
description |
Binary package hint: libmysqlclient-dev
This is a known mysql bug
http://bugs.mysql.com/bug.php?id=43397
Installing the source for libmysqlclient-dev yields
mysql-dfsg-5.1 in mysql-dfsg-5.1-5.1.41
The error generated when compiling/linking against
-lmysqlclient
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX (as per mysql_config --cflags using ${shell mysql_config --cflags} in my make file)
Using
-DMYSQL_CLIENT_NO_THREADS
solves the issue but is not really a satisfactory solution in my opinion
Without using
-DMYSQL_CLIENT_NO_THREADS
this error gets generated
dus.o: In function `g7::dus::initialize()':
dus.cpp:(.text+0x12d): undefined reference to `my_pthread_fastmutex_init'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Will this be patched in a future package of
libmysqlclient-dev
I built a very light weight C++ wrapper around the mysql c api, mostly so I do not have to pass parameters around, members of the class I built maintain those the values I need internally, the application is multithreaded
Thanks and regards,
G |
Binary package hint: libmysqlclient-dev
This is a known mysql bug
http://bugs.mysql.com/bug.php?id=43397
Installing the source for libmysqlclient-dev yields
mysql-dfsg-5.1 in mysql-dfsg-5.1-5.1.41
The error generated when compiling/linking against
-lmysqlclient
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX (as per mysql_config --cflags using ${shell mysql_config --cflags} in my make file)
Using
-DMYSQL_CLIENT_NO_THREADS
solves the issue but is not really a satisfactory solution in my opinion
Without using
-DMYSQL_CLIENT_NO_THREADS
this error gets generated
dus.o: In function `g7::dus::initialize()':
dus.cpp:(.text+0x12d): undefined reference to `my_pthread_fastmutex_init'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Will this be patched in a future package of
libmysqlclient-dev
I built a very light weight C++ wrapper around the mysql c api, mostly so I do not have to pass mysql parameters around, members of the class I built maintain those the values I need internally, the application is multithreaded.
Thanks and regards,
G |
|