Bug 149906 - build failures with GCC from trunk
Summary: build failures with GCC from trunk
Status: RESOLVED WORKSFORME
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-16 11:53 UTC by Matthias Klose
Modified: 2009-07-05 03:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch for some build failures (1.40 KB, patch)
2007-09-16 11:53 UTC, Matthias Klose
Details
First of 2 patches to fix krs_cell build problem (645 bytes, patch)
2008-08-23 03:42 UTC, Gabe Yoder
Details
Second of 2 patches for fixing krs_cell (396 bytes, patch)
2008-08-23 03:43 UTC, Gabe Yoder
Details

Note You need to log in before you can comment on or make changes to this bug.
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.