mismatch in mysql_config output and libmysqld cflags

Bug #605021 reported by Jeff Mitchell on 2010-07-13
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.1 (Ubuntu)
Low
Unassigned

Bug Description

When building software against Ubuntu's (and Debian's) mysql packages, if you want to also build against libmysqld on 64-bit environments you need the libmysqld-pic package.

The problem is that libmysqld-pic is built with -fPIC and mysql-server isn't. So if you use mysql_config to get the cflags, includes, and libs needed for building, --cflags lacks -fPIC, and build fails.

Related branches

Scott Moser (smoser) on 2010-07-15
Changed in mysql-5.1 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in mysql-5.1 (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Clint Byrum (clint-fewbar)
Clint Byrum (clint-fewbar) wrote :

The linked branch adds a script,

/usr/bin/mysql_config_pic

Which will return the cflags used to build libmysqld-pic.

This way we don't have to conflict with libmysqlclient-dev.

Changed in mysql-5.1 (Ubuntu):
status: In Progress → Confirmed
assignee: Clint Byrum (clint-fewbar) → nobody
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mysql-5.1 - 5.1.49-1ubuntu6

---------------
mysql-5.1 (5.1.49-1ubuntu6) maverick; urgency=low

  [Clint Byrum]
  * Installing mysql_config_pic in /usr/bin so users of libmysqld-pic
    can extract the appropriate compile flags. (LP: #605021)

  [Chuck Short]
  * debian/mysql-server.5.1.postinst: Specify the mysql user when installing
    the mysql databases. (LP: #591875)
  * debian/apparmor-profile: Update apparmor profile for mysql plugins.
    (LP: #594932, #619172)
 -- Chuck Short <email address hidden> Fri, 20 Aug 2010 10:12:48 -0400

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

Duplicates of this bug

Other bug subscribers