After eselect'ing a boost that works with gcc-4.4.0, (boost-1.37.0-r1) I can now compile openoffice but for some missing <stdio.h> includes: Compiling: sw/source/core/doc/docbm.cxx Compiling: sw/source/core/undo/SwUndoTOXChange.cxx In file included from ../../../inc/node.hxx:40, from ../../../inc/ndindex.hxx:36, from ../../../inc/pam.hxx:39, from ../../../inc/bookmrk.hxx:45, from /var/tmp/portage/portage/app-office/openoffice-3.1.0_beta7/work/ooo/build/ooo310-m11/sw/source/core/unocore/unoportenum.cxx:35: ../../../inc/fmtcol.hxx:119: warning: type qualifiers ignored on function return type In file included from ../../../inc/node.hxx:40, from ../../../inc/swtable.hxx:42, from ../../../inc/tblsel.hxx:34, from ../../../inc/crsrsh.hxx:43, from ../../../inc/editsh.hxx:40, from ../../../inc/fesh.hxx:38, from /var/tmp/portage/portage/app-office/openoffice-3.1.0_beta7/work/ooo/build/ooo310-m11/sw/source/core/view/vdraw.cxx:54: ../../../inc/fmtcol.hxx:119: warning: type qualifiers ignored on function return type Compiling: sw/source/core/text/frminf.cxx Compiling: sw/source/core/swg/SwXMLTextBlocks1.cxx In file included from ../../../inc/node.hxx:40, from /var/tmp/portage/portage/app-office/openoffice-3.1.0_beta7/work/ooo/build/ooo310-m11/sw/source/core/doc/docbm.cxx:40: ../../../inc/fmtcol.hxx:119: warning: type qualifiers ignored on function return type Compiling: sw/source/core/txtnode/fntcap.cxx Compiling: sw/source/core/layout/fly.cxx /var/tmp/portage/portage/app-office/openoffice-3.1.0_beta7/work/ooo/build/ooo310-m11/sw/source/core/doc/docbm.cxx: In function 'bool _checkFieldBookmarkSanity(const SwDoc*)': /var/tmp/portage/portage/app-office/openoffice-3.1.0_beta7/work/ooo/build/ooo310-m11/sw/source/core/doc/docbm.cxx:399: error: 'printf' was not declared in this scope dmake: Error code 1, while making '../../../unxlngx6.pro/slo/docbm.obj'
Created attachment 190973 [details, diff] gcc-4.4.0 compile-fix Snatched from: http://bugs.archlinux.org/task/14492
The final release of OOo 3.1 shouldn't need this patch anymore. Just got into portage, so please test.
Still fails: /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/sw/source/core/doc/docbm.cxx: In function 'bool _checkFieldBookmarkSanity(const SwDoc*)': /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/sw/source/core/doc/docbm.cxx:399: error: 'printf' was not declared in this scope
(In reply to comment #3) > Still fails: > > /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/sw/source/core/doc/docbm.cxx: > In function 'bool _checkFieldBookmarkSanity(const SwDoc*)': > /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/sw/source/core/doc/docbm.cxx:399: > error: 'printf' was not declared in this scope > This is with 3.1.0 and not 3.1.0_beta7? Sorry for the stupid question, but your reation was so fast, that I just want to make sure ;)
(In reply to comment #4) > This is with 3.1.0 and not 3.1.0_beta7? Sorry for the stupid question, but your > reation was so fast, that I just want to make sure ;) Yep, 3.1.0. I cvs upped and installed from there, hence the quick reaction :-)
Interestingly the patch doesn't apply here anymore. Bit busy atm, so will have to take a look at that later, sry.
Created attachment 191620 [details, diff] gcc 4.4.0 build fix for 3.1.0 This patch works with 3.1.0. It's the same fix as the previous patch.
Created attachment 191665 [details] patched openoffice-3.1 ebuild
Comment on attachment 191665 [details] patched openoffice-3.1 ebuild works for me
The patch is now in portage, thanks everyone for fixing this!