From patchwork Tue Feb 15 17:31:38 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Schmidt X-Patchwork-Id: 11782 Received: from piggy.rz.tu-ilmenau.de ([141.24.4.8]) by www.linuxtv.org with esmtp (Exim 4.34) id 1D16Xz-0003qN-9g for vdr@linuxtv.org; Tue, 15 Feb 2005 18:31:39 +0100 Received: from slipstream.wg (p509084EC.dip0.t-ipconnect.de [80.144.132.236]) (authenticated bits=0) by piggy.rz.tu-ilmenau.de (8.12.10/8.12.10) with ESMTP id j1FHVdU6010884 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for finalrecipients; Tue, 15 Feb 2005 18:31:39 +0100 (MET) Received: from chelli by slipstream.wg with local (Exim 4.44 #1 (Debian)) id 1D16Xy-0003V4-Sx for ; Tue, 15 Feb 2005 18:31:38 +0100 Date: Tue, 15 Feb 2005 18:31:38 +0100 From: Thomas Schmidt To: "Klaus Schmidinger's VDR" Subject: Re: [vdr] VDR working under FC3? Message-ID: <20050215173138.GB10082@slipstream> References: <038301c51382$3113e1f0$be95b984@nsctechnology.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <038301c51382$3113e1f0$be95b984@nsctechnology.com> X-Editor: Vim http://www.vim.org/ X-Operating-System: Debian/GNU Linux/2.6.10 (i686) X-Uptime: 18:25:04 up 3:15, 2 users, load average: 0.00, 0.00, 0.00 User-Agent: Mutt/1.5.6+20040907i Sender: Thomas Schmidt X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 17:31:39 -0000 Status: O X-Status: X-Keywords: X-UID: 91 * 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::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: Regards, Thomas 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(); }