<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">[hopefully this won’t cause my ISP more headaches like it did last night]<div class=""><br class=""></div><div class="">I did the test of changing info.plist and adding the libraries and image/changes files to the SqueakDebug, Squeak and Squeak.assert apps and they all work just fine with my FFI.</div><div class=""><br class=""></div><div class="">So my own compiled Squeak dylib doesn’t have the problem, while the Squeak dylib in the MacOS director in the all-in-one package does.</div><div class=""><br class=""></div><div class="">.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">The big holdup now is to get mpfr_get_str() working.</div><div class=""><em style="font-family: -webkit-standard;" class=""><br class=""></em></div><div class=""><em style="font-family: -webkit-standard;" class="">char *</em><span style="font-family: -webkit-standard; font-size: medium;" class=""> </span><strong style="font-family: -webkit-standard;" class="">mpfr_get_str</strong><span style="font-family: -webkit-standard; font-size: medium;" class=""> </span><em style="font-family: -webkit-standard;" class="">(char *<var class="">str</var>, mpfr_exp_t *<var class="">expptr</var>, int <var class="">base</var>, size_t <var class="">n</var>, mpfr_t <var class="">op</var>, mpfr_rnd_t <var class="">rnd</var>)</em></div><div class=""><br class=""></div><div class="">In the  simplest call, giving a NULL buffer and passing 0 via expptr returns the answer in a string buffer allocated by mpfr itself and returns the exponent via expptr.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thus far, I can’t quite get that to work. Crashes squeak every time.</div><div class=""><br class=""></div><div class="">Some people didn’t even realize that you can pass a "hand-made” external pointer into a variable using the FFI library, so the documentation isn’t exactly clear here. I couldn’t find an example of doing this in the test library so I’m trying to figure it out on my own and so far, Its not quite working.</div><div class=""><br class=""></div><div class="">anyway, thanks for everyone’s suggestions.</div><div class=""><br class=""></div><div class="">L</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 22, 2020, at 10:38 AM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" class="">eliot.miranda@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">Hi Lawson,<br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 20, 2020 at 1:56 PM LawsonEnglish <<a href="mailto:LEnglish5@cox.net" class="">LEnglish5@cox.net</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">So, with Craig Latta’s help, I managed to build my own vm. I added back in the 5.3-19435 image and changes files, and sources file, and changed the plist appropriately and it works just fine.<br class="">
<br class="">
Yay!<br class="">
<br class="">
However, I never did get the distributed version to work. I can sorta make it work with enough swapping of files, but it eventually crashes on startup even though FFI to my own dylib is working.<br class="">
<br class="">
The unmodified distributed 5.3 all-in-work apparently ALWAYS eventually crashes onstartup after trying to load a dylib and then staving, if I do it enough times, but thus far the ones I built do not do this.<br class=""></blockquote><div class=""><br class=""></div><div class="">If you run with an assert 5.3 VM build do you see anything indicative?  And are you saying that the 5.3 distribution also crashes on a recent VM?</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I can continue with my FFI experiments now (thanks everyone for their help), but unless something is very wrong with my Mac’s setup, the latst vesion of catalina isn’t stable for FFI via dylib.<br class="">
<br class="">
<br class="">
L<br class="">
</blockquote></div><div class=""><br class=""></div><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><span style="font-size:small;border-collapse:separate" class=""><div class="">_,,,^..^,,,_<br class=""></div><div class="">best, Eliot</div></span></div></div></div></div>
<br class=""></div></blockquote></div><br class=""></div></body></html>