horchi / vdr-plugin-epg2vdr

GNU General Public License v2.0
2 stars 2 forks source link

epg2vdr-1.2.16 - compilation fails on vdr-2.7.2 #5

Open martinkg opened 2 weeks ago

martinkg commented 2 weeks ago

Hi,

when I try to compile vdr-epg2vdr-2.12 with vdr-2.7.2, I get the following error message:

`g++ -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/include/python3.12 -I/usr/include/python3.12 -ggdb -O0 -fPIC -Wreturn-type -Wall -Wno-parentheses -Wformat -pedantic -Wno-long-long -Wunused-variable -Wunused-label -Wno-unused-result -Wunused-value -Wunused-function -Wno-variadic-macros -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++11 -DSTDC_FORMAT_MACROS -Wunused-but-set-variable -O3 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -Werror=overloaded-virtual -Wno-parentheses -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O3 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/python3.12 -I/usr/include/python3.12 -DSTL_CONFIG_H -DEPG2VDR_DATA_DIR='"/var/cache/vdr"' -DEPG2VDR -DLOG_PREFIX='"epg2vdr: "' -DVDR_PLUGIN -DUSEUUID -DUSEMD5 -DUSEJSON -DUSEGUNZIP -DPLUGIN_NAME_I18N='"epg2vdr"' -DGIT_REV='""' -I/usr/include/mysql -I/usr/include/mysql/mysql -o update.o update.c update.c: In member function ‘int cUpdate::refreshEpg(const char*, int)’: update.c:1649:29: error: ‘class cSchedule’ has no member named ‘GetEvent’; did you mean ‘DelEvent’? 1649 | if ((event = s->GetEvent(eventsDb->getIntValue("USEID")))) | ^~~~ | DelEvent make: *** [Makefile:127: update.o] Error 1

... timer.c: In member function ‘int cUpdate::performTimerJobs()’: timer.c:304:42: error: ‘class cSchedule’ has no member named ‘GetEvent’; did you mean ‘DelEvent’? 304 | if (eventid > 0 && !(event = s->GetEvent(eventid))) | ^~~~ | DelEvent make: [Makefile:127: timer.o] Error 1timer.c: In member function ‘int cUpdate::performTimerJobs()’: timer.c:304:42: error: ‘class cSchedule’ has no member named ‘GetEvent’; did you mean ‘DelEvent’? 304 | if (eventid > 0 && !(event = s->GetEvent(eventid))) | ^~~~ | DelEvent make: [Makefile:127: timer.o] Error 1

.... recording.c: In member function ‘int cUpdate::updateRecordingTable(int)’: recording.c:435:45: error: ‘const class cSchedule’ has no member named ‘GetEvent’; did you mean ‘DelEvent’? 435 | const cEvent* event = s ? s->GetEvent(eventId) : 0; | ^~~~ | DelEvent make: *** [Makefile:127: recording.o] Error 1

... ttools.c: In function ‘cEpgTimer newTimerObjectFromRow(cDbRow, cDbRow*)’: ttools.c:469:31: error: ‘const class cSchedule’ has no member named ‘GetEvent’; did you mean ‘DelEvent’? 469 | event = schedule->GetEvent(timerRow->getIntValue("EVENTID")); | ^~~~ | DelEvent make: *** [Makefile:127: ttools.o] Error 1

... menusched.c: In member function ‘int cMenuEpgWhatsOn::LoadSearch(const cUserTimes::UserTime)’: menusched.c:784:56: error: ‘const class cSchedule’ has no member named ‘GetEvent’; did you mean ‘DelEvent’? 784 | const cEvent event = !schedule ? 0 : schedule->GetEvent(menuDb->useeventsDb->getIntValue("USEID")); | ^~~~ | DelEvent make: *** [Makefile:127: menusched.o] Error 1`

with the following patch it compiles fine. vdr-epg2vdr-EventID.patch.txt

quickbrett commented 2 weeks ago

The same on my System. I believe that the deprecated method GetEvent() of the cSchedule class has to be changed to GetEventById(). For me this works. dd GetEvent.txt