Hi,
graphtft-ng mit epg2vdr Version 1.2.15 lässt sich nicht mehr übersetzen - liegt das am Code-Refactoring oder mach ich was falsch?
Code
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -I/usr/local/include -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -ggdb -fPIC -Wall -Wunused-variable -Wunused-label -Wunused-value -Wunused-function -Wno-unused-result -c -DPLUGIN_NAME_I18N='"graphtftng"' -DVDR_PLUGIN -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -DGIT_REV='"2.6.4"' -DWITH_TCPCOM -DWITH_EPG2VDR -DWITH_X -D__STL_CONFIG_H -DWITH_TOUCH -I/usr/src/packages/BUILD/vdr/vdr-2.6.4-fix-opt-50_graphtftng-mh01/include -I/usr/src/packages/BUILD/vdr/vdr-2.6.4-fix-opt-50_graphtftng-mh01/include -I. -I./imlibrenderer -I./imlibrenderer/fbrenderer -I./imlibrenderer/xrenderer -I./imlibrenderer/dmyrenderer -I/usr/include/libgtop-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/ffmpeg -I/usr/include/ffmpeg -o graphtftng.o graphtftng.c
In file included from ./theme.h:23,
from graphtftng.c:14:
./common.h: In function ‘std::string& ltrim(std::string&)’:
./common.h:255:88: warning: ‘std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int]’ is deprecated: use 'std::function' instead [-Wdeprecated-declarations]
255 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace))));
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:49,
from ./theme.h:18:
/usr/include/c++/13/bits/stl_function.h:1126:5: note: declared here
1126 | ptr_fun(_Result (*__x)(_Arg))
| ^~~~~~~
./common.h:255:65: warning: ‘constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = pointer_to_unary_function<int, int>]’ is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations]
255 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace))));
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_function.h:1046:5: note: declared here
1046 | not1(const _Predicate& __pred)
| ^~~~
./common.h: In function ‘std::string& rtrim(std::string&)’:
./common.h:261:79: warning: ‘std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int]’ is deprecated: use 'std::function' instead [-Wdeprecated-declarations]
261 | s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_function.h:1126:5: note: declared here
1126 | ptr_fun(_Result (*__x)(_Arg))
| ^~~~~~~
./common.h:261:56: warning: ‘constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = pointer_to_unary_function<int, int>]’ is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations]
261 | s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_function.h:1046:5: note: declared here
1046 | not1(const _Predicate& __pred)
| ^~~~
In file included from ./../vdr-plugin-epg2vdr/service.h:13,
from ./display.h:32,
from ./setup.h:15,
from ./graphtftng.h:20,
from graphtftng.c:18:
./../vdr-plugin-epg2vdr/lib/common.h: At global scope:
./../vdr-plugin-epg2vdr/lib/common.h:52:6: error: multiple definition of ‘enum Misc’
52 | enum Misc
| ^~~~
./common.h:48:6: note: previous definition here
48 | enum Misc
| ^~~~
./../vdr-plugin-epg2vdr/lib/common.h:136:7: error: redefinition of ‘class MemoryStruct’
136 | class MemoryStruct
| ^~~~~~~~~~~~
./common.h:110:8: note: previous definition of ‘class MemoryStruct’
110 | struct MemoryStruct
| ^~~~~~~~~~~~
./../vdr-plugin-epg2vdr/lib/common.h:385:6: error: multiple definition of ‘enum Option’
385 | enum Option
| ^~~~~~
./common.h:214:6: note: previous definition here
214 | enum Option
| ^~~~~~
./../vdr-plugin-epg2vdr/lib/common.h:391:5: error: default argument given for parameter 3 of ‘int rep(const char*, const char*, Option)’ [-fpermissive]
391 | int rep(const char* string, const char* expression, Option options = repUseRegularExpression);
| ^~~
./common.h:220:5: note: previous specification in ‘int rep(const char*, const char*, Option)’ here
220 | int rep(const char* string, const char* expression, Option options = repUseRegularExpression);
| ^~~
./../vdr-plugin-epg2vdr/lib/common.h:393:5: error: default argument given for parameter 4 of ‘int rep(const char*, const char*, const char*&, Option)’ [-fpermissive]
393 | int rep(const char* string, const char* expression,
| ^~~
./common.h:222:5: note: previous specification in ‘int rep(const char*, const char*, const char*&, Option)’ here
222 | int rep(const char* string, const char* expression,
| ^~~
./../vdr-plugin-epg2vdr/lib/common.h:396:5: error: default argument given for parameter 5 of ‘int rep(const char*, const char*, const char*&, const char*&, Option)’ [-fpermissive]
396 | int rep(const char* string, const char* expression, const char*& s_location,
| ^~~
./common.h:225:5: note: previous specification in ‘int rep(const char*, const char*, const char*&, const char*&, Option)’ here
225 | int rep(const char* string, const char* expression, const char*& s_location,
| ^~~
./../vdr-plugin-epg2vdr/lib/common.h:403:7: error: redefinition of ‘class LogDuration’
403 | class LogDuration
| ^~~~~~~~~~~
./common.h:233:7: note: previous definition of ‘class LogDuration’
233 | class LogDuration
| ^~~~~~~~~~~
make[1]: *** [Makefile:184: graphtftng.o] Error 1
Alles anzeigen