<br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 5:55 PM, Yanni Chiu <span dir="ltr"><<a href="mailto:yanni@rogers.com">yanni@rogers.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 06/10/10 8:30 PM, Eliot Miranda wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have you checked that the plugin loads at all? i.e. after you get the<br>
failure of primitiveSSLCreate and you list plugins is the SSL plugin<br>
included? If not, then there's probably an undefined symbol and you may<br>
see an informative error message on the console or maybe able to trace<br>
through the plugin loading code to dlopen and get a useful error form that.<br>
</blockquote>
<br></div>
I should have mentioned that:<br>
SmalltalkImage current listLoadedModules<br>
does not list SqueakSSL.<br></blockquote><div><br></div><div>Right. So it failed to load.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
The only external plugin listed is:<br>
'LocalePlugin 9 June 2005 (e)'<br>
<br>
I don't see any message on the console.<br>
<br>
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.<br>
</blockquote><div><br></div><div>It might seem scary but it's not hard. </div><div>gdb Squeak.app</div><div>break dlopen</div><div>run</div><div><br></div><div>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.</div>
<div><br></div><div>HTH</div><div>Eliot</div></div><br>