Build failures with gcc 4.4
Commit Message
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.
@@ -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