Thanks Rudi,
That was close, and I have it working now. In win32-sockets.lisp I
changed
(defvar *wsa-startup-call*
(wsa-startup (make-wsa-version 2 2)))
to
(defun wsa-init ()
(wsa-startup (make-wsa-version 2 2)))
(push 'swa-init sb-ext:*init-hooks*)
(defvar *wsa-startup-call*
(wsa-init))
stephen
On Mar 4, 2008, at 6:08 PM, Rudi Schlatte wrote:
>
> On 05.03.2008, at 04:19, Stephen Westfold wrote:
>
>> A little over a year ago I posted about problems with using sbcl with
>> SLIME on windows. I did get some help, but was still not able to get
>> our system working then, so I gave up and have just recently turned
>> to
>> it.
>>
>> The problem seems to be with sb-bsd-sockets and save-lisp-and-die. I
>> give a transcript below that loads sb-bsd-sockets and everything is
>> working fine, but after save-lisp-and-die and running the saved
>> executable, get-protocol-by-name now fails. I checked that this works
>> on Mac OS X. It also works if sb-bsd-sockets is loaded after
>> restarting a saved executable, but we really want to deliver
>> executables that don't have to load anything.
>>
>> Is there something that needs to be reinitialized after starting a
>> saved executable? Any suggestions?
>
> Just a guess - try funcalling sockint::*wsa-startup-call* when
> starting your saved core. I don't see this being called anywhere in
> sb-bsd-sockets itself, but calling WSAStartup is necessary for using
> sockets on win32 iianm.
>
> Cheers,
>
> Rudi
>
|