kdemultimedia uses multiline string litterals which breaks compilation when using gcc-3.3.x. I'm attaching diffs to the kdemultimedia source and the 3.1.4-r1 ebuild. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 18693 [details, diff] New ebuild (only adding the multiline-patch)
Created attachment 18694 [details, diff] Patched kdemultimedia source fixing compile errors
KDE People want me to handle this? It falls under all those other gcc-3.3 multi-line strigs bugs gcc-porting has been handling.
yes, if you would like please do. I'm a a bit baffled how this is still in the source code - if it truly is a multiline string problem is should have been resolved in the kde source a long time ago.
kdemultimedia compiles fine here using gcc-3.3.1-r4. I'm not convinced that kdemultimedia has a problem with multiline string literals. They have used a "\" at the end of each line that lets things compile nicely. e.g. without the terminating "\": #include <stdio.h> int main() { printf("multiline\n string"); } # g++ -c program.cc test1.cc:3:8: missing terminating " character test1.cc:4:6: missing terminating " character test1.cc: In function `int main()': test1.cc:4: error: parse error before string constant and with the terminating "\": #include <stdio.h> int main() { printf("multiline\n\ string"); } # g++ -c program.cc # As caleb pointed out, there would probably already have been a slew of bug reports if kdemultimedia couldn't compile using gcc-3.3.x
Okay, according to http://lwn.net/Articles/33227/ the multi line string literals that were in the source file to begin with should be valid (as Brandy also pointed out). What kind of compile errors are you getting here?
Sorry, I can't reproduce this any more. I haven't updated gcc or anything else, so I don't really know what happened.
Author says it's fixed on his end.