Emerge kspread used to die every time I tried it. Then, after emerging kchart,
which was not listed as one of its dependencies, the emerge succeeded. Is this
a problem with the ebuild?
Reproducible: Always
Steps to Reproduce:
1.Emerge kspread
2.
3.
Actual Results:
The emerge failed
Expected Results:
Emerge not fail
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r0, 2.6.11-gentoo-r2 i686)
=================================================================
System uname: 2.6.11-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.6.10
Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 28 2005, 20:05:56)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
dev-lang/python: 2.3.5
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.8.5-r3, 1.5, 1.7.9-r1, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils: 2.15.92.0.2-r6
sys-devel/libtool: 1.5.10-r5
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi bitmap-fonts cdr crypt cups curl dvd
emboss
encode esd fam font-server foomaticdb fortran gd gd-external gif gpm gtk gtk2
imagemagick imlib immqt-bc ipv6 java jpeg junit kde libg++ libwww mad mikmod
mmx
motif mozilla mp3 mpeg mysql nas ncurses nls nocd nptl offensive oggvorbis
opengl openssl oss pam pcmcia pdflib perl png pnp python qt quicktime readline
sdl session slang spell ssl svga tcltk tcpd tiff truetype truetype-fonts
type1-fonts vhosts xml xml2 xmms xscreensaver xv zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
The kspread Makefile.am does have INCLUDES=-I$(top_srcdir)/kchart/kdchart,
but I can't find any files under kspread/ that actually use any kchart
includefiles. Could you post the error you get when kchart isn't installed?
Disclaimer: I haven't tried actually emerging kspread without having kchart,
need to do this...
Dan: I found time to try it, if you are interested this is the error:
/bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-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/kotext -I../lib/kotext -I../lib/interfaces -I../lib/koscript -I../lib/koscript -I../interfaces -I../kchart/kdchart -I/usr/kde/3.4/include -I/usr/qt/3/include -I. -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 -mtune=i686 -O2 -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 kspread_sheet.lo `test -f 'kspread_sheet.cc' || echo './'`kspread_sheet.cc
In file included from kspread_sheet.cc:66:
../interfaces/koChart.h:23:26: KDChartTable.h: No such file or directory
../interfaces/koChart.h:24:25: KDChartData.h: No such file or directory
I'm not sure it will be better to just KMEXTRACTONLY these file in the kspread ebuild or add a dep on kchart.
I'll prefer to add a dep on kchart or users will complain that kspread cannot create charts.
I'm having the same problem here with the same configuration (kchart not
emerged):
In file included from kspread_sheet.cc:66:
../interfaces/koChart.h:23:26: KDChartTable.h: No such file or directory
../interfaces/koChart.h:24:25: KDChartData.h: No such file or directory
In file included from kspread_sheet.cc:66:
../interfaces/koChart.h:33: error: `KDChartData' does not name a type
../interfaces/koChart.h:34: error: `KDChartTableData' does not name a type
../interfaces/koChart.h:64: error: expected `,' or `...' before '&' token
../interfaces/koChart.h:64: error: ISO C++ forbids declaration of `Data' with
no type
kspread_sheet.cc: In member function `virtual void
ChartBinding::cellChanged(KSpreadCell*)':
kspread_sheet.cc:133: error: `Data' is not a member of `KoChart'
kspread_sheet.cc:133: error: expected `;' before "matrix"
kspread_sheet.cc:141: error: `matrix' undeclared (first use this function)
kspread_sheet.cc:141: error: (Each undeclared identifier is reported only once
for each function it appears in.)
kspread_sheet.cc:141: error: `Value' is not a member of `KoChart'
kspread_sheet.cc:143: error: `Value' is not a member of `KoChart'
kspread_sheet.cc:145: error: `Value' is not a member of `KoChart'
kspread_sheet.cc: In member function `QString
KSpreadSheet::copyAsText(KSpreadSelection*)':
kspread_sheet.cc:5341: warning: comparison between signed and unsigned integer
expressions
kspread_sheet.cc:5342: warning: comparison between signed and unsigned integer
expressions
kspread_sheet.cc:5343: warning: comparison between signed and unsigned integer
expressions
kspread_sheet.cc:5344: warning: comparison between signed and unsigned integer
expressions
kspread_sheet.cc:5355: warning: comparison between signed and unsigned integer
expressions
kspread_sheet.cc:5357: warning: comparison between signed and unsigned integer
expressions
make[3]: *** [kspread_sheet.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/kspread-1.3.5/work/kspread-1.3.5/kspread'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kspread-1.3.5/work/kspread-1.3.5/kspread'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kspread-1.3.5/work/kspread-1.3.5'
make: *** [all] Error 2