Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228839 - app-office/koffice-1.6.3-r2 fails with gcc-4.3
Summary: app-office/koffice-1.6.3-r2 fails with gcc-4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-06-22 05:01 UTC by Andrei Slavoiu
Modified: 2008-11-28 03:29 UTC (History)
14 users (show)

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


Attachments
proposed patch (koffice-1.6.3-gcc43.patch,6.89 KB, patch)
2008-11-21 00:30 UTC, Yaroslav Gorbunov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2008-06-22 05:01:14 UTC
The fix for Bug #214372 needs to also be applied to the monolithic koffice ebuild.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
/bin/sh ../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./../sdk -I./tiles -I./../kritacolor -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/kopalette -I../../lib/kopalette -I../../lib/kopainter -I../../lib/kopainter -pthread -I/usr/include/OpenEXR   -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=native -ggdb -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DHAVE_KNEWSTUFF  -c -o kis_perspective_math.lo kis_perspective_math.cpp
kis_perspective_math.cpp:27:22: error: iostream.h: No such file or directory
kis_perspective_math.cpp:60: warning: friend declaration 'math::vector<ElType> math::operator*(ElType, math::vector<ElType>&)' declares a non-template function
kis_perspective_math.cpp:60: note: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here)
kis_perspective_math.cpp:61: warning: friend declaration 'math::vector<ElType> math::operator*(math::vector<ElType>&, ElType)' declares a non-template function
kis_perspective_math.cpp:62: error: ISO C++ forbids declaration of 'ostream' with no type
kis_perspective_math.cpp:62: error: 'ostream' is neither function nor member function; cannot be declared friend
kis_perspective_math.cpp:62: error: expected ';' before '&' token
kis_perspective_math.cpp: In member function 'void math::vector<ElType>::rprint() const':
kis_perspective_math.cpp:132: error: 'cout' was not declared in this scope
kis_perspective_math.cpp: At global scope:
kis_perspective_math.cpp:167: error: expected constructor, destructor, or type conversion before '&' token
kis_perspective_math.cpp:188: warning: friend declaration 'math::matrix<ElType> math::operator*(const ElType&, const math::matrix<ElType>&)' declares a non-template function
kis_perspective_math.cpp:189: warning: friend declaration 'math::matrix<ElType> math::operator*(const math::matrix<ElType>&, const ElType&)' declares a non-template function
kis_perspective_math.cpp:195: error: ISO C++ forbids declaration of 'ostream' with no type
kis_perspective_math.cpp:195: error: 'ostream' is neither function nor member function; cannot be declared friend
kis_perspective_math.cpp:195: error: expected ';' before '&' token
kis_perspective_math.cpp:196: warning: friend declaration 'void math::ludcmp(math::matrix<ElType>&, math::vector<int>&, double&)' declares a non-template function
kis_perspective_math.cpp:197: warning: friend declaration 'void math::lubksb(math::matrix<ElType>&, math::vector<int>&, math::vector<ElType>&)' declares a non-template function
kis_perspective_math.cpp:360: error: expected constructor, destructor, or type conversion before '&' token
kis_perspective_math.cpp: In function 'void math::ludcmp(math::matrix<ElType>&, math::vector<int>&, double&)':
kis_perspective_math.cpp:384: error: 'cerr' was not declared in this scope
make[4]: *** [kis_perspective_math.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita/core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3'
make: *** [all] Error 2
 *
 * ERROR: app-office/koffice-1.6.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4103:  Called kde_src_compile
 *             environment, line 2927:  Called kde_src_compile 'all'
 *             environment, line 3047:  Called kde_src_compile 'myconf' 'configure' 'make'
 *             environment, line 3043:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *  The die message:
 *   died running emake, kde_src_compile:make
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/app-office:koffice-1.6.3-r2:20080622-032315.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/koffice-1.6.3-r2/temp/environment'.
 *
Comment 1 Craig Goodrich 2008-07-05 14:56:22 UTC
It also appears that this bug is alive and well in the current ebuild:

http://bugs.kde.org/show_bug.cgi?id=149906

Please check it out when fixing koffice.
Comment 2 Alexander Dubov 2008-07-11 05:44:22 UTC
> 
> http://bugs.kde.org/show_bug.cgi?id=149906
> 

The reported build failure is trivial to fix, but this kde bug is the real problem.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2008-11-01 18:53:27 UTC
KDE team, please fix the monolithic KOffice as GCC 4.3 will go stable soon.  I don't believe we need a new revision, so no stabilisations needed.
Comment 5 Eduard Huguet 2008-11-15 15:05:00 UTC
any news on this?
Comment 6 Yaroslav Gorbunov 2008-11-21 00:30:34 UTC
Created attachment 172582 [details, diff]
proposed patch

Made from http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/koffice-gcc.patch?rev=1.5

Built successfully on x86 with gcc-4.3.2, glibc-2.7-r2.
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2008-11-23 01:44:49 UTC
still fails test for me:

Making check in tests
make[3]: Entering directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita/kritacolor/tests'
make  kunittest_kis_color_conversions_tester.la
make[4]: Entering directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita/kritacolor/tests'
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -I./../../sdk -I./../ -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O3 -march=core2 -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DHAVE_KNEWSTUFF  -c -o kis_color_conversions_tester.lo kis_color_conversions_tester.cpp
/bin/sh ../../../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O3 -march=core2 -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DHAVE_KNEWSTUFF   -Wl,--as-needed,--hash-style=gnu -o kunittest_kis_color_conversions_tester.la  -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib64 -R /usr/kde/3.5/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 -R /usr/kde/3.5/lib64  -rpath /usr/lib64 -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64    -L/usr/kde/3.5/lib64 kis_color_conversions_tester.lo -lkunittest ../libkritacolor.la ../../libkritacommon.la
make[4]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita/kritacolor/tests'
make  check-local
make[4]: Entering directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita/kritacolor/tests'
kunittestmodrunner
modrunner(14716) KUnitTest::Runner::loadModules:        Error loading  "kunittest_kis_color_conversions_tester"  :  "The shared library was not found."
make[4]: *** [check-local] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita/kritacolor/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita/kritacolor/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita/kritacolor'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.3-r2/work/koffice-1.6.3/krita'
make: *** [check-recursive] Error 1
 *
 * ERROR: app-office/koffice-1.6.3-r2 failed.
Comment 8 Yaroslav Gorbunov 2008-11-28 00:56:22 UTC
(In reply to comment #7)
> modrunner(14716) KUnitTest::Runner::loadModules:        Error loading 
> "kunittest_kis_color_conversions_tester"  :  "The shared library was not
> found."

I fount this comment http://bugs.gentoo.org/show_bug.cgi?id=166246#c7
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2008-11-28 03:29:54 UTC
fixed, thanks.