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
Really a Mono issue...
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
*** Bug 323563 has been marked as a duplicate of this bug. ***
Fixed in -r1
*** Bug 327097 has been marked as a duplicate of this bug. ***