There are at least three issues with mono on x86-solaris. 1st - it seams that dtrace support enabled by default on solaris - this fails if the prefix user does not have the privileges: /usr/sbin/dtrace -32 -s ../../data/mono.d -o mono-dtrace.h dtrace: failed to initialize dtrace: DTrace requires additional privileges This can be fixed by adding --disable-dtrace to the configure call. 2nd - In file included from ../../mono/utils/freebsd-elf32.h:33, from aot-compiler.c:68: ../../mono/utils/freebsd-elf_common.h:46: error: expected specifier-qualifier-list before 'u_int32_t' This can be fixed with a patch found here: http://lists.ximian.com/pipermail/mono-patches/2009-January/138782.html After fixing these to issues I get to the following: cat System.Xml.XPath/Tokenizer.cs >>Mono.Xml.Xsl/PatternTokenizer.cs MCS [basic] System.Xml.dll /nilfisk/gentoo/bin/bash: line 1: 16275 Segmentation Fault (core dumped) MONO_PATH="../../class/lib/basic:$MONO_PATH" /nilfisk/gentoo/var/tmp/portage/dev-lang/mono-2.2-r3/work/mono-2.2/runtime/mono-wrapper ../../class/lib/basic/mcs.exe /codepage:65001 -optimize -d:NET_1_1 -d:ONLY_1_1 -d:BOOTSTRAP_WITH_OLDLIB /noconfig -r:mscorlib.dll -r:System.dll -nowarn:0618,0612,0642 -target:library -out:System.Xml.dll System.Xml.XPath/Parser.cs Mono.Xml.Xsl/PatternParser.cs Mono.Xml.Xsl/PatternTokenizer.cs @System.Xml.dll.sources make[8]: *** [../../class/lib/basic/System.Xml.dll] Error 139
Created attachment 181762 [details, diff] mono-2.2-freebsd-elf_common.patch
Created attachment 181764 [details] Buildlog on x86-solaris fails at the 3rd issue in the bug report
Created attachment 181766 [details, diff] Mono ebuild with disabeld dtrace and patch for freebsd-elf_common.h
According to configure: WARNING: Turning off static Mono is a risk I removed --disable-static from go-mono-eclass and now it compiles fine. Is there as special reason for disable-static?
Created attachment 181768 [details, diff] go-mono.eclass.patch
(In reply to comment #4) > According to > configure: WARNING: Turning off static Mono is a risk > I removed --disable-static from go-mono-eclass and now it compiles fine. Is > there as special reason for disable-static? > loki_val: Input please?
(In reply to comment #6) > (In reply to comment #4) > > According to > > configure: WARNING: Turning off static Mono is a risk > > I removed --disable-static from go-mono-eclass and now it compiles fine. Is > > there as special reason for disable-static? > > > > loki_val: Input please? That's just upstream being extra super cautionary. If it doesn't work for you, that is not the bug, since strictly speaking it should work. That said, you may want to just patch the ebuild if you need to work-around this. Modifying go-mono.eclass will also enable static libs for all the other packages using go-mono.eclass.
Taking this. Looks like I got to eat crow on the disable-static issue. Might as well fix your bug here as an apology.
+ 28 Mar 2009; Peter Alfredsen <loki_val@gentoo.org> + +files/mono-2.2-freebsd-elf_common.patch, mono-2.2-r4.ebuild: + Fix bug 258722, mono fails to build on solaris. Fix bug 262429, dodoc not + finding target files. +