Koffice 1.3.1 fails to build. I am currently retrying with gcc 3.3.3 to see if that works. Reproducible: Always Steps to Reproduce: 1.emerge koffice 2. 3. Actual Results: /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/kofficeui -I../../lib/kofficeui -I../../lib/kofficecore -I../../lib/kofficecore -I../../lib/store -I../../lib/store -I../../lib/kwmf -I../../lib/kwmf -I../../lib/kopainter -I../../lib/kopainter -I./.. -I./../core -I./../commands -I./../render -I./../dialogs -I./../dockers -I./../tools -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=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -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 vcolorslider.lo `test -f 'vcolorslider.cc' || echo './'`vcolorslider.cc vcanvas.cc: In member function `void VCanvas::setViewportRect(const KoRect&)': vcanvas.cc:246: warning: converting to `int' from `double' vcanvas.cc:248: warning: converting to `int' from `double' vcanvas.cc: In member function `void VCanvas::repaintAll(const KoRect&)': vcanvas.cc:314: error: no match for call to `(KoRect) ()' vcanvas.cc:314: error: no match for call to `(KoRect) ()' vcanvas.cc:314: error: no match for call to `(KoRect) ()' vcanvas.cc:314: error: no match for call to `(KoRect) ()' make[3]: *** [vcanvas.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/koffice-1.3.1/work/koffice-1.3.1/karbon/widgets' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/koffice-1.3.1/work/koffice-1.3.1/karbon' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/koffice-1.3.1/work/koffice-1.3.1' make: *** [all] Error 2 !!! ERROR: app-office/koffice-1.3.1 failed. !!! Function kde_src_compile, Line 128, Exitcode 2 !!! died running emake, kde_src_compile:make Expected Results: koffice compiled and merged into the system. Portage 2.0.50-r6 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040420-r0, 2.6.5) ================================================================= System uname: 2.6.5 i686 Pentium III (Katmai) Gentoo Base System version 1.4.10 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -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 /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/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache fixpackages sandbox" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X aalib alsa apache2 apm arts avi berkdb bonobo cdr crd crypt cups dga doc dvd encode esd foomaticdb gd gdbm gif gnome gtk gtk2 gtkhtml imagemagick imap imlib java jpeg kde libg++ libwww mad maildir mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex truetype usb x86 xml2 xmms xv zlib"
Sure enough, this morning koffice had compiled completely with GCC 3.3.3. Guess this is another one for the gcc-porting team.
Same Here
*** Bug 50161 has been marked as a duplicate of this bug. ***
After a google search, I found this on rocklinux.net, hope it helps: George -----snip here--- Rene Rebe: updated koffice and fixed it for at least gcc-3.4.0 --- package/kde/koffice-i18n/koffice-i18n.desc (revision 105) +++ package/kde/koffice-i18n/koffice-i18n.desc (revision 106) @@ -42,8 +42,8 @@ [L] GPL [S] Beta -[V] 1.3 +[V] 1.3.1 [P] X -----5---9 628.000 -[D] 2216536262 koffice-i18n-1.3.tar.bz2 ftp://ftp.kde.org/pub/kde/stable/koffice-1.3/src/ +[D] 3703098043 koffice-i18n-1.3.1.tar.bz2 ftp://ftp.kde.org/pub/kde/stable/koffice-1.3.1/src/ --- package/kde/koffice/gcc34.patch (revision 0) +++ package/kde/koffice/gcc34.patch (revision 106) @@ -0,0 +1,17 @@ +--- koffice-1.3.1/karbon/widgets/vcanvas.cc.orig 2004-04-12 11:18:46.000000000 +0200 ++++ koffice-1.3.1/karbon/widgets/vcanvas.cc 2004-05-10 10:24:47.550169576 +0200 +@@ -306,12 +306,12 @@ + + /// repaints just a rect area (no scrolling) + void +-VCanvas::repaintAll( const KoRect & ) ++VCanvas::repaintAll( const KoRect & r) + { + //if( m_view->layersDocker() ) + // m_view->layersDocker()->updatePreviews(); + VPainter *p = m_view->painterFactory()->painter(); +- KoRect rect( rect().x(), rect().y(), rect().width(), rect().height() ); ++ KoRect rect( r.x(), r.y(), r.width(), r.height() ); + p->blit( rect ); + + // draw handle: --- package/kde/koffice/koffice.desc (revision 105) +++ package/kde/koffice/koffice.desc (revision 106) @@ -42,8 +42,8 @@ [L] GPL [S] Stable -[V] 1.3 +[V] 1.3.1 [P] X -----5---9 627.000 -[D] 2826883571 koffice-1.3.tar.bz2 ftp://ftp.kde.org/pub/kde/stable/koffice-1.3/src/ +[D] 968921772 koffice-1.3.1.tar.bz2 ftp://ftp.kde.org/pub/kde/stable/koffice-1.3.1/src/
This seems to provide better info, http://lists.kde.org/?l=koffice-devel&w=2&r=1&s=gcc+3.4&q=b George
Created attachment 31923 [details] koffice-1.3.1.ebuild w/gcc34 patch I also found a link, with a different patch. Works for me. http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/koffice-gcc34.patch?rev=1.1 Download that patch, put in {PORTAGE_OVERLAY}/app-office/koffice/files. Download my ebuild attachment. ebuild koffice-1.3.1.ebuild digest and emerge koffice. Just make sure you get the patch above, I found it at https://mail.kde.org/pipermail/kimageshop/2004-May/000743.html. Good luck.
I have finally gotten around to trying out the patch and the ebuild and it works fine for me now. So I'll change the bug to fixed.
the fix isnt in portage, so it's not fixed /yet/
Patch added, package bumped in portage to koffice-1.3.1-r1. Cheers
*** Bug 54054 has been marked as a duplicate of this bug. ***