[squeak-dev] Re: Anyone get the SqueakSSL plugin to work under Mac OS X Snow Leopard? Was Re: [ANN] SqueakSSL - a platform interface for SSL/TLS

Eliot Miranda eliot.miranda at gmail.com
Thu Oct 7 01:05:04 UTC 2010


On Wed, Oct 6, 2010 at 5:55 PM, Yanni Chiu <yanni at rogers.com> wrote:

> On 06/10/10 8:30 PM, Eliot Miranda wrote:
>
>> Have you checked that the plugin loads at all?  i.e. after you get the
>> failure of primitiveSSLCreate and you list plugins is the SSL plugin
>> included?  If not, then there's probably an undefined symbol and you may
>> see an informative error message on the console or maybe able to trace
>> through the plugin loading code to dlopen and get a useful error form
>> that.
>>
>
> I should have mentioned that:
>    SmalltalkImage current listLoadedModules
> does not list SqueakSSL.
>

Right.  So it failed to load.


>
> The only external plugin listed is:
>    'LocalePlugin 9 June 2005 (e)'
>
> I don't see any message on the console.
>
> I just tried stepping into the primitive in the image, and got nothing, so
> I guess you mean trace the plugin loading with a C-level debugger. It's been
> many years since I last fired up a C debugger. I wish there were a command
> line argument to enable a verbose trace or something.
>

It might seem scary but it's not hard.
gdb Squeak.app
break dlopen
run

then type "c" (for continue) until the system is up and running (dlopen is
used for lots of stuff other than the SSL plugin).  Then run your test
above.  "call printCallStack()" will tell you whether you're calling dlopen
in the context of an SSL primitive.  When you are in that context  and now
do "finish" to finish execution of dlopen.  Then do "printf "%s\n",
dlerror()" to read the error message.  It /may/ tell you the undefined
symbol.

HTH
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20101006/5a56c8f4/attachment.htm


More information about the Squeak-dev mailing list