gthole / gedgo

A Gedcom viewer web app.
MIT License
47 stars 12 forks source link

Fails to build docker image due to MySQL-python dependency #13

Closed cloventt closed 6 years ago

cloventt commented 6 years ago

When trying to build the Docker image on MacOS, the following problem occurs:


    In file included from _mysql.c:44:0:
    /usr/include/mysql/my_config.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
     #warning This file should not be included by clients, include only <mysql.h>
      ^~~~~~~
    In file included from _mysql.c:46:0:
    /usr/include/mysql/mysql.h:440:3: warning: function declaration isn't a prototype [-Wstrict-prototypes]
       MYSQL_CLIENT_PLUGIN_HEADER
       ^~~~~~~~~~~~~~~~~~~~~~~~~~
    _mysql.c: In function '_mysql_ConnectionObject_ping':
    _mysql.c:2005:41: error: 'MYSQL {aka struct st_mysql}' has no member named 'reconnect'
      if ( reconnect != -1 ) self->connection.reconnect = reconnect;
                                             ^
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-BOl5qT/MySQL-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-lwbIm_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-BOl5qT/MySQL-python/
ERROR: Service 'app' failed to build: The command '/bin/sh -c apk --update add jpeg-dev zlib-dev build-base mariadb-dev &&     pip install -r reqs.frozen.pip &&     apk add mariadb-client-libs &&     apk del build-base mariadb-dev' returned a non-zero code: 1```
gthole commented 6 years ago

Thanks for the report @cloventt! This should be fixed by this commit.