Build failure on Debian 10 due to mariadb/MySQL-Python incompatibility

XMLWordPrintable

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Blocker
    • master, 5.0.0, 4.9.1
    • Affects Version/s: master, 4.9.0
    • Component/s: None
    • None

      Debian 10 builds now fail with:

      .... [exec] Building globus-sdk-python-1.4.1.tar.gz
      [exec] warning: no files found matching 'tox.ini'
      [exec] Building MySQL-python-1.2.5.tar.gz
      [exec] In file included from _mysql.c:44:
      [exec] /usr/include/mariadb/my_config.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
      [exec] #warning This file should not be included by clients, include only <mysql.h>
      [exec] ^~~~~~~
      [exec] make[1]: Leaving directory '/build/pegasus-4.9.0/src/externals'
      [exec] In file included from _mysql.c:46:
      [exec] /usr/include/mariadb/mysql.h:440:3: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      [exec] MYSQL_CLIENT_PLUGIN_HEADER
      [exec] ^~~~~~~~~~~~~~~~~~~~~~~~~~
      [exec] _mysql.c: In function '_mysql_ConnectionObject_ping':
      [exec] _mysql.c:2005:41: error: 'MYSQL'

      {aka 'struct st_mysql'}

      has no member named 'reconnect'
      [exec] if ( reconnect != 1 ) self>connection.reconnect = reconnect;
      [exec] ^
      [exec] error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
      [exec] make[1]: *** [Makefile:67: /build/pegasus-4.9.0/lib/pegasus/externals/python/MySQLdb] Error 1

      Seems like we are hitting:

      https://github.com/PyMySQL/mysqlclient-python/issues/176

            Assignee:
            Karan Vahi
            Reporter:
            Mats Rynge
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: