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.
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 (videodir.c) cSVDRP::CmdGRAB.
Help appreciated!
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
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.
Ville Skyttä wrote:
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: 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.
So gcc 4.4 finally hit openSUSE as well. I use the attached patch to make vdr compile. Seems to work fine too. The code that requires those const casts is really ugly though.
cu Ludwig
On 04.06.2009 09:12, Ludwig Nussel wrote:
... So gcc 4.4 finally hit openSUSE as well. I use the attached patch to make vdr compile. Seems to work fine too. The code that requires those const casts is really ugly though.
How about the attached change? Should apply to VDR 1.6 just as well.
Klaus
Klaus Schmidinger wrote:
On 04.06.2009 09:12, Ludwig Nussel wrote:
... So gcc 4.4 finally hit openSUSE as well. I use the attached patch to make vdr compile. Seems to work fine too. The code that requires those const casts is really ugly though.
How about the attached change? Should apply to VDR 1.6 just as well.
Looks better indeed. I've added it to the vdr package in the build service now.
cu Ludwig