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

Harry Sufehmi milis-2@harrysufehmi.com
Tue, 07 Sep 2004 18:39:46 +0100


Hi Gonzalo,

I remarked line 283 of server/ApplicationServer.cs,
(Socket.Select (wSockets, null, null, (w == 1) - etc)
make clean, make, make install - and now xsp works!

Here's its output on the console:

--------------------
bash-2.03# /bcc/mono-1.0.1/bin/mono /bcc/xsp-20040907/bin/xsp.exe --port 
40000
xsp
Adding applications '/:.'...
Registering application:
     Host:          any
     Port:          any
     Virtual path:  /
     Physical path: /bcc/xsp-20040907/share/doc/xsp/test
Listening on port: 40000
Listening on address: 0.0.0.0
Root directory: /bcc/xsp-20040907/share/doc/xsp/test
Hit Return to stop the server.
--------------------

However, it's too soon for the celebration, since it serve requests VERY 
  slowly. A page may load after 2-5 minutes of waiting.

I understand that I didn't fix the problem, only enabling xsp to run.
But I think I've hit my limit here - anymore and I may as well join Mono 
developers (which would be a VERY bad thing, considering my coding 
skills ;-)

So I really hope that someone can help me here.


Thanks,
Harry


Harry Sufehmi wrote:
> I think I found Gonzalo's code to ignore the Exception, it's in 
> server/ApplicationServer.cs line 265, is it ?
> 
> I thought I'd try to block the call to that function, so I remarked line 
> 290 (SetSocketOptions (client);), make clean, then recompile xsp.
> 
> However, xsp still throws the same error message when executed...
> 
> 
> Thanks,
> Harry
> 
> 
>>> Harry Sufehmi wrote:
>>>
>>>> Hi Gonzalo,
>>>>
>>>> Thanks for your reply below - however, I just tried both Sep 01 
>>>> snapshot and the XSP source from CVS, and both gives me the same 
>>>> error message.
>>>>
>>>> Could you please help us again with this ? We have a vendor coming 
>>>> tomorrow to install an eLearning software, and they need Mono to run 
>>>> their software.
>>>>
>>>>
>>>> Many thanks,
>>>> Harry
>>>>
>>>>
>>>> Gonzalo Paniagua Javier wrote:
>>>>
>>>>> On Wed, 2004-09-01 at 08:10, Harry Sufehmi wrote:
>>>>>
>>>>>> 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.
>>>>>>
>>>>>
>>>>>
>>>>> Yes. Solaris does not support setting the timeout on a socket. Try CVS
>>>>> version of xsp, as that exception is ignored now in case it happens.
>>>>>
>>>>> -Gonzalo