libmysqlclient-dev compilation error -- wrong header definition at client_plugin.h

Bug #1579008 reported by Francis Brosnan
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Fix Released
High
Norvald H. Ryeng

Bug Description

The following file has a bug inside the header definition that causes gcc (4.9 and 5.3.1) to fail:

>> dpkg -S /usr/include/mysql/mysql/client_plugin.h
libmysqlclient-dev: /usr/include/mysql/mysql/client_plugin.h

The fix introduced is the following:

>> diff -u /usr/include/mysql/mysql/client_plugin.{h~,h}
--- /usr/include/mysql/mysql/client_plugin.h~ 2016-03-28 20:06:12.000000000 +0200
+++ /usr/include/mysql/mysql/client_plugin.h 2016-05-06 12:37:19.133420684 +0200
@@ -89,7 +89,7 @@
   const char *license; \
   void *mysql_api; \
   int (*init)(char *, size_t, int, va_list); \
- int (*deinit)(); \
+ int (*deinit)(void); \
   int (*options)(const char *option, const void *);

The fix resolves the following concrete compilation error:

/usr/include/mysql/mysql/client_plugin.h:97:3: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
   MYSQL_CLIENT_PLUGIN_HEADER
   ^
In file included from /usr/include/mysql/mysql.h:64:0,
                 from mod_sasl_mysql.c:5:
/usr/include/mysql/mysql/client_plugin.h:107:3: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
   MYSQL_CLIENT_PLUGIN_HEADER

Tags: patch
Revision history for this message
Francis Brosnan (francis-aspl) wrote :

Bug discovered while building packages for Ubuntu 16.04 Xerus for Turbulence

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Norvald, this sounds like your department. Please could you take a look?

Changed in mysql-5.7 (Ubuntu):
importance: Undecided → High
Revision history for this message
Lars Tangvald (lars-tangvald) wrote :

Confirmed. There's an upstream bug for this (not currently fixed in 5.7): https://bugs.mysql.com/bug.php?id=78177

Revision history for this message
Lars Tangvald (lars-tangvald) wrote :

This impacts users as a regression because mysql.h now includes client_plugin.h, which it didn't in 5.6

Changed in mysql-5.7 (Ubuntu):
status: New → Confirmed
Robie Basak (racb)
Changed in mysql-5.7 (Ubuntu):
assignee: nobody → Norvald H. Ryeng (nryeng)
milestone: none → ubuntu-16.06
Revision history for this message
Norvald H. Ryeng (nryeng) wrote :

This will be fixed in a future version of MySQL. Please see the attached patch.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Upstream patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Robie Basak (racb)
Changed in mysql-5.7 (Ubuntu):
milestone: ubuntu-16.06 → none
Revision history for this message
Norvald H. Ryeng (nryeng) wrote :

This bug is fixed in MySQL 5.7.14.

Revision history for this message
Robie Basak (racb) wrote :

5.7.15 is in Debian VCS, Xenial and in Yakkety's proposed pocket, so marking this as Fix Committed. We can mark it Fix Released as soon as 5.7.15 lands in Yakkety's release pocket.

Changed in mysql-5.7 (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Lars Tangvald (lars-tangvald) wrote :

5.7.15 has landed in Yakkety now :)

Changed in mysql-5.7 (Ubuntu):
status: Fix Committed → Fix Released
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.