From patchwork Tue Apr 14 20:12:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ville_Skytt=C3=A4?= X-Patchwork-Id: 12717 Received: from smtp6.welho.com ([213.243.153.40]) by mail.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1LtozW-0006yx-GP for vdr@linuxtv.org; Tue, 14 Apr 2009 22:12:23 +0200 Received: from viper.bobcat.mine.nu (cs181072155.pp.htv.fi [82.181.72.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp6.welho.com (Postfix) with ESMTP id 4AFCA5BC08E for ; Tue, 14 Apr 2009 23:12:17 +0300 (EEST) From: Ville =?iso-8859-15?q?Skytt=E4?= To: VDR Mailing List Date: Tue, 14 Apr 2009 23:12:15 +0300 User-Agent: KMail/1.11.1 (Linux/2.6.27.21-170.2.56.fc10.x86_64; KDE/4.2.1; x86_64; ; ) References: <200902272124.38328.ville.skytta@iki.fi> In-Reply-To: <200902272124.38328.ville.skytta@iki.fi> MIME-Version: 1.0 Message-Id: <200904142312.16137.ville.skytta@iki.fi> X-LSpam-Score: -2.3 (--) X-LSpam-Report: No, score=-2.3 required=5.0 tests=AWL=0.253, BAYES_00=-2.599 autolearn=ham Subject: Re: [vdr] Build failures with gcc 4.4 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2009 20:12:23 -0000 Status: O X-Status: X-Keywords: X-UID: 20075 On Friday 27 February 2009, Ville Skyttä wrote: > Hello, > > I'm trying to build VDR 1.6.0-2 for the upcoming Fedora 11 release which > has gcc 4.4. There are a bunch of compilation errors as gcc has again > become less forgiving for C++ than it used to be. > > One very common source of problems is explained here: > http://markmail.org/message/e5y6atneqztuvpw6#query: > +page:1+mid:hdkehz7bgl5b6vgc+state:results > > There are quite a few of these problems in VDR 1.6.0-2 ("error: invalid > conversion from 'const char*' to 'char*'"). I started patching but quickly > realized that this is a job for someone who actually knows what he's doing. [...] ...but until there's a real fix available, the attached ugly patch at least makes the build succeed with gcc 4.4. diff -up vdr-1.6.0/Makefile~ vdr-1.6.0/Makefile --- vdr-1.6.0/Makefile~ 2008-02-29 23:43:03.000000000 +0200 +++ vdr-1.6.0/Makefile 2009-04-14 19:10:22.000000000 +0300 @@ -82,6 +82,10 @@ all: vdr i18n %.o: %.c $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< +recording.o: CXXFLAGS += -fpermissive +svdrp.o: CXXFLAGS += -fpermissive +videodir.o: CXXFLAGS += -fpermissive + # Dependencies: MAKEDEP = $(CXX) -MM -MG