Bug#918393: opensips FTBFS with MariaDB 10.3

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#918393: opensips FTBFS with MariaDB 10.3

Adrian Bunk-3
Source: opensips
Version: 2.2.2-3
Severity: serious
Tags: ftbfs buster sid

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/opensips.html

...
my_con.c: In function 'db_mysql_connect':
my_con.c:68:10: error: 'MYSQL' {aka 'struct st_mysql'} has no member named 'reconnect'
  ptr->con->reconnect = 0;
          ^~

Reply | Threaded
Open this post in threaded view
|

Bug#918393: opensips FTBFS with MariaDB 10.3

peter green-2

Could you please check if it is still valid and happening in Debian
unstable there has had several updates MariaDB client libraries /
connector C libraries recently?
According to https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/opensips.html it is still failing in the same way.

Reply | Threaded
Open this post in threaded view
|

Bug#918393: opensips FTBFS with MariaDB 10.3

Otto Kekäläinen-4
su 14. huhtik. 2019 klo 14.06 peter green ([hidden email]) kirjoitti:
>
> Could you please check if it is still valid and happening in Debian
> unstable there has had several updates MariaDB client libraries /
> connector C libraries recently?
>
> According to https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/opensips.html it is still failing in the same way.

For the records, failing lines from
https://tests.reproducible-builds.org/debian/rbuild/unstable/amd64/opensips_2.2.2-3.rbuild.log.gz
*******
In file included from my_con.c:25:
/usr/include/mysql/mysql_version.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>
  ^~~~~~~
my_con.c: In function 'db_mysql_connect':
my_con.c:68:10: error: 'MYSQL' {aka 'struct st_mysql'} has no member
named 'reconnect'
  ptr->con->reconnect = 0;
*******

From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919395#36 :
*******

error: 'MYSQL' {aka 'struct st_mysql'} has no member named 'reconnect'

   This is not a bug. MYSQL.reconnect was not part of the API, even in 5.5
   https://dev.mysql.com/doc/refman/5.5/en/c-api-auto-reconnect.html
*******


Forwarded at https://github.com/OpenSIPS/opensips/issues/1589 and
following it one can find
https://github.com/farcepest/MySQLdb1/issues/146 stating that OpenSIPS
depends on an Python MySQL connector that is not maintained anymore...