Bug 74121 - kdegames-3.2.0 fails to build due to ktron
Summary: kdegames-3.2.0 fails to build due to ktron
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-04 11:52 UTC by Maik Zutz
Modified: 2004-02-12 20:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
ktron build fix (15.65 KB, patch)
2004-02-05 00:13 UTC, Christopher Rude
Details
takes care of libksirtet build problem (6.74 KB, patch)
2004-02-05 00:14 UTC, Christopher Rude
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maik Zutz 2004-02-04 11:52:14 UTC
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
Comment 1 Caleb Tennis 2004-02-04 21:37:03 UTC
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
Comment 2 Pergamon 2004-02-04 23:44:35 UTC
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?
Comment 3 Christopher Rude 2004-02-05 00:13:24 UTC
Created attachment 4513 [details]
ktron build fix

takes care of ktron build problems

thanks to Florian Loitsch
Comment 4 Christopher Rude 2004-02-05 00:14:48 UTC
Created attachment 4515 [details]
takes care of libksirtet build problem

makes libksirtet build properly

Thanks again to Florian Loitsch
Comment 5 Stephan Binner 2004-02-12 20:39:54 UTC
Forgotten "CCMAIL:" in http://lists.kde.org/?l=kde-cvs&m=107599028715837&w=2