Version: (using KDE KDE 3.2.0) Installed from: Gentoo Packages Compiler: g++ (GCC) 3.3.2 20040108 OS: Linux In file included from /usr/kde/3.2/include/kaction.h:35, from ktron.cpp:28: /usr/kde/3.2/include/kstdaction.h:136: error: conflicting types for `Up' player.h:29: error: previous declaration as `Direction Up' g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdegames -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -mcpu=pentium4 -march=pentium4 -O3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp make[2]: *** [ktron.o] Fehler 1 make[2]: *** Warte auf noch nicht beendete Prozesse... make[2]: Leaving directory `/var/tmp/portage/kdegames-3.2.0/work/kdegames-3.2.0/ktron' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/kdegames-3.2.0/work/kdegames-3.2.0' make: *** [all] Fehler 2 !!! ERROR: kde-base/kdegames-3.2.0 failed. !!! Function kde_src_compile, Line 127, Exitcode 2 !!! died running emake, kde_src_compile:make
Confirmed via a number of people using Gentoo. What confuses me is that "Up" is defined as an enum with in the KStdAction namespace, so I don't know why that could conflict with the player.h
Happend to me on two boxes after upgrading gcc to 3.3.2-r6, another box with previous gcc did compile. Not only ktron is affected. The defintion of "New" in kstdaction.h also breaks (regardless of namespace) libksirted with a duplicate defintion. A new gcc behaviour?
Created attachment 4513 [details] ktron build fix takes care of ktron build problems thanks to Florian Loitsch
Created attachment 4515 [details] takes care of libksirtet build problem makes libksirtet build properly Thanks again to Florian Loitsch
Forgotten "CCMAIL:" in http://lists.kde.org/?l=kde-cvs&m=107599028715837&w=2