-DMYSQL_CLIENT_NO_THREADS and undefined reference to `my_pthread_fastmutex_init'

Bug #629304 reported by GVLePage
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
mysql-5.1 (Ubuntu)
Invalid
Medium
Unassigned

Bug 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 mysql parameters around, members of the class I built maintain those the values I need internally, the application is multithreaded.

Thanks and regards,
G

GVLePage (gggdude)
description: updated
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the pointer. I have linked the upstream bug against this one, and changed this to Triaged/Medium

Changed in mysql-5.1 (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Gabriel Ramirez (gabriel1109) wrote :

Hello, our apologies for not getting back to you sooner on this. We took a look at the upstream bug from the MySQL developers and see this has been addressed. As this version of mysql/ubuntu are no longer supported, the supported versions should contain this fix, so we will proceed to close this out. Thank you!

Changed in mysql-5.1 (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.