Opened 8 years ago
Closed 8 years ago
Last modified 8 years ago
#13093 closed Bug Report - General (Fixed)
'MYSQL {aka struct st_mysql}' has no member named 'reconnect'
Reported by: | Owned by: | David Hampton | |
---|---|---|---|
Priority: | minor | Milestone: | 29.1 |
Component: | Plugin - MythZoneminder | Version: | 0.28.1 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
I am currently unable to build MythTV on Fedora Rawhide (future F27 release). Apparently there was an API regression with mariadb 10.2.X...
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
See the following for more details: https://jira.mariadb.org/browse/MDEV-12950
Change History (13)
comment:1 Changed 8 years ago by
comment:2 follow-up: 3 Changed 8 years ago by
Compilation succeeded but no good way to test functionality on a development branch... I guess we'll worry about it when it becomes a real release.
comment:3 Changed 8 years ago by
Replying to Richard Shaw <hobbes1069@…>:
Compilation succeeded but no good way to test functionality on a development branch... I guess we'll worry about it when it becomes a real release.
Thanks for the feedback.
I am sort of hoping that the usual suspects for mythzoneminder (Paul H?) can test in his environment when sufficient free time heads his way. The patch *should* be backwards compatible for any reasonably current version of mysql and/or mariadb, but I do not have anywhere near a sufficiently robust builder environment to even test builds on all the platforms the project supports (and I really do not want to create builders for all of them).
comment:4 Changed 8 years ago by
I currently have the spec file set to only apply the patch on Fedora 27/Rawhide but I could perform a local build with it applied, however, I don't use the zoneminder functionality so I'm not sure it would tell me anything.
comment:6 Changed 8 years ago by
I believe that BZ is a completely different issue. But I'll let the experts make that determination.
(the use of an internal structure member reconnect may have been required at some point in the past, but is not a good idea after the ability to set options was made available; mythtv should be fixed to use the mysql_options api.)
comment:7 Changed 8 years ago by
Milestone: | needs_triage → 29.1 |
---|---|
Owner: | set to paulh |
Status: | new → assigned |
comment:8 Changed 8 years ago by
comment:9 Changed 8 years ago by
Owner: | changed from paulh to David Hampton |
---|---|
Status: | assigned → accepted |
comment:11 Changed 8 years ago by
Resolution: | → Fixed |
---|---|
Status: | accepted → closed |
comment:12 Changed 8 years ago by
fwiw, I think one may want to consider cherrypicking my patch to fixes/29 (and maybe fixes/0.28)? F27 (at least) ships with the new(er) mariadb libraries, and F27 should be released next week (or RSN in any case), so more people may start seeing this going forward as v29 is likely to be the new normal for some time and other distros will likely catch up with their mariadb libraries. [I would suspect Richard Shaw may be carrying a local rpmfusion patch for F27/rawhide, but it would likely be better if fixed upstream]
FD: Why, yes, I did (after weeks) finally look at the buildbot waterfall to determine if any of my builders were broken and noticed one of my builders is (still) red.
comment:13 Changed 8 years ago by
I thought I had already done that. Its now committed to fixes/29 and fixes/0.28.
If it helps the mythzoneminder wrangler, here is a completely untested prototype patch (neither compile tested, nor functionally tested):