Public bug reported:

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

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579008

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1579008/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to