VDR working under FC3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Linux TV schrieb am 15.02.05, um 18:17 Uhr:
> [root@nzbaxters VDR]# make
> g++ -g -O2 -Wall -Woverloaded-virtual -c -DREMOTE_KBD -DREMOTE_ -D_GNU_SOURCE -D
> VIDEODIR=\"/fifty/video\" -DPLUGINDIR=\"./PLUGINS/lib\" -I/share/dvb-cvs/dvb-ker
> nel/linux/drivers/media/dvb/include channels.c
> In file included from channels.h:13,
>                  from channels.c:10:
> config.h: In member function `bool cConfig<T>::Save()':
> config.h:140: error: there are no arguments to `First' that depend on a template
>  parameter, so a declaration of `First' must be available
> config.h:140: error: (if you use `-fpermissive', G++ will accept your code, but
> allowing the use of an undeclared name is deprecated)
> make: *** [channels.o] Error 1
> 
> any ideas??

I guess FC3 uses gcc3.4, to compile vdr (at least this applies to vdr 
1.2.6) with gcc3.4 you need the following patch:

diff -urNad /home/chelli/vdr/cvs/vdr/vdr/config.h vdr/config.h
--- /home/chelli/vdr/cvs/vdr/vdr/config.h	2004-05-14 12:32:15.000000000 +0200
+++ vdr/config.h	2004-08-02 12:51:07.000000000 +0200
@@ -137,7 +137,7 @@
   bool Save(void)
   {
     bool result = true;
-    T *l = (T *)First();
+    T *l = (T *)this->First();
     cSafeFile f(fileName);
     if (f.Open()) {
        while (l) {
diff -urNad /home/chelli/vdr/cvs/vdr/vdr/plugin.c vdr/plugin.c
--- /home/chelli/vdr/cvs/vdr/vdr/plugin.c	2004-05-14 12:32:19.000000000 +0200
+++ vdr/plugin.c	2004-08-02 12:51:07.000000000 +0200
@@ -162,7 +162,7 @@
   const char *error = dlerror();
   if (!error) {
      void *(*creator)(void);
-     (void *)creator = dlsym(handle, "VDRPluginCreator");
+     creator = (void*(*)())dlsym(handle, "VDRPluginCreator");
      if (!(error = dlerror()))
         plugin = (cPlugin *)creator();
      }


Regards,
Thomas

-- 
Thomas Schmidt
:wq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20050215/9570e8c0/attachment.pgp

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux