Re: Build failures with gcc 4.4

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

 



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
_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[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