Hallo Zusammen,
ich versuche gerade epg2vdr für einen Raspberry PI mit vdr-2.3.1 zu bauen, aber leider bricht der Compiler mit folgendem Fehler ab:
Code
server03 epg2vdr # LC_MESSAGES=C make
g++ -MM -MG -ggdb -O0 -fPIC -Wreturn-type -Wall -Wno-parentheses -Wformat -pedantic -Wno-long-long -Wunused-variable -Wunused-label -Wno-unused-result -Wunused-value -Wunused-but-set-variable -Wunused-function -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Werror=overloaded-virtual -Wno-parentheses -g -O3 -Wall -g -ggdb -O0 -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIC -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DEPG2VDR_DATA_DIR='"/var/cache/vdr"' -DEPG2VDR -DLOG_PREFIX='"epg2vdr: "' -DVDR_PLUGIN -DUSEUUID -DUSEMD5 -DUSEJSON -DUSEGUNZIP -DPLUGIN_NAME_I18N='"epg2vdr"' -DGIT_REV='"d2f3b4e"' -I/usr/include/mysql epg2vdr.c service.c update.c plgconfig.c parameters.c timer.c recording.c recinfofile.c status.c ttools.c svdrpclient.c menu.c menusched.c menutimers.c menudone.c menusearchtimer.c > .dependencies
(cd lib && make -s lib)
Compile common ...
Compile config ...
Compile db ...
Compile epgservice ...
Compile dbdict ...
Compile json ...
Compile searchtimer ...
searchtimer.c: In member function ‘int cSearchTimer::getDoneFor(cDbRow*, cDbRow*, json_t*)’:
searchtimer.c:732:46: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int64_t {aka long long int}’ [-Wformat=]
useevent->getStrValue("CNTSOURCE"));
^
Compile python ...
Building Lib ...
ar: creating libhorchi.a
g++ -ggdb -O0 -fPIC -Wreturn-type -Wall -Wno-parentheses -Wformat -pedantic -Wno-long-long -Wunused-variable -Wunused-label -Wno-unused-result -Wunused-value -Wunused-but-set-variable -Wunused-function -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Werror=overloaded-virtual -Wno-parentheses -g -O3 -Wall -g -ggdb -O0 -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIC -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -DEPG2VDR_DATA_DIR='"/var/cache/vdr"' -DEPG2VDR -DLOG_PREFIX='"epg2vdr: "' -DVDR_PLUGIN -DUSEUUID -DUSEMD5 -DUSEJSON -DUSEGUNZIP -DPLUGIN_NAME_I18N='"epg2vdr"' -DGIT_REV='"d2f3b4e"' -I/usr/include/mysql -o epg2vdr.o epg2vdr.c
In file included from epg2vdr.c:13:0:
menu.h:134:4: warning: #warning is a GCC extension
# warning "Program menu have to be ported to VDR >= 2.3.1, compiling without it"
^
menu.h:134:4: warning: #warning "Program menu have to be ported to VDR >= 2.3.1, compiling without it" [-Wcpp]
epg2vdr.c:103:4: warning: #warning is a GCC extension
# warning "Program menu have to be ported to VDR >= 2.3.1, compiling without it"
^
epg2vdr.c:103:4: warning: #warning "Program menu have to be ported to VDR >= 2.3.1, compiling without it" [-Wcpp]
epg2vdr.c:140:4: warning: #warning is a GCC extension
# warning "Program menu have to be ported to VDR >= 2.3.1, compiling without it"
^
epg2vdr.c:140:4: warning: #warning "Program menu have to be ported to VDR >= 2.3.1, compiling without it" [-Wcpp]
In file included from epg2vdr.c:14:0:
handler.h: In member function ‘int cEpgHandlerInstance::updateMemList()’:
handler.h:321:55: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int64_t {aka long long int}’ [-Wformat=]
eventsDb->getStrValue("ChannelId"));
^
handler.h: In member function ‘virtual bool cEpgHandlerInstance::DropOutdated(cSchedule*, time_t, time_t, uchar, uchar)’:
handler.h:735:55: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int64_t {aka long long int}’ [-Wformat=]
eventsDb->getStrValue("ChannelId"));
^
epg2vdr.c: In member function ‘virtual eOSState cEpgPluginMenu::ProcessKey(eKeys)’:
epg2vdr.c:123:33: error: expected type-specifier before ‘cMenuEpgTimers’
state = AddSubMenu(new cMenuEpgTimers());
^
epg2vdr.c:128:33: error: expected type-specifier before ‘cMenuEpgSearchTimers’
state = AddSubMenu(new cMenuEpgSearchTimers());
^
epg2vdr.c: In member function ‘virtual bool cPluginEPG2VDR::Service(const char*, void*)’:
epg2vdr.c:815:22: error: expected type-specifier before ‘cMenuEpgWhatsOn’
*menu = new cMenuEpgWhatsOn();
^
epg2vdr.c:825:22: error: expected type-specifier before ‘cMenuEpgTimers’
*menu = new cMenuEpgTimers();
^
epg2vdr.c: In member function ‘int cPluginEPG2VDR::timerService(cEpgTimer_Service_V1*)’:
epg2vdr.c:870:48: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘std::list<cEpgTimer_Interface_V1*>::size_type {aka unsigned int}’ [-Wformat=]
ms2Dur(cTimeMs::Now()-start).c_str());
^
Makefile:120: recipe for target 'epg2vdr.o' failed
make: *** [epg2vdr.o] Error 1
server03 epg2vdr #
Alles anzeigen
gcc Version:
Code
server03 epg2vdr # gcc -v
Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=/usr/armv7a-hardfloat-linux-gnueabi/gcc-bin/4.9.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/4.9.3/lto-wrapper
Ziel: armv7a-hardfloat-linux-gnueabi
Konfiguriert mit: /tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/configure --host=armv7a-hardfloat-linux-gnueabi --build=armv7a-hardfloat-linux-gnueabi --prefix=/usr --bindir=/usr/armv7a-hardfloat-linux-gnueabi/gcc-bin/4.9.3 --includedir=/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.3/include --datadir=/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.9.3 --mandir=/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.9.3/man --infodir=/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.9.3/info --with-gxx-include-dir=/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.3/include/g++-v4 --with-python-dir=/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.9.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.9.3 p1.5, pie-0.6.4' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --with-float=hard --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-vtable-verify --disable-libvtv --enable-lto --without-cloog --enable-libsanitizer
Thread-Modell: posix
gcc-Version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4)
server03 epg2vdr #