[Mono-list] Mono compilation problems (Solaris 8, SPARC)

Harry Sufehmi milis-2@harrysufehmi.com
Wed, 01 Sep 2004 13:10:51 +0100


Thanks to Jeremy and Mono team for releasing Mono v1.0.1, I've been able 
to compile Mono and XSP webserver successfully on a Sun server running 
Solaris 8.

However, when I tried to run the XSP webserver, I got the following 
error message:

==============================
bash-2.99# /bcc/mono-1.0.1/bin/mono /usr/local/xsp-1.0.1/bin/xsp.exe 
--port 40000
xsp
Adding applications '/:.'...
Registering application:
     Host:          any
     Port:          any
     Virtual path:  /
     Physical path: /usr/local/xsp-1.0.1/share/doc/xsp/test
Listening on port: 40000
Listening on address: 0.0.0.0
Root directory: /usr/local/xsp-1.0.1/share/doc/xsp/test

Unhandled Exception: System.Net.Sockets.SocketException: Invalid arguments
in <0x009e8> System.Net.Sockets.Socket:Select 
(System.Collections.IList,System.Collections.IList,System.Collections.IList,int)
in <0x00118> Mono.ASPNET.ApplicationServer:RunServer ()
in <0x0008c> (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void ()

Hit Return to stop the server.
==============================

I'm clueless at the moment as what to do now to resolve this problem.

If you have any idea about it, do please let me know.



Many thanks,
Harry

note:
Attached at the end of this email is my Mono installation notes.

Jeremy Durham wrote:
> Harry Sufehmi wrote:
> 
>> Hi,
>>
>> I'm asked by my manager to install Mono on our Intranet server, to run 
>> an eLearning package.
>> However, the compilation process ended up with a few error messages, 
>> and Mono won't install.
>>
>> I've looked around (newsgroups, google, mailing list archives, etc), 
>> and it seems that not many people are installing Mono in this 
>> particular platform (or they didn't encounter any problem at all). So 
>> I'm still clueless on why Mono won't install here.
>>
>>
> Hi-
> 
> Don't want to bombard you if someone has already sent but-
> What version of bison are you running? Do you have GNU M4 installed?
> Might want to check: http://bugzilla.ximian.com/show_bug.cgi?id=60798

=======================
Mono installation notes


ASSUMPTIONS:

[1] Platform : Solaris 8, SPARC
[2] The following packages already installed: gcc >= 3.4.1, make, flex, 
libiconv from http://www.sunfreeware.com)


#----- Enable system to find the compilation tools
PATH=/usr/local/bin:/usr/ccs/bin:$PATH

#----- Install pkgconfig
cd /downloads
wget 
http://freedesktop.org/Software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz
gzip -d pkgconfig-0.15.0.tar.gz
tar xvf pkgconfig-0.15.0.tar
cd pkgconfig-0.15.0
./configure
make
make install

#----- Install GNU's M4
#----- it contains GNU's bison which we'll need for Mono's compilation 
process
cd /downloads
wget 
ftp://mirrors.blueyonder.co.uk/sites/ftp.sunfreeware.com/freeware/sparc/8/m4-1.4.2-sol8-sparc-local.gz
gzip -d m4-1.4.2-sol8-sparc-local.gz
pkgadd -d m4-1.4.2-sol8-sparc-local

#----- Install random number generator
#----- Mono requires an entropy source (random number generator),
#----- or XSP webserver won't compile later
cd /downloads
wget 
http://www.cosy.sbg.ac.at/~andi/SUNrand/pkg/ANDIrand-0.7-5.8-sparc-1.pkg
pkgadd -d ANDIrand-0.7-5.8-sparc-1.pkg

#----- Install Mono 1.0 runtime
cd /downloads
wget http://www.go-mono.com/archive/1.0.1/mono-1.0.1.tar.gz
gzip -d mono-1.0.1.tar.gz
tar xvf mono-1.0.1.tar
cd mono-1.0.1
mkdir /usr/local/mono-1.0.1
./configure --prefix=/usr/local/mono-1.0.1
make
make install

#----- Install XSP webserver
cd /downloads
wget http://www.go-mono.com/archive/1.0.1/xsp-1.0.1.tar.gz
gzip -d xsp-1.0.1.tar.gz
tar xvf xsp-1.0.1.tar
mkdir /usr/local/xsp-1.0.1
cd xsp-1.0.1
# the following line will enable the compiler to find Mono library files
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/bcc/mono-1.0.1/lib/:$LD_LIBRARY_PATH
# the following line will enable the use of Mono's mcs
# (C++ / C# compiler) instead of the one from Solaris 8
PATH=/bcc/mono-1.0.1/bin/:$PATH
./configure --prefix=/usr/local/xsp-1.0.1
make
make install

#----- Test run Mono now !
/usr/local/mono-1.0.1/bin/mono /usr/local/xsp-1.0.1/bin/xsp.exe --port 40000