Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62767 - kdepim fails
Summary: kdepim fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 62799 62832 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-03 16:49 UTC by merwan kashouty
Modified: 2011-10-30 22:47 UTC (History)
20 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
code.diff (code.diff,28.88 KB, patch)
2004-09-05 12:12 UTC, Alberto Garcia Hierro (Skyhusker)
Details | Diff
kdepim-3.3.0-spam-assistant.patch (kdepim.diff,29.27 KB, patch)
2004-09-11 07:23 UTC, Alberto Garcia Hierro (Skyhusker)
Details | Diff
kdepim-3.3.0-r1.ebuild (kdepim-3.3.0-r1.ebuild,671 bytes, text/plain)
2004-09-11 07:23 UTC, Alberto Garcia Hierro (Skyhusker)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description merwan kashouty 2004-09-03 16:49:05 UTC
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"
Comment 1 Bertrand Jacquin 2004-09-03 19:14:32 UTC
I've the same, only with kde-base/kdepim-3.3.0-r1
Comment 2 Ronald Hummelink 2004-09-03 19:20:08 UTC
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.
Comment 3 Dominik Stadler (RETIRED) gentoo-dev 2004-09-04 01:44:30 UTC
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...
Comment 4 Dominik Stadler (RETIRED) gentoo-dev 2004-09-04 01:58:01 UTC
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.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2004-09-04 03:22:40 UTC
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. :(
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2004-09-04 03:39:11 UTC
*** Bug 62799 has been marked as a duplicate of this bug. ***
Comment 7 Kathy Wills 2004-09-04 14:21:23 UTC
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
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2004-09-05 10:03:57 UTC
*** Bug 62832 has been marked as a duplicate of this bug. ***
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2004-09-05 10:12:45 UTC
>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.
Comment 10 Alberto Garcia Hierro (Skyhusker) 2004-09-05 12:12:42 UTC
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.
Comment 11 Collins Richey 2004-09-06 08:15:48 UTC
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"




Comment 12 merwan kashouty 2004-09-06 09:50:59 UTC
if you reduce make opts to -j1 you'll get the same error that I am getting
Comment 13 Gour 2004-09-07 08:08:08 UTC
Hi! 

I get the same error as Collins (Richey).

Any workaround?

Sincerely,
Gour
Comment 14 Alberto Garcia Hierro (Skyhusker) 2004-09-11 07:23:19 UTC
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.
Comment 15 Alberto Garcia Hierro (Skyhusker) 2004-09-11 07:23:47 UTC
Created attachment 39393 [details]
kdepim-3.3.0-r1.ebuild
Comment 16 merwan kashouty 2004-09-11 08:39:33 UTC
its still failing for me
Comment 17 Alberto Garcia Hierro (Skyhusker) 2004-09-11 08:42:59 UTC
merwan: Please, paste the error you receive. If I don't know the error I can't fix it.
Comment 18 merwan kashouty 2004-09-11 10:26:27 UTC
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.
Comment 19 Alberto Garcia Hierro (Skyhusker) 2004-09-11 10:42:49 UTC
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.
Comment 20 merwan kashouty 2004-09-11 10:48:30 UTC
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
Comment 21 merwan kashouty 2004-09-11 10:57:00 UTC
mm my bad , the patch and ebuild link were saved as attachment-blah so they were obviosly noot getting used.... emerging it correctly now.
Comment 22 merwan kashouty 2004-09-11 12:42:20 UTC
works now... sorry for the bogus error report earlier
Comment 23 Carsten Lohrke (RETIRED) gentoo-dev 2004-09-13 12:42:05 UTC
Thanks for the corrected patch Alberto. Committed and unmasked. I let the bug a while open for feedback.
Comment 24 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-09-14 09:11:55 UTC
emerges just fine now...
thx to everyone trying to get this going...
Comment 25 Caleb Tennis (RETIRED) gentoo-dev 2004-09-23 19:17:54 UTC
looks like it's fixed