Mailing List Archive

MariaDB build failure
I was building the latest fixes/0.28 for RPM Fusion and ran into this error:

g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8
-mtune=power8 -fomit-frame-pointer -fno-devirtualize
-fomit-frame-pointer -fPIC -DQT_DISABLE_DEPRECATED_BEFORE=0x050000
-maltivec -mabi=altivec -pthread -g -Wall -Wpointer-arith
-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
-fvisibility-inlines-hidden -Wmissing-declarations -Wno-switch
-Woverloaded-virtual -funit-at-a-time -fomit-frame-pointer
-std=gnu++11 -Wall -W -fPIC -D_GNU_SOURCE -DPREFIX="/usr"
-Dusing_libcec -D_FILE_OFFSET_BITS=64 -Dlinux -I. -isystem
/usr/include/libxml2 -isystem /usr/include/X11
-I/builddir/build/BUILD/mythtv-0.28.1/fakeroot/usr/include
-I/usr/lib64/qt5/mkspecs/linux-g++ -o zmserver.o zmserver.cpp
zmserver.cpp: In function 'void connectToDatabase()':
zmserver.cpp:186:14: error: 'MYSQL {aka struct st_mysql}' has no
member named 'reconnect'
g_dbConn.reconnect = 1;
^~~~~~~~~
make[2]: *** [Makefile:380: zmserver.o] Error 1

This was for Fedora Rawhide (future F27) which has mariadb 10.2.7 but my
local build in Fedora 25 completed with mariadb 10.1.25...

Any known issue with 10.2.X?

Thanks,
Richard
Re: MariaDB build failure [ In reply to ]
On Mon, Aug 7, 2017 at 7:02 PM, Richard Shaw <hobbes1069@gmail.com> wrote:
> Any known issue with 10.2.X?

*known* issue with mariadb 10.2 (hitting a number of projects).

https://jira.mariadb.org/browse/MDEV-12950

I believe the "fix" is to call
mysql_options(mysql, MYSQL_OPT_RECONNECT, ...)
rather than depend on internal structures/headers,
but I have not done the required research (and I
would presume the mythzoneminder wrangler is
the best person to take a look at the code).

Given that it clearly needs some patching, I would
open a trac ticket on the zoneminder component,
referencing the mariadb jira ticket....
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: MariaDB build failure [ In reply to ]
On Mon, Aug 7, 2017 at 2:41 PM, Gary Buhrmaster <gary.buhrmaster@gmail.com>
wrote:

> Given that it clearly needs some patching, I would
> open a trac ticket on the zoneminder component,
> referencing the mariadb jira ticket....


Done...

https://code.mythtv.org/trac/ticket/13093#ticket

Thanks,
Richard