Compiling kmc/kperl.cpp with gcc 3.3.2-r4 fails with ISO C++ errors: g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.2/i686-linux/CORE -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -pipe -fno-exceptions -fno-check-new -Wno-write-strings -Wno-unused -c -o kperl.o `test -f 'kperl.cpp' || echo './'`kperl.cpp cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++ kperl.cpp: In function `QString str_execute_perl(SV*, const char**)': kperl.cpp:321: error: ISO C++ forbids braced-groups within expressions kperl.cpp:334: error: ISO C++ forbids braced-groups within expressions The SvTRUE is a #define in /usr/lib/perl5/5.8.2/i686-linux/CORE/sv.h Reproducible: Always Steps to Reproduce: 1. 2. 3. Build does succeed with -fpermissive added to the CXXFLAGS This downgrades the error spawned to a warning.
Created attachment 22741 [details, diff] remove undefined entity Additionally my build got stuck on an undefined entity in doc/en/index.docbook patch to simply remove the entity.
i fixed the compile error in cvs but my build didnt experience an error on the docbook stuff ...
Build works, as well my second system doesn't have the docbook error so i'll assume something broke on the first (much faster) system.