Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50210 - KOffice 1.3.1 does not compile (gcc 3.4?)
Summary: KOffice 1.3.1 does not compile (gcc 3.4?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 50161 (view as bug list)
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-05-06 05:36 UTC by John Shaw
Modified: 2004-06-16 03:56 UTC (History)
2 users (show)

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


Attachments
koffice-1.3.1.ebuild w/gcc34 patch (koffice-1.3.1.ebuild,1009 bytes, text/plain)
2004-05-23 20:11 UTC, Aaron Rusnak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Shaw 2004-05-06 05:36:39 UTC
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"
Comment 1 John Shaw 2004-05-06 05:37:35 UTC
Sure enough, this morning koffice had compiled completely with GCC 3.3.3.  Guess this is another one for the gcc-porting team.
Comment 2 Aaron Rusnak 2004-05-10 20:18:36 UTC
Same Here
Comment 3 SpanKY gentoo-dev 2004-05-16 12:23:50 UTC
*** Bug 50161 has been marked as a duplicate of this bug. ***
Comment 4 George L. Emigh 2004-05-17 15:41:53 UTC
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/
 
Comment 5 George L. Emigh 2004-05-17 15:47:09 UTC
This seems to provide better info, http://lists.kde.org/?l=koffice-devel&w=2&r=1&s=gcc+3.4&q=b


George
Comment 6 Aaron Rusnak 2004-05-23 20:11:00 UTC
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.
Comment 7 John Shaw 2004-05-24 10:16:34 UTC
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.
Comment 8 Travis Tilley (RETIRED) gentoo-dev 2004-05-26 10:00:09 UTC
the fix isnt in portage, so it's not fixed /yet/
Comment 9 Dylan Carlson (RETIRED) gentoo-dev 2004-06-08 23:40:18 UTC
Patch added, package bumped in portage to koffice-1.3.1-r1.  Cheers
Comment 10 Andrew D Kirch 2004-06-15 22:48:22 UTC
*** Bug 54054 has been marked as a duplicate of this bug. ***