In article <22ED1232-689E-4F7A-96C3-43415F50F3DF@...>,
Martin Buchmann <martin.buchmann@...> wrote:
> I started
> with the libcurl tutorial but if I use the sample code directly in the
> slime-repl buffer the statement (use-foreign-library libcurl) leads to an
> unexpected connection breake down.
> Lisp connection closed unexpectedly: connection broken by remote peer
> If I invoke the example code directly in sbcl running in a terminal it is
> working fine so far.
OS X has several libraries (particularly system ones) that can only be
loaded (and sometimes executed) from the main thread. There used to be
tricks to trick OS X into thinking another thread is the main thread,
but they don't work in the post 10.6 world. On SBCL, as you discovered,
the main thread is the REPL thread (inferior-lisp in SLIME).