[vdr] reelchannelscan for S2API-patched VDR

gimli gimli at dark-green.com
Fri Oct 17 17:53:59 CEST 2008


Hi,

you hit a problem with gcc 4.3 changes ;)

svn co
svn://reelbox.org/testing/src/vdr-plugins/src/channelscan-0.6.1 -r9040

The attached patch is absolutley untested. I may work or not.
Basicly it survives the compile test ;)

cu

Edgar (gimli) Hucek

Goga777 schrieb:
> Приветствую, Frank
> 
> thanks for your patch, but I couldn't compile it
> I have
> 
> VDR 1.7.0 with s2api patch from Niels and h264 patch from Reinchard
> gcc version 4.3.2 (Debian 4.3.2-1)
> 
> 
> I have this error 
> 
> make[1]: Entering directory `/usr/src/vdr170_0/PLUGINS/src/channelscan_fks-0.6.1'
> g++ -fPIC -O2 -Wall -Woverloaded-virtual -fno-strict-aliasing -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"reelchannelscan"' -DVDRDIR=\"../../..\" -DBOOST_IOSTREAMS_NO_LIB  -DNDEBUG -I../../../include -I../..//include channelscan.c
> In file included from filter.h:42,
>                   from scan.h:34,
>                   from csmenu.h:42,
>                   from channelscan.c:31:
> transponders.h:358: error: ISO C++ forbids declaration of ‘auto_ptr’ with no type
> transponders.h:358: error: invalid use of ‘::’
> transponders.h:358: error: expected ‘;’ before ‘<’ token
> transponders.h: In member function ‘void cTransponders::ResetNITStartTransponder(cSatTransponder*)’:
> transponders.h:351: error: ‘nitStartTransponder_’ was not declared in this scope
> transponders.h: In member function ‘cTransponder* cTransponders::GetNITStartTransponder()’:
> transponders.h:406: error: ‘nitStartTransponder_’ was not declared in this scope
> In file included from channelscan.c:31:
> csmenu.h: At global scope:
> csmenu.h:224: error: ISO C++ forbids declaration of ‘auto_ptr’ with no type
> csmenu.h:224: error: invalid use of ‘::’
> csmenu.h:224: error: expected ‘;’ before ‘<’ token
> 
> I added #include <memory> in  transponders.h (thanks to free-x for advice) and I have others errors
> 
> Plugin reelchannelscan:
> make[1]: Entering directory `/usr/src/vdr170_0/PLUGINS/src/channelscan_fks-0.6.1'
> make[1]: Leaving directory `/usr/src/vdr170_0/PLUGINS/src/channelscan_fks-0.6.1'
> make[1]: Entering directory `/usr/src/vdr170_0/PLUGINS/src/channelscan_fks-0.6.1'
> g++ -fPIC -O2 -Wall -Woverloaded-virtual -fno-strict-aliasing -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"reelchannelscan"' -DVDRDIR=\"../../..\" -DBOOST_IOSTREAMS_NO_LIB  -DNDEBUG -I../../../include -I../..//include channelscan.c
> g++ -fPIC -O2 -Wall -Woverloaded-virtual -fno-strict-aliasing -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"reelchannelscan"' -DVDRDIR=\"../../..\" -DBOOST_IOSTREAMS_NO_LIB  -DNDEBUG -I../../../include -I../..//include csmenu.c
> csmenu.c: In member function ‘void cMenuScanActive::Setup()’:
> csmenu.c:954: warning: deprecated conversion from string constant to ‘char*’
> csmenu.c:954: warning: deprecated conversion from string constant to ‘char*’
> csmenu.c:954: warning: deprecated conversion from string constant to ‘char*’
> csmenu.c:954: warning: deprecated conversion from string constant to ‘char*’
> g++ -fPIC -O2 -Wall -Woverloaded-virtual -fno-strict-aliasing -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"reelchannelscan"' -DVDRDIR=\"../../..\" -DBOOST_IOSTREAMS_NO_LIB  -DNDEBUG -I../../../include -I../..//include filter.c
> filter.c: In member function ‘virtual void PatFilter::Process(u_short, u_char, const u_char*, int)’:
> filter.c:681: error: no matching function for call to ‘cChannel::SetPids(int&, int, int, int [33], char [33][8], int [17], char [17][8], int [33], char [33][8], int&)’
> ../../../include/vdr/channels.h:232: note: candidates are: void cChannel::SetPids(int, int, int*, char (*)[8], int*, char (*)[8], int*, char (*)[8], int)
> make[1]: *** [filter.o] Ошибка 1
> make[1]: Leaving directory `/usr/src/vdr170_0/PLUGINS/src/channelscan_fks-0.6.1'
> 
> 
> can someone to help me please
> 
> Goga
> 
> 
> 
> 
> 
>> reelchannelscan-plugin from svn
>> svn co svn://reelbox.org/testing/src/vdr-plugins/src/channelscan-0.6.1
>> -r9031
>>
>> and my attached patch.
>>
>> Beware: I DON'T KNOW WHAT I AM DOING HERE!
>> It compiles, it scans transponder and finds channels.
>> It works for me, but I'm no C or C++ programmer...
> 
> _______________________________________________
> vdr mailing list
> vdr at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-channelscan-0.6.1-v2-s2api.diff
Type: text/x-diff
Size: 10188 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20081017/2d9b04c4/attachment-0001.diff 


More information about the vdr mailing list