Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jun 2017 08:33:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 219797] databases/py-MySQLdb with mariadb 10.2.6
Message-ID:  <bug-219797-21822-4odbz4Bi3M@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219797-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219797-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219797

--- Comment #2 from Sir l33tname <sirl33tname@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=3D(1,2,5,'final',1) -D__version__=3D1.2.5 -I/usr/local/inclu=
de/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 >=3D 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 !=3D -1 ) self->connection.reconnect =3D reconnect;
                               ~~~~~~~~~~~~~~~~ ^
_mysql.c:2089:3: error: too few arguments to function call, expected 2, hav=
e 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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219797-21822-4odbz4Bi3M>