Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321139 - app-office/openoffice-3.2.0 fails to build with dev-lang/mono-2.6.4
Summary: app-office/openoffice-3.2.0 fails to build with dev-lang/mono-2.6.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
: 323563 327097 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-23 06:19 UTC by Aaron Haviland
Modified: 2010-07-07 12:46 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Haviland 2010-05-23 06:19:10 UTC
openoffice fails to build with USE=mono due to a (seemingly) broken pkgconfig for mono-2.6.4.

Reproducible: Always

Steps to Reproduce:
1. emerge mono
2. emerge openoffice
Actual Results:  
openoffice fails to build on the command:


Entering /var/tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/cli_ure/source/climaker
Compiling: cli_ure/unxlngx6/misc/climaker_version.c
gmcs -debug -unsafe climaker_csharp.cs -reference:../../unxlngx6.pro/bin/cli_basetypes.dll -out:../../unxlngx6.pro/bin/climaker.exe
climaker_csharp.cs(2297,12): warning CS0414: The private field `UnoXInterfaceMethodTypeDescription.mExceptionTypesHandle' is assigned but its value is never used
Compilation succeeded - 1 warning(s)
mkbundle2 --static -L ../../unxlngx6.pro/lib --deps -o ../../unxlngx6.pro/bin/climaker ../../unxlngx6.pro/bin/climaker.exe ../../unxlngx6.pro/bin/cli_basetypes.dll
OS is: Linux
Note that statically linking the LGPL Mono runtime has more licensing restrictions than dynamically linking.
See http://www.mono-project.com/Licensing for details on licensing.
Sources: 2 Auto-dependencies: True
   embedding: /var/tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/cli_ure/unxlngx6.pro/bin/climaker.exe
   embedding: /usr/lib64/mono/2.0/mscorlib.dll
   embedding: /var/tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/cli_ure/unxlngx6.pro/bin/cli_basetypes.dll
Compiling:
as -o temp.o temp.s 
gcc -o ../../unxlngx6.pro/bin/climaker -Wall `pkg-config --cflags mono` temp.c  `pkg-config --libs-only-L mono` -Wl,-Bstatic -lmono -Wl,-Bdynamic `pkg-config --libs-only-l mono | sed -e "s/\-lmono //"` temp.o
In file included from temp.c:2:0:
/usr/lib64/pkgconfig/../../include/mono-1.0/mono/metadata/assembly.h:4:18: fatal error: glib.h: No such file or directory
compilation terminated.
[Fail]
dmake:  Error code 1, while making '../../unxlngx6.pro/bin/climaker'


I do not know why this patch was implemented (have not yet had the time to reasearch), but this seems to be the cause of openoffice's failure to build:

http://comments.gmane.org/gmane.comp.gnome.mono.patches/165939
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2010-05-24 15:19:27 UTC
Really a Mono issue...
Comment 2 Brian Beardall 2010-05-28 17:05:14 UTC
The patch that was mentioned needs to be undone. There is a bug report on Novell's bugzilla about this.

https://bugzilla.novell.com/show_bug.cgi?id=604251
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2010-06-14 11:59:52 UTC
*** Bug 323563 has been marked as a duplicate of this bug. ***
Comment 4 Pacho Ramos gentoo-dev 2010-07-03 22:10:30 UTC
Fixed in -r1
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-07-07 12:46:46 UTC
*** Bug 327097 has been marked as a duplicate of this bug. ***