Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269452 - [PATCH] app-office/openoffice-3.1.0_beta7 fails to compile w/gcc-4.4.0
Summary: [PATCH] app-office/openoffice-3.1.0_beta7 fails to compile w/gcc-4.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.4
  Show dependency tree
 
Reported: 2009-05-11 19:54 UTC by Peter Alfredsen (RETIRED)
Modified: 2009-05-19 11:27 UTC (History)
5 users (show)

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


Attachments
gcc-4.4.0 compile-fix (buildfix-gcc44.diff,833 bytes, patch)
2009-05-11 19:55 UTC, Peter Alfredsen (RETIRED)
Details | Diff
gcc 4.4.0 build fix for 3.1.0 (openoffice-3.1.0-buildfix-gcc44.diff,611 bytes, patch)
2009-05-18 06:59 UTC, Joseph Yasi
Details | Diff
patched openoffice-3.1 ebuild (openoffice-3.1.0.ebuild,12.49 KB, text/plain)
2009-05-18 13:42 UTC, Cyril
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alfredsen (RETIRED) gentoo-dev 2009-05-11 19:54:03 UTC
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'
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-11 19:55:18 UTC
Created attachment 190973 [details, diff]
gcc-4.4.0 compile-fix

Snatched from:
http://bugs.archlinux.org/task/14492
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-17 08:03:09 UTC
The final release of OOo 3.1 shouldn't need this patch anymore. Just got into portage, so please test.
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-17 09:33:07 UTC
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
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-17 09:47:21 UTC
(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 ;)

Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-17 10:08:01 UTC
(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 :-)

Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-17 14:34:02 UTC
Interestingly the patch doesn't apply here anymore. Bit busy atm, so will have to take a look at that later, sry.
Comment 7 Joseph Yasi 2009-05-18 06:59:11 UTC
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.
Comment 8 Cyril 2009-05-18 13:42:22 UTC
Created attachment 191665 [details]
patched openoffice-3.1 ebuild
Comment 9 Cyril 2009-05-18 13:43:35 UTC
Comment on attachment 191665 [details]
patched openoffice-3.1 ebuild

works for me
Comment 10 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-19 11:27:45 UTC
The patch is now in portage, thanks everyone for fixing this!