[Bug 219797] databases/py-MySQLdb with mariadb 10.2.6
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jun 5 08:33:14 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219797
--- Comment #2 from Sir l33tname <sirl33tname at gmail.com> ---
The symptoms are that you can't build the port (see below) with MariaDB 10.2.6
(the latest release). Run time should be fine.
building '_mysql' extension
creating build/temp.freebsd-11.0-RELEASE-p10-amd64-2.7
cc -DNDEBUG -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC
-Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/include/mysql
-I/usr/local/include/mysql/mysql -I/usr/local/include/python2.7 -c _mysql.c -o
build/temp.freebsd-11.0-RELEASE-p10-amd64-2.7/_mysql.o
_mysql.c:1593:10: warning: comparison of unsigned expression < 0 is always
false [-Wtautological-compare]
if (how < 0 || how >= sizeof(row_converters)) {
~~~ ^ ~
_mysql.c:1947:47: warning: incompatible pointer types passing 'MYSQL *' (aka
'struct st_mysql *') to parameter of type 'MYSQL_RES *' (aka 'struct
st_mysql_res *') [-Wincompatible-pointer-types]
return PyInt_FromLong((long)mysql_num_fields(&(self->connection)));
^~~~~~~~~~~~~~~~~~~
/usr/local/include/mysql/mysql.h:470:50: note: passing argument to parameter
'res' here
unsigned int STDCALL mysql_num_fields(MYSQL_RES *res);
^
_mysql.c:2009:42: error: no member named 'reconnect' in 'struct st_mysql'
if ( reconnect != -1 ) self->connection.reconnect = reconnect;
~~~~~~~~~~~~~~~~ ^
_mysql.c:2089:3: error: too few arguments to function call, expected 2, have 1
);
^
/usr/local/include/mysql/mysql.h:518:1: note: 'mysql_shutdown' declared here
int STDCALL mysql_shutdown(MYSQL *mysql, enum
mysql_enum_shutdown_level shutdown_level);
^
2 warnings and 2 errors generated.
error: command 'cc' failed with exit status 1
*** Error code 1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-python
mailing list