On Friday 27 February 2009, Ville Skyttä wrote:
> 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:
> 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
$(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $<
+recording.o: CXXFLAGS += -fpermissive
+svdrp.o: CXXFLAGS += -fpermissive
+videodir.o: CXXFLAGS += -fpermissive
MAKEDEP = $(CXX) -MM -MG
vdr mailing list