Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 41965

Summary: koffice 1.3 fails to compile kchart/KDChartPropertySet.cpp
Product: Gentoo Linux Reporter: Adam Jones <adam>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Adam Jones 2004-02-17 15:36:42 UTC
When I try to emerge koffice, the compile fails with the following:

/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -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 -O3 -mcpu=athlon-xp -march=athlon-xp -funroll-loops -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 KDChartPropertySet.lo `test -f 'KDChartPropertySet.cpp' || echo './'`KDChartPropertySet.cpp
KDChartPropertySet.cpp: In static member function `static bool 
   KDChartPropertySet::loadXML(const QDomElement&, KDChartPropertySet&)':
KDChartPropertySet.cpp:259: error: `readSizeNode' undeclared in namespace `
   KDXML'
make[3]: *** [KDChartPropertySet.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/koffice-1.3/work/koffice-1.3/kchart/kdchart'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/koffice-1.3/work/koffice-1.3/kchart'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/koffice-1.3/work/koffice-1.3'
make: *** [all] Error 2

!!! ERROR: app-office/koffice-1.3 failed.
!!! Function kde_src_compile, Line 127, Exitcode 2
!!! died running emake, kde_src_compile:make


emerge info gives:

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24)
=================================================================
System uname: 2.4.24 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.10
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -funroll-loops -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="-O3 -mcpu=athlon-xp -march=athlon-xp -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apm avi berkdb cdr crypt cups curl dga dvd dvdr encode flac foomaticdb gdbm gif gnome gpm gtk gtk2 imagemagick imlib java jpeg kde libg++ libwww lirc mad mbox mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang spell sse ssl svga tcpd truetype usb x86 xface xml xml2 xmms xv zlib"


Reproducible: Always
Steps to Reproduce:
1. emerge koffice
2.
3.



Expected Results:  
Correct compilation.
Comment 1 Dominik Stadler (RETIRED) gentoo-dev 2004-02-21 04:44:14 UTC
Are there any old header-files somewhere on you disk? 

Because "KDXML::readSizeNode" is normally defined in koffice/kchart/kdchart/KDXMLTools.h.
Comment 2 Adam Jones 2004-02-21 12:32:03 UTC
The KDXML namespace seems to be defined in /usr/kde/3.2/include/KDXMLTools.h.  There doesn't seem to be a readSizeNode() method defined in there.

I have kde-3.2.0 installed from portage as usual.
Comment 3 Adam Jones 2004-02-23 14:31:03 UTC
After digging in the KDE CVS tree, it looks like the clashing KDXMLTools.h has come from KDGantt, in the KDE PIM (kde-base/kdepim) package.

KDGantt contains revision 1.2 of the file, and KOffice/KDChart contains revision 1.8.
Comment 4 Adam Jones 2004-03-23 11:58:29 UTC
Compile succeeded - suspect failure was due to an invalid LIBRARY_PATH environment variable generated by an old .bash_profile.