{"action":"opened","issue":{"url":"https://api.github.com/repos/PyMySQL/mysqlclient-python/issues/114","repository_url":"https://api.github.com/repos/PyMySQL/mysqlclient-python","labels_url":"https://api.github.com/repos/PyMySQL/mysqlclient-python/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/PyMySQL/mysqlclient-python/issues/114/comments","events_url":"https://api.github.com/repos/PyMySQL/mysqlclient-python/issues/114/events","html_url":"https://github.com/PyMySQL/mysqlclient-python/issues/114","id":176266738,"number":114,"title":"mysql_real_escape_string_quote issue when building with mariadb-devel","user":{"login":"scop","id":109152,"avatar_url":"https://avatars.githubusercontent.com/u/109152?v=3","gravatar_id":"","url":"https://api.github.com/users/scop","html_url":"https://github.com/scop","followers_url":"https://api.github.com/users/scop/followers","following_url":"https://api.github.com/users/scop/following{/other_user}","gists_url":"https://api.github.com/users/scop/gists{/gist_id}","starred_url":"https://api.github.com/users/scop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scop/subscriptions","organizations_url":"https://api.github.com/users/scop/orgs","repos_url":"https://api.github.com/users/scop/repos","events_url":"https://api.github.com/users/scop/events{/privacy}","received_events_url":"https://api.github.com/users/scop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-11T21:34:28Z","updated_at":"2016-09-11T21:34:28Z","closed_at":null,"body":"When compiling current git master against mariadb-devel 10.0.26 on Fedora 23 x86_64, build succeeds but use fails:\r\n\r\n```\r\nImportError: ./_mysql.so: undefined symbol: mysql_real_escape_string_quote\r\n```\r\n\r\nI suppose more elaborate checks than just `MYSQL_VERSION_ID >= 50707` are needed to handle this case.\r\n\r\n```\r\n$ cat /usr/include/mysql/mysql_version.h \r\n/* Copyright Abandoned 1996,1999 TCX DataKonsult AB & Monty Program KB\r\n   & Detron HB, 1996, 1999-2004, 2007 MySQL AB.\r\n   This file is public domain and comes with NO WARRANTY of any kind\r\n*/\r\n\r\n/* Version numbers for protocol & mysqld */\r\n\r\n#ifndef _mysql_version_h\r\n#define _mysql_version_h\r\n#ifdef _CUSTOMCONFIG_\r\n#include <custom_conf.h>\r\n#else\r\n#define PROTOCOL_VERSION\t\t10\r\n#define MYSQL_SERVER_VERSION\t\t\"10.0.26-MariaDB\"\r\n#define MYSQL_BASE_VERSION\t\t\"mysqld-10.0\"\r\n#define MARIADB_BASE_VERSION\t\t\"mariadb-10.0\"\r\n#define MYSQL_SERVER_SUFFIX_DEF\t\t\"\"\r\n#define FRM_VER\t\t\t\t6\r\n#define MYSQL_VERSION_ID\t\t100026\r\n#define MYSQL_PORT\t\t\t3306\r\n#define MYSQL_PORT_DEFAULT\t\t0\r\n#define MYSQL_UNIX_ADDR\t\t\t\"/var/lib/mysql/mysql.sock\"\r\n#define MYSQL_CONFIG_NAME\t\t\"my\"\r\n#define MYSQL_COMPILATION_COMMENT\t\"MariaDB Server\"\r\n\r\n/* mysqld compile time options */\r\n#endif /* _CUSTOMCONFIG_ */\r\n\r\n#ifndef LICENSE\r\n#define LICENSE\t\t\t\tGPL\r\n#endif /* LICENSE */\r\n\r\n#endif /* _mysql_version_h */\r\n```"}}
{"actor":{"display_login":"scop"}}