[Bug 629304] [NEW] -DMYSQL_CLIENT_NO_THREADS and undefined reference to `my_pthread_fastmutex_init'

GVLePage 629304 at bugs.launchpad.net
Fri Sep 3 08:03:15 BST 2010


Public bug reported:

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

** Affects: mysql-5.1 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
-DMYSQL_CLIENT_NO_THREADS and undefined reference to `my_pthread_fastmutex_init'
https://bugs.launchpad.net/bugs/629304
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-5.1 in ubuntu.



More information about the Ubuntu-server-bugs mailing list