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'
Created attachment 21636 [details] patch for some build failures
commited this fix, thanks
This bug is still present when building with gcc-4.3.1 and kde-3.5.9
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
Created attachment 26995 [details] Second of 2 patches for fixing krs_cell
Works now.