showed up as an U after emerge sync today but fails to build /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdenetwork -I../libkdepim -I../libkpimidentities -I../libksieve -I../mimelib -I../certmanager/lib -I.. -I/usr/include/gpgme -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -ftracers -fweb -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 bodyvisitor.lo bodyvisitor.cpp /usr/qt/3/bin/moc ./antispamwizard.h -o antispamwizard.moc /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdenetwork -I../libkdepim -I../libkpimidentities -I../libksieve -I../mimelib -I../certmanager/lib -I.. -I/usr/include/gpgme -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -ftracers -fweb -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 antispamwizard.lo antispamwizard.cpp antispamwizard.cpp: In member function `virtual void KMail::AntiSpamWizard::accept()': antispamwizard.cpp:362: error: 'class KMFilterMgr' has no member named 'appendFilters' make[3]: *** [antispamwizard.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0/kmail' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0/kmail' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0' make: *** [all] Error 2 !!! ERROR: kde-base/kdepim-3.3.0-r1 failed. !!! Function kde_src_compile, Line 135, Exitcode 2 !!! died running emake, kde_src_compile:make Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r10 (gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.9-rc1) =============================================================== == System uname: 2.6.9-rc1 x86_64 AMD Athlon(tm) 64 FX-53 Processor Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -march=k8 -pipe -ftracers -fweb" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/ share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -pipe -ftracers -fweb" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://adelie.polymtl.ca/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm arts avi berkdb cdr crypt dvd dvdr encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mikmod motif mpeg mssql multilib mysql ncurses nls ntpl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl tcltk tcpd truetype xml2 xmms xv zlib"
I've the same, only with kde-base/kdepim-3.3.0-r1
Patch seems to be against post 3.3.0-release kdepim. 10 days ago (as of 04-09-2004) member function appendFilter(..) was renamed to appendFilters() and rewritten. in de 3.3.0 release this change was not made yet so this patch cannot be applied as-is -- it would need more changes from cvs.
I tried to work around the compile error with the following piece of code at antispamwizard.cpp:362 for (QPtrListStdIterator<KMFilter> it = filterList.begin(); it != filterList.end(); ++it) { KMKernel::self()->filterMgr()->appendFilter( *it ); } This files compiles now, but then I get the next compile-error: /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdenetwork -I../libkdepim -I../libkpimidentities -I../libksieve -I../mimelib -I../certmanager/lib -I.. -I/usr/include/gpgme -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O3 -pipe -fomit-frame-pointer -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 kmail_part.lo kmail_part.cpp kmail_part.cpp: In constructor `KMailPart::KMailPart(QWidget*, const char*, QObject*, const char*, const QStringList&)': kmail_part.cpp:61: error: `Part' is not a class or namespace kmail_part.cpp:61: error: class `KMailPart' does not have any field named `KPIM ' make[1]: *** [kmail_part.lo] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0/kmail' make: *** [all-recursive] Fehler 1 so there is more to fix in the patch...
In kmail_part.cpp, the following change in the patch fails: - DCOPObject("KMailIface"), KParts::ReadOnlyPart(parent, name), + DCOPObject("KMailIface"), KPIM::Part(parent, name), I undid this change also and then compilation seems to go through. I'm not sure if these changes are correct, though.
Sorry, my fault. Grabbed the files and tested using the trial and error method. Unfortunately the patch did not apply, because I forgot to inherit eutils (Portage .50...) and I overlooked it. :(
*** Bug 62799 has been marked as a duplicate of this bug. ***
It still errors out even when eutils is added to the inherit. Here is the error message I get: /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdenetwork -I../libkdepim -I../libkpimidentities -I../libksieve -I../mimelib -I../certmanager/lib -I.. -I/usr/include/gpgme -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include-DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -mtune=i686 -O2 -funroll-loops -pipe -fno-unit-at-a-time -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 configuredialog.lo configuredialog.cpp kmail_part.cpp: In constructor `KMailPart::KMailPart(QWidget*, const char*, QObject*, const char*, const QStringList&)': kmail_part.cpp:61: error: expected class-name before '(' token make[3]: *** [kmail_part.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0/kmail' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0/kmail' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0' make: *** [all] Error 2 !!! ERROR: kde-base/kdepim-3.3.0-r1 failed. !!! Function kde_src_compile, Line 135, Exitcode 2 !!! died running emake, kde_src_compile:make
*** Bug 62832 has been marked as a duplicate of this bug. ***
>It still errors out even when eutils is added to the inherit Sure. It's just the reason why the patch did not apply for me and emerge kdepim did not break - overlooked that. I package masked the ebuild yesterday, but had a typo in it. Well, there's more than one to burn your fingers... Will have a look at the files tomorrow.
Created attachment 39005 [details, diff] code.diff Carsten: This is the diff for the code. I think it should build right, but note that libkdepim/Makefile.in needs to be regenerated (because the addition of part.{h,cpp} to libkdepim). I don't know if it's better to regenerate it and then patch or regenerate it in the ebuild. So, it's your decision. Note too that these Makefile.in are generated with automake-1.9 and the latest version in Gentoo is 1.8.5. I don't know if this could cause problems since I'm not an automake/autoconf expert. P.D.: Btw, thanks for adding me to the CC list.
I also get a failure, but different symptoms kmail_part.cpp: In constructor `KMailPart::KMailPart(QWidget*, const char*, QObject*, const char*, const QStringList&)': kmail_part.cpp:61: error: `Part' is not a class or namespace kmail_part.cpp:61: error: class `KMailPart' does not have any field named `KPIM ' make[3]: *** [kmail_part.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0/kmail' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0/kmail' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0' make: *** [all] Error 2 !!! ERROR: kde-base/kdepim-3.3.0-r1 failed. !!! Function kde_src_compile, Line 135, Exitcode 2 !!! died running emake, kde_src_compile:make my info follows: emerge info Portage 2.0.50-r10 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.7-rc3) ================================================================= System uname: 2.6.7-rc3 i686 mobile AMD Athlon(tm) XP2500+ Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -march=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" 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/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo http://cudlug.cudenver.edu/gentoo/ http://gentoo.eliteitminds.com http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" USE="X acpi alsa apm arts avi berkdb cdr crypt cups encode foomaticdb gdbm gif gimp gimpprint gphoto2 gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tiff truetype usb x86 xml2 xmms xv zlib"
if you reduce make opts to -j1 you'll get the same error that I am getting
Hi! I get the same error as Collins (Richey). Any workaround? Sincerely, Gour
Created attachment 39392 [details, diff] kdepim-3.3.0-spam-assistant.patch After my exams, I finally found time to solve this issue. This patch and the ebuild submitted to this bug work for me. Please test them. Note that using the ebuild in portage tree, kdepim-3.3.0-r1 won't build.
Created attachment 39393 [details] kdepim-3.3.0-r1.ebuild
its still failing for me
merwan: Please, paste the error you receive. If I don't know the error I can't fix it.
sorry... but it was the same error. Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -ftracers -fweb -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 antispamwizard.lo antispamwizard.cpp antispamwizard.cpp: In member function `virtual void KMail::AntiSpamWizard::accept()': antispamwizard.cpp:362: error: 'class KMFilterMgr' has no member named 'appendFilters' make[3]: *** [antispamwizard.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0/kmail' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0/kmail' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdepim-3.3.0-r1/work/kdepim-3.3.0' make: *** [all] Error 2 !!! ERROR: kde-base/kdepim-3.3.0-r1 failed. !!! Function kde_src_compile, Line 135, Exitcode 2 !!! died running emake, kde_src_compile:make then i emerged it againt to be certain the patch was applying , and it seems to be emerge ../kdepim-3.3.0-r1.ebuild Calculating dependencies ...done! >>> emerge (1 of 1) kde-base/kdepim-3.3.0-r1 to / >>> md5 src_uri ;-) kdepim-3.3.0.tar.bz2 >>> Unpacking source... >>> Unpacking kdepim-3.3.0.tar.bz2 to /var/tmp/portage/kdepim-3.3.0-r1/work * Applying kdepim-3.3.0-spam-assistant.patch... [ ok ] >>> Source unpacked.
merwan: If you receive that error, you haven't applied the patch attached to this report since my patch provides KMFilterMgr::appendFilters (const QPtrList<KMFilter>) (take a look at lines 308-316 and 327). You *have* to substitute /usr/portage/kde-base/kdepim/files/kdepim-3.3.0-spam-assistant.patch with the patch attached to this bug, substitute /usr/portage/kde-base/kdepim/kdepim-3.3.0-r1.ebuild with the one attached to this bug; and then build kdepim-3.3.0-r1.
ok i'll do it again but i cd'ed tot he files diectory and used wget to get your patch then cd'ed to kdpim and got the ebuild... should have overwritten the ebuild and patch... i'll remove them and try it again
mm my bad , the patch and ebuild link were saved as attachment-blah so they were obviosly noot getting used.... emerging it correctly now.
works now... sorry for the bogus error report earlier
Thanks for the corrected patch Alberto. Committed and unmasked. I let the bug a while open for feedback.
emerges just fine now... thx to everyone trying to get this going...
looks like it's fixed