Compile-Probleme diverser Plugins mit vdr 2.4.0 unter openSUSE Leap 15.0

  • Hi !



    Diverse Plugins lassen sich mit vdr 2.4.0 unter openSUSE Leap 15.0 nicht mehr compilieren:


    duplicates:


    ...

    menu.c: In constructor ‘cMenuDuplicates::cMenuDuplicates()’:

    menu.c:213:3: error: ‘Recordings’ was not declared in this scope

    Recordings.StateChanged(recordingsState); // just to get the current state...


    scraper2vdr:


    ...

    Compile db ...


    db.c: In member function ‘int cDbConnection::errorSql(cDbConnection*, const char*, MYSQL_STMT*, const char*)’:

    db.c:969:17: error: ‘CR_INVALID_CONN_HANDLE’ was not declared in this scope

    error == CR_INVALID_CONN_HANDLE ||

    ^~~~~~~~~~~~~~~~~~~~~~

    db.c:969:17: note: suggested alternative: ‘CR_INVALID_BUFFER_USE’

    error == CR_INVALID_CONN_HANDLE ||

    ^~~~~~~~~~~~~~~~~~~~~~

    CR_INVALID_BUFFER_USE

    make[1]: *** [Makefile:58: db.o] Fehler 1

    make: *** [Makefile:75: hlib] Fehler 2

    ...


    skincurses:


    ...

    CC skincurses.o

    g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/backup/privat/tv/dvb/vdr-2.4.0/include -c -DPLUGIN_NAME_I18N='"skincurses"' -o skincurses.o skincurses.c

    skincurses.c: In member function ‘virtual void cCursesOsd::RestoreRegion()’:

    skincurses.c:131:52: error: invalid use of incomplete type ‘WINDOW {aka struct _win_st}’

    copywin(savedRegion, window, 0, 0, savedRegion->_begy, savedRegion->_begx, savedRegion->_maxy - savedRegion->_begy, savedRegion->_maxx - savedRegion->_begx, false);

    ...


    smarttvweb:


    ...

    responsememblk.c: In member function ‘int cResponseMemBlk::sendBmlInstHtml()’:

    responsememblk.c:2263:34: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘std::stringstream {aka std::__cxx11::basic_stringstream<char>}’)

    *(mLog->log()) << " Ownhost= " << own_host << endl;

    ...

    /usr/include/c++/7/ostream:682:5: error: no type named ‘type’ in ‘struct std::enable_if<false, std::basic_ostream<char>&>’

    make: *** [Makefile:66: responsememblk.o] Fehler 1
    ...


    markad:


    ...decoder.cpp:183:23: error: ‘AV_CODEC_ID_MPEG2VIDEO_XVMC’ was not declared in this scope

    video_codecid=AV_CODEC_ID_MPEG2VIDEO_XVMC;

    ...



    Grüße,


    Dirk
















  • Bei scraper2vdr ist es der gleiche Patch wie für epg2vdr - nur einige Zeilen weiter vorne, falls Du es per Hand einpflegst

    https://projects.vdr-developer.org/issues/2514


    Stefan

  • Hallo !



    Ok, der Patch hilft teilweise, aber nicht ganz, d.h. der Compile bricht weiterhin ab:


    update.c: In member function ‘int cUpdate::ScanVideoDir()’:

    update.c:934:28: error: ‘Recordings’ was not declared in this scope

    for (cRecording *rec = Recordings.First(); rec; rec = Recordings.Next(rec)) {

    ^~~~~~~~~~

    update.c:934:28: note: suggested alternative: ‘tRecordings’

    for (cRecording *rec = Recordings.First(); rec; rec = Recordings.Next(rec)) {

    ^~~~~~~~~~

    tRecordings

    update.c: In member function ‘int cUpdate::ScanVideoDirScrapInfo()’:

    update.c:985:28: error: ‘Recordings’ was not declared in this scope

    for (cRecording *rec = Recordings.First(); rec; rec = Recordings.Next(rec)) {

    ^~~~~~~~~~

    update.c:985:28: note: suggested alternative: ‘tRecordings’

    for (cRecording *rec = Recordings.First(); rec; rec = Recordings.Next(rec)) {

    ^~~~~~~~~~

    tRecordings

    update.c: In member function ‘int cUpdate::CleanupRecordings()’:

    update.c:1182:14: error: ‘Recordings’ was not declared in this scope

    if (!Recordings.GetByName(recPath.c_str())) {

    ^~~~~~~~~~

    update.c:1182:14: note: suggested alternative: ‘tRecordings’

    if (!Recordings.GetByName(recPath.c_str())) {

    ^~~~~~~~~~

    tRecordings

    update.c: In member function ‘virtual void cUpdate::Action()’:

    update.c:1300:16: error: ‘Recordings’ was not declared in this scope

    if (Recordings.StateChanged(recState))

    ^~~~~~~~~~

    update.c:1300:16: note: suggested alternative: ‘tRecordings’

    if (Recordings.StateChanged(recState))

    ^~~~~~~~~~

    tRecordings

    make: *** [Makefile:80: update.o] Error 1



    Grüße,


    Dirk



  • Hast Du den kompletten Patch eingepflegt? Bei mir ging's eben unter Opensuse 15.0 perfekt.


    Stefan