Bug 149906

Summary: build failures with GCC from trunk
Product: [Unmaintained] koffice Reporter: Matthias Klose <doko>
Component: generalAssignee: KOffice Bug Wranglers <koffice-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: patch for some build failures
First of 2 patches to fix krs_cell build problem
Second of 2 patches for fixing krs_cell

Description Matthias Klose 2007-09-16 11:53:06 UTC
Version:           1.6.3 (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
Compiler:          gcc trunk 20070915 
OS:                Linux

koffice-1.6.3 fails to build from source with current GCC from trunk. the obvious failures can be fixed by the attached patch, one outstanding failure is:

 g++ -DHAVE_CONFIG_H -I. -I../../../.. -I/scratch/packages/lpia/tmp/koffice-1.6.3/./kspread/plugins/scripting/kspreadcore -I/scratch/packages/lpia/tmp/koffice-1.6.3/./core -I/scratch/packages/lpia/tmp/koffice-1.6.3/./kspread -I/scratch/packages/lpia/tmp/koffice-1.6.3/./lib/kofficecore -I../../../../lib/kofficecore -I/scratch/packages/lpia/tmp/koffice-1.6.3/./lib/store -I../../../../lib/store -I/scratch/packages/lpia/tmp/koffice-1.6.3/./lib/kofficeui -I../../../../lib/kofficeui -I/scratch/packages/lpia/tmp/koffice-1.6.3/./lib/kross -I../../../../lib/kross -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -Wall -O2 -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 -fexceptions -c krosskspreadcore_la.all_cpp.cpp  -fPIC -DPIC -o .libs/krosskspreadcore_la.all_cpp.o
In file included from /usr/share/qt3/include/qdragobject.h:47,
                 from /scratch/packages/lpia/tmp/koffice-1.6.3/./kspread/kspread_sheet.h:26,
                 from /scratch/packages/lpia/tmp/koffice-1.6.3/./kspread/plugins/scripting/kspreadcore/krs_sheet.h:23,
                 from /scratch/packages/lpia/tmp/koffice-1.6.3/./kspread/plugins/scripting/kspreadcore/krs_doc.cpp:21,
                 from krosskspreadcore_la.all_cpp.cpp:3:
/usr/share/qt3/include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
/usr/share/qt3/include/qimage.h:58: warning: suggest parentheses around && within ||
In file included from krosskspreadcore_la.all_cpp.cpp:5:
/scratch/packages/lpia/tmp/koffice-1.6.3/./lib/kross/api/proxy.h: In static member function 'static KSharedPtr<Kross::Api::Object> Kross::Api::ProxyFunction<INSTANCE, METHOD, RETURNOBJ, ARG1OBJ, Kross::Api::Object, Kross::Api::Object, Kross::Api::Object>::ProxyFunctionCaller<PROXYFUNC, void>::exec(PROXYFUNC*, Kross::Api::Object*) [with PROXYFUNC = Kross::Api::ProxyFunction<Kross::KSpreadCore::Cell, bool (Kross::KSpreadCore::Cell::*)(const QString&, bool), void, Kross::Api::Variant, Kross::Api::Object, Kross::Api::Object, Kross::Api::Object>, INSTANCE = Kross::KSpreadCore::Cell, METHOD = bool (Kross::KSpreadCore::Cell::*)(const QString&, bool), RETURNOBJ = void, ARG1OBJ = Kross::Api::Variant]':
/scratch/packages/lpia/tmp/koffice-1.6.3/./lib/kross/api/proxy.h:298:   instantiated from 'KSharedPtr<Kross::Api::Object> Kross::Api::ProxyFunction<INSTANCE, METHOD, RETURNOBJ, ARG1OBJ, Kross::Api::Object, Kross::Api::Object, Kross::Api::Object>::call(KSharedPtr<Kross::Api::List>) [with INSTANCE = Kross::KSpreadCore::Cell, METHOD = bool (Kross::KSpreadCore::Cell::*)(const QString&, bool), RETURNOBJ = void, ARG1OBJ = Kross::Api::Variant]'
/scratch/packages/lpia/tmp/koffice-1.6.3/./kspread/plugins/scripting/kspreadcore/krs_cell.cpp:215:   instantiated from here
/scratch/packages/lpia/tmp/koffice-1.6.3/./lib/kross/api/proxy.h:287: error: too few arguments to function
make[7]: *** [krosskspreadcore_la.all_cpp.lo] Error 1
make[7]: Leaving directory `/scratch/packages/lpia/tmp/koffice-1.6.3/obj-i686-linux-gnulp/kspread/plugins/scripting/kspreadcore'
Comment 1 Matthias Klose 2007-09-16 11:53:54 UTC
Created attachment 21636 [details]
patch for some build failures
Comment 2 Jarosław Staniek 2007-09-17 14:47:50 UTC
commited this fix, thanks
Comment 3 Alex Dubov 2008-07-11 07:39:28 UTC
This bug is still present when building with gcc-4.3.1 and kde-3.5.9
Comment 4 Gabe Yoder 2008-08-23 03:42:54 UTC
Created attachment 26994 [details]
First of 2 patches to fix krs_cell build problem

Here's the first of two patches to fix the remaining build problems.  I can't guarantee bug-free operation, but it allowed me to build against KDE 3.5.9 with gcc 4.3.1
Comment 5 Gabe Yoder 2008-08-23 03:43:40 UTC
Created attachment 26995 [details]
Second of 2 patches for fixing krs_cell
Comment 6 Sven Langkamp 2009-07-05 03:15:45 UTC
Works now.