[Mono-dev] Problems building Mono 2.10.8 on 64-bit SmartOS (Solaris)

Scott Lowe scott at ayanami.ltd.uk
Wed Aug 15 08:39:59 UTC 2012


Hello chaps,

A short update on this issue:

Whist the a permanent fix has not been identified, Autif Khan has given me a great deal of off-list help and he has suggested a workaround that results in the completion of my Mono build.

This is the workaround:

Edit the mono/util/mono-math.h - delete lines 7, 8, 9 and 18

So that it will look like:


2 #ifndef __MONO_SIGNBIT_H__
3 #define __MONO_SIGNBIT_H__
4
5 #include <math.h>
6
10 #define mono_signbit(x) (sizeof (x) == sizeof (float) ?
mono_signbit_float (x) : mono_signbit_double (x))
11
12 int
13 mono_signbit_double (double x);
14
15 int
16 mono_signbit_float (float x);
17
20 #endif



I will see if I can get support for this signbit issue from the Joyent SmartOS or IllumOS community, since they obviously have a lot of experience in getting source code to compile on these systems. Hopefully this will lead to a suggested in Mono source.

I'm not a C programmer, so Autif's patient help was invaluable. Thanks Autif!

Scott
>  symbol                             in file
> signbit                             ./.libs/libmono-static.a(libmono_static_la-mini-amd64.o)
> ld: fatal: symbol referencing errors. No output written to mono
> collect2: error: ld returned 1 exit status
> make[4]: *** [mono] Error 1
> make[4]: Leaving directory `/home/admin/mono-2.10.8/mono/mini'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/home/admin/mono-2.10.8/mono/mini'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/admin/mono-2.10.8/mono'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/admin/mono-2.10.8'
> make: *** [all] Error 2
> 
> 
> Does anybody recognise this failure?
> 
> I've also tried building Mono 2.11.3 (alpha), but the result is much much worse, and the build barely gets started before failing.
> 
> I've Googled extensively and there are no more clues left on the internet! I'd really appreciate some help from anybody that has successfully built recent releases of Mono on SmartOS, IllumOS or OpenSolaris. 
> 
> 
> Kind regards,
> 
> Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120815/d9fb550e/attachment-0001.html>


More information about the Mono-devel-list mailing list