Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258722 - dev-lang/mono-2.2-r3 fails on prefix x86-solaris
Summary: dev-lang/mono-2.2-r3 fails on prefix x86-solaris
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Solaris
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-12 11:49 UTC by Daniel Vergien
Modified: 2009-03-28 00:54 UTC (History)
1 user (show)

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


Attachments
mono-2.2-freebsd-elf_common.patch (mono-2.2-freebsd-elf_common.patch,677 bytes, patch)
2009-02-12 11:50 UTC, Daniel Vergien
Details | Diff
Buildlog on x86-solaris fails at the 3rd issue in the bug report (build.log,445.42 KB, text/plain)
2009-02-12 11:52 UTC, Daniel Vergien
Details
Mono ebuild with disabeld dtrace and patch for freebsd-elf_common.h (mono-2.2-r3.ebuild.patch,588 bytes, patch)
2009-02-12 11:54 UTC, Daniel Vergien
Details | Diff
go-mono.eclass.patch (go-mono.eclass.patch,339 bytes, patch)
2009-02-12 12:46 UTC, Daniel Vergien
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Vergien 2009-02-12 11:49:58 UTC
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
Comment 1 Daniel Vergien 2009-02-12 11:50:53 UTC
Created attachment 181762 [details, diff]
mono-2.2-freebsd-elf_common.patch
Comment 2 Daniel Vergien 2009-02-12 11:52:13 UTC
Created attachment 181764 [details]
Buildlog on x86-solaris fails at the 3rd issue in the bug report
Comment 3 Daniel Vergien 2009-02-12 11:54:23 UTC
Created attachment 181766 [details, diff]
Mono ebuild with disabeld dtrace and patch for freebsd-elf_common.h
Comment 4 Daniel Vergien 2009-02-12 12:45:57 UTC
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?
Comment 5 Daniel Vergien 2009-02-12 12:46:42 UTC
Created attachment 181768 [details, diff]
go-mono.eclass.patch
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-19 22:43:20 UTC
(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?
Comment 7 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-20 05:18:22 UTC
(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.
Comment 8 Peter Alfredsen (RETIRED) gentoo-dev 2009-03-28 00:41:36 UTC
Taking this. Looks like I got to eat crow on the disable-static issue. Might as well fix your bug here as an apology.
Comment 9 Peter Alfredsen (RETIRED) gentoo-dev 2009-03-28 00:54:20 UTC
+  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.
+