[vdr] radio-0.2.5 compile error

2010-06-07 Thread Simon Baxter

Hi

Under vdr-1.7.15 I'm getting this compile error:
[r...@localhost radio]# make
g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -fPIC -c -D_GNU_SOURCE 
-DPLUGIN_NAME_I18N='radio' -I../../../include -I/include radioepg.c
radioepg.c: In function 'int epg_premiere(const char*, const char*, time_t, 
time_t)':

radioepg.c:26: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:31: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:42: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:55: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:60: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:72: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:90: error: invalid conversion from 'const char*' to 'char*'
radioepg.c: In function 'int epg_kdg(const char*, time_t, time_t)':
radioepg.c:157: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:168: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:179: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:190: error: invalid conversion from 'const char*' to 'char*'
radioepg.c: In function 'int epg_unitymedia(const char*, const char*, 
time_t, time_t)':

radioepg.c:257: error: invalid conversion from 'const char*' to 'char*'
radioepg.c:260: error: invalid conversion from 'const char*' to 'char*'
make: *** [radioepg.o] Error 1

Any ideas? 



___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] radio-0.2.5 compile error

2010-06-07 Thread Uwe Hanke
Hi,

it has been fixed in vdr-radio version 0.9x:
http://egal-vdr.de/plugins/in_progress/vdr-radio-0.9.0pre.tgz

or attached patch, thx to z...@vdr-portal.

Cheers,
Uwe


Am Mon, 7 Jun 2010 18:41:28 +1200
schrieb Simon Baxter linu...@nzbaxters.com:

 Hi
 
 Under vdr-1.7.15 I'm getting this compile error:
 [r...@localhost radio]# make
 g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -fPIC -c
 -D_GNU_SOURCE -DPLUGIN_NAME_I18N='radio' -I../../../include
 -I/include radioepg.c radioepg.c: In function 'int epg_premiere(const
 char*, const char*, time_t, time_t)':
 radioepg.c:26: error: invalid conversion from 'const char*' to 'char*'
 radioepg.c:31: error: invalid conversion from 'const char*' to 'char*'
 radioepg.c:42: error: invalid conversion from 'const char*' to 'char*'
 radioepg.c:55: error: invalid conversion from 'const char*' to 'char*'
 radioepg.c:60: error: invalid conversion from 'const char*' to 'char*'
 radioepg.c:72: error: invalid conversion from 'const char*' to 'char*'
 radioepg.c:90: error: invalid conversion from 'const char*' to 'char*'
 radioepg.c: In function 'int epg_kdg(const char*, time_t, time_t)':
 radioepg.c:157: error: invalid conversion from 'const char*' to
 'char*' radioepg.c:168: error: invalid conversion from 'const char*'
 to 'char*' radioepg.c:179: error: invalid conversion from 'const
 char*' to 'char*' radioepg.c:190: error: invalid conversion from
 'const char*' to 'char*' radioepg.c: In function 'int
 epg_unitymedia(const char*, const char*, time_t, time_t)':
 radioepg.c:257: error: invalid conversion from 'const char*' to
 'char*' radioepg.c:260: error: invalid conversion from 'const char*'
 to 'char*' make: *** [radioepg.o] Error 1
 
 Any ideas? 
 
 
 ___
 vdr mailing list
 vdr@linuxtv.org
 http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdrdiff -ur radio-0.2.4.orig/radioepg.c radio-0.2.4/radioepg.c
--- radio-0.2.4.orig/radioepg.c	2007-10-09 18:45:26.0 +0300
+++ radio-0.2.4/radioepg.c	2009-08-08 22:50:46.0 +0300
@@ -12,7 +12,7 @@
 int epg_premiere(const char *epgtitle, const char *epgdescr, time_t epgstart, time_t epgend) 
 {
 	int i;
-	char *p;
+	const char *p;
 	char artist[RT_MEL], titel[RT_MEL], album[RT_MEL], jahr[RT_MEL];
 	struct tm tm_store;
 
@@ -143,7 +143,7 @@
 int epg_kdg(const char *epgdescr, time_t epgstart, time_t epgend) 
 {
 	int i;
-	char *p;
+	const char *p;
 	char artist[RT_MEL], titel[RT_MEL], album[RT_MEL], komp[RT_MEL];
 	struct tm tm_store;
 
@@ -240,7 +240,7 @@
 int epg_unitymedia(const char *epgtitle, const char *epgdescr, time_t epgstart, time_t epgend) 
 {
 	int i;
-	char *p1, *p2;
+	const char *p1, *p2;
 	char  titel[2*RT_MEL], artist[2*RT_MEL];
 	struct tm tm_store;
 
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] radio-0.2.5 compile error

2010-06-07 Thread Mr Tux
Hello Simon

Uwe offers a 1.7.x preversion (vdr-radio-0.9.0pre) on his webspace [1] - builds 
fine with 1.7.15

[1] http://www.egal-vdr.de/plugins/in_progress/20090905_vdr-radio-0.9.0pre.tgz


Simon Baxter linuxtv at nzbaxters.com wrote on Mon Jun 7 08:41:28 CEST 2010
Under vdr-1.7.15 I'm getting this compile error:
Any ideas? 





___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] radio-0.2.5 compile error

2010-06-07 Thread Simon Baxter

Hi,

it has been fixed in vdr-radio version 0.9x:
http://egal-vdr.de/plugins/in_progress/vdr-radio-0.9.0pre.tgz

or attached patch, thx to z...@vdr-portal.




Thanks!

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr