[vdr] Build failures with gcc 4.4
ville.skytta at iki.fi
Fri Feb 27 20:24:37 CET 2009
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.
Anyway, attached is a patch against VDR 1.6.0-2 that fixes the first few of
these errors. Approach with caution: I'm fairly confident that for example
the changes to cRecordings::DelByName are not the right thing to do but then
again I might not understand what it's doing anyway (changing the extension
of the filename to .del but not actually renaming the file accordingly?).
In addition to these errors, similar ones exist at least in StatNearestDir
By the way, in case someone runs into it, some recent changes in DVB headers
(as in current Fedora devel) have caused other unrelated compilation
issues, -D__KERNEL_STRICT_NAMES appears to be needed to get compilation past
dvbdevice.c. See https://bugzilla.redhat.com/show_bug.cgi?id=483644
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1749 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20090227/17e5a3a8/attachment.patch
More information about the vdr