The gcc-3.3.2-r6 version has a problem that doesn't happened in the previous version. I've noticed it compiling my project (kde-bluetooth) and another kde-bluetooth developer said that this problem was present in a debian gcc-3.3.3-pre version but in the latest debian gcc-3.3.3 version it's correct. You can reproduce it compiling this simple program: void x() { } namespace N { enum E { x }; } int main(int, char*[]) { } it gives this error: example.cpp:3: error: `x' redeclared as different kind of symbol example.cpp:1: error: previous declaration of `void x()' Like you can see the x defined in the enum isn't correlated with the "x" function. A similar error happens with KDE using the file:/usr/kde/3.2/include/knotifyclient.h header in a function that conflicts with the /usr/qt/3/include/qglobal.h. I hope this will be corrected soon! Bye! Reproducible: Always Steps to Reproduce: 1. 2. 3.
I've had this problem too, and just confirmed that it doesn't exist in gcc-3.3.2-r5. This could cause problems with a lot of KDE apps.
Ill mask again.
I get this btw: -- gcc-test1.c:2: error: syntax error before "N" gcc-test1.c:2: error: syntax error before '{' token gcc-test1.c: In function `main': gcc-test1.c:5: error: parameter name omitted gcc-test1.c:5: error: parameter name omitted --
Bleh, dont worry, its c++ after all ...
Ok, this have been fixed in CVS - I will do a -r7 for testing later on.
Thanks!
Has this issue something to do with: http://article.gmane.org/gmane.linux.gentoo.user/65111 ? Many thanks, Norberto
Norberto, that looks like an unrelated problem. By the way, this doesn't seem to be a bug in gcc, but a more strict compliance with the c++ standard (and from a post on the kde-bluetooth mailing list that I found before looking here, it seems to be in gcc-3.3.3+). Removing the feature from gcc will help in the short term, but everything that has this error will have to be fixed to work with versions of gcc later than 3.3.2.
Thanks, but JFYI I downgraded to gcc-3.3.2-r5 and kdemultimedia 3.2 emerged correctly.
Don't mind my last comment, I wasn't aware that the knotifyclient.h error involved a namespace.
-r7 fix it if anybody wants to take it for a spin ...
I tested this earlier; it works for me.