emergeing kdegames fails while on ktron. It appears to be a problemed include 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 -march=athlon-xp -O3 -fomit-frame-pointer -pipe -falign-functions=64 -mfpmath=sse -m3dnow -msse -mmmx -ffast-math -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 general.o `test -f 'general.cpp' || echo './'`general.cpp 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' make[2]: *** [ktron.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/kdegames-3.2.0/work/kdegames-3.2.0/ktron' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdegames-3.2.0/work/kdegames-3.2.0' make: *** [all] Error 2 !!! ERROR: kde-base/kdegames-3.2.0 failed. !!! Function kde_src_compile, Line 127, Exitcode 2 !!! died running emake, kde_src_compile:make Reproducible: Always Steps to Reproduce: 1.remove kdegames-3.2.0.tar.bz2 2.emerge kdegames 3. Actual Results: No change Expected Results: it should have built Portage 2.0.50_pre21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.2-rc2-love4) ================================================================= System uname: 2.6.2-rc2-love4 i686 AMD Athlon(tm) MP 1900+ Gentoo Base System version 1.4.3.12 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -pipe -falign-functions=64 -mfpmath=sse -m3dnow -msse -mmmx -ffast-math" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -pipe -falign-functions=64 -mfpmath=sse -m3dnow -msse -mmmx -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache" GENTOO_MIRRORS="http://128.213.5.34/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage"
same here on a p4, is there a way to disable kdegames, because i don`t need it? 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
what do you mean a way to disable it? don't emerge it if you don't want it! :)
you can fix this by emerge kdeaddons before you emerge kdegames - there's some header files shared between the two. it's not a problem if you don't have an older version of kdeaddons installed, but in this case it looks like you do.
Same problem here. I am doing a fresh install of kde 3.2, there can be no old headers in /usr/kde/3.2/, because I used kde 3.1.5 before (these headers should be in /usr/kde/3.1.5/ or /usr/kde/3.1/) greetz gronau
Same problem here with no previous KDE installation. Emerging kdeaddons now, will report back if it doesn't fix it.
Emerging kdeaddons has no effect.
I'm getting the same error here with kdetron. I unmerged all the KDE 3.1.5 stuff before running emerge kde (which emerges kdeaddons before kdegames anyway). I re-emerge kdeaddons just in case but kdegames ebuild fails the same way.
Finished the rest of kde 3.2, then tried kdegames again.... still does not work.
ok, I've add ktron to the do_not_compile list, so if you emerge kdegames now it should emerge. no report from KDE as to what the best thing to do here is.
How does one add this to the do_not_compile list? (and where is said list?) Thanks.
Created attachment 24956 [details, diff] ktron.patch fixes the name-conflict fixes the name-clash (i put a namespace around the enum). but i have no idea, where to put the patch (in the portage-tree).
http://bugs.kde.org/show_bug.cgi?id=74121
ebuild /usr/portage/kde-base/kdegames/kdegames-3.2.0.ebuild unpack cd cd /var/tmp/portage/kdegames-3.2.0/work/kdegames-3.2.0/ktron/ patch < ktron.patch patching file player.cpp patching file player.h patching file tron.cpp patching file tron.h ebuild /usr/portage/kde-base/kdegames/kdegames-3.2.0.ebuild compile ebuild /usr/portage/kde-base/kdegames/kdegames-3.2.0.ebuild install That should do it.
Sorry, ignore the last to ebuild commands and just run: ebuild /usr/portage/kde-base/kdegames/kdegames-3.2.0.ebuild merge
once patch was in place we got further but the following burped: /bin/sh ../../libtool --silent --mode=compile --tag=CXX 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 -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=athlon-xp -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 pline.lo `test -f 'pline.cpp' || echo './'`pline.cpp /bin/sh ../../libtool --silent --mode=compile --tag=CXX 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 -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=athlon-xp -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 wizard.lo `test -f 'wizard.cpp' || echo './'`wizard.cpp /bin/sh ../../libtool --silent --mode=compile --tag=CXX 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 -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=athlon-xp -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 meeting.lo `test -f 'meeting.cpp' || echo './'`meeting.cpp /bin/sh ../../libtool --silent --mode=compile --tag=CXX 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 -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=athlon-xp -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 keys.lo `test -f 'keys.cpp' || echo './'`keys.cpp meeting.cpp: In constructor `NetMeeting::NetMeeting(const cId&, Socket*, MPOptionWidget*, bool, QWidget*, const char*)': meeting.cpp:54: warning: `setButtonOKText' is deprecated (declared at /usr/kde/3.2/include/kdialogbase.h:917) meeting.cpp:57: warning: `setButtonCancelText' is deprecated (declared at /usr/kde/3.2/include/kdialogbase.h:973) /bin/sh ../../libtool --silent --mode=compile --tag=CXX 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 -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=athlon-xp -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 mp_interface.lo `test -f 'mp_interface.cpp' || echo './'`mp_interface.cpp /bin/sh ../../libtool --silent --mode=compile --tag=CXX 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 -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=athlon-xp -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 internal.lo `test -f 'internal.cpp' || echo './'`internal.cpp /bin/sh ../../libtool --silent --mode=compile --tag=CXX 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 -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=athlon-xp -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 mp_simple_board.lo `test -f 'mp_simple_board.cpp' || echo './'`mp_simple_board.cpp /bin/sh ../../libtool --silent --mode=compile --tag=CXX 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 -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=athlon-xp -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 mp_simple_interface.lo `test -f 'mp_simple_interface.cpp' || echo './'`mp_simple_interface.cpp In file included from /usr/kde/3.2/include/kaction.h:35, from keys.h:5, from mp_interface.cpp:16: /usr/kde/3.2/include/kstdaction.h:124: error: conflicting types for `New' types.h:35: error: previous declaration as `MeetingMsgFlag New' make[3]: *** [mp_interface.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/mnt/bigdisk1/tmp/portage/kdegames-3.2.0/work/kdegames-3.2.0/libksirtet/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/mnt/bigdisk1/tmp/portage/kdegames-3.2.0/work/kdegames-3.2.0/libksirtet' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/bigdisk1/tmp/portage/kdegames-3.2.0/work/kdegames-3.2.0' make: *** [all] Error 2 !!! ERROR: kde-base/kdegames-3.2.0 failed. !!! Function kde_src_compile, Line 127, Exitcode 2 !!! died running emake, kde_src_compile:make emerge info Portage 2.0.50_pre21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1-mm4) ================================================================= System uname: 2.6.1-mm4 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.3.12 Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache cvs sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/bigdisk1/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi acpi4linux alsa apm arts avi berkdb bonobo cdr crypt cups dvd dvdr encode esd foomaticdb gb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib jack java javascript jpeg kde libg++ libgda libwww mad mikmod motif mozilla mpeg ncurses nls ofx oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcpd transcode truetype usb v4l x86 xinerama xml xml2 xmms xv zlib"
Created attachment 24960 [details, diff] libksirtet.patch (wraps the enum into a namespace) attached patch fixes the problem (enum-clash)... (people should start using namespaces/classes/structs for enums). kdegames should merge fine now. previous install-procedures are still valid. here's just my way: cd /var/tmp/portage/kdegames-3.2.0/work/kdegames-3.2.0/ patch -p0 < ktron.patch patch -p0 < libksirtet.patch ebuild /usr/portage/kde-base/kdegames/kdegames-3.2.0.ebuild merge if somebody could integrate the patches into the ebuilds (or even better get the apps fixed). ps: these patches are completely untested (i just looked, if it compiles).
Created attachment 24963 [details] ebuild incorperating patches I updated the ebuild to apply Florian's patches. Thanks
just conferming that ktron and ksirtet work after kdegames-3.2.0-r1.ebuild is done building :) Thanks again
As posted by others, emerging kdeaddons didn't fix it. Used Christopher's ebuild to apply Florian's patches and now I'm up and running.
ditto .. patches applied manually or via modified ebuild work fine for compiling .. just some naming issues for the patch files readily resolved w.r.t. the ebuild's requirements.. needed to rename patches to kdegames-3.2.0-XXXXX.patch where XXXXX was ktron or libksirtet and then it worked fine
Works for me, after renaming the patch files (same as previous comment).
sorry... for got to mention the renaming patches part. I tried to keep some consistency with naming patches. so that I know what they are for :) Thanks for catching me
This is what I am trying now. I hope all file names and locations are correct... Ajax kdegames # pwd /usr/portage/kde-base/kdegames Ajax kdegames # ls -al total 48 drwxr-xr-x 3 root root 4096 Feb 5 13:14 . drwxr-xr-x 22 root root 4096 Feb 5 12:13 .. -rw-r--r-- 1 root root 7751 Feb 4 21:43 ChangeLog -rw-rw-r-- 1 root portage 990 Feb 5 13:11 Manifest drwxr-xr-x 2 root root 4096 Feb 5 13:14 files -rw-r--r-- 1 root root 357 Jan 19 05:35 kdegames-3.0.5b.ebuild -rw-r--r-- 1 root root 1128 Jan 13 18:40 kdegames-3.1.4.ebuild -rw-r--r-- 1 root root 944 Jan 29 14:42 kdegames-3.1.5.ebuild -rw-r--r-- 1 root root 459 Feb 5 13:10 kdegames-3.2.0-r1.ebuild -rw-r--r-- 1 root root 371 Feb 4 21:43 kdegames-3.2.0.ebuild -rw-r--r-- 1 root root 161 Jul 2 2003 metadata.xml Ajax kdegames # ls -al files total 56 drwxr-xr-x 2 root root 4096 Feb 5 13:14 . drwxr-xr-x 3 root root 4096 Feb 5 13:14 .. -rw-r--r-- 1 root root 286 Apr 9 2003 digest-kdegames-3.0.5b -rw-r--r-- 1 root root 68 Sep 17 04:21 digest-kdegames-3.1.4 -rw-r--r-- 1 root root 68 Jan 15 04:32 digest-kdegames-3.1.5 -rw-r--r-- 1 root root 68 Feb 2 15:25 digest-kdegames-3.2.0 -rw-rw-r-- 1 root portage 68 Feb 5 13:11 digest-kdegames-3.2.0-r1 -rw-r--r-- 1 root root 592 Apr 8 2003 kdegames-3.0.5b-gentoo.diff -rw-r--r-- 1 root root 16022 Feb 5 13:09 kdegames-3.2.0-ktron.patch -rw-r--r-- 1 root root 6905 Feb 5 13:10 kdegames-3.2.0-libksirtet.patch The files have been downloaded from this bug report and renamed. I also had to compute digests. Now I'm running emerge -uv kde (since all other parts of kde have already compiled successfully).
These patches are now in portage.
Ok I was right about the names & locations. Glad it's in portage now.
*** Bug 40652 has been marked as a duplicate of this bug. ***
Are they really in portage? Because when I 'emerge sync' I don't get a kdegames-3.2.0-r1
the ebuild was just updated to include the patches but not reveison bumped. not every one *needed* the patch, so if the bild worked for you, then your fine, if it had not then it should now as the patches are now applied. I am pretty sure that this problem was actually a gcc bug: http://bugs.gentoo.org/show_bug.cgi?id=40603 as kdebindings was having simmilar issues that downgrading took care of.