Hi Esteban,<br><br><div class="gmail_quote">On Thu, Mar 24, 2011 at 5:19 AM, Esteban Lorenzano <span dir="ltr">&lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
stupid me...<br>
<br>
thanks Igor<br>
<br>
now it has 22/23 FFI tests in green :P<br></blockquote><div><br></div><div>what&#39;s the failing test?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
cheers,<br>
Esteban<br>
<br>
El 23/03/2011, a las 11:59p.m., Igor Stasenko escribió:<br>
<div><div></div><div class="h5"><br>
&gt;<br>
&gt; On 24 March 2011 02:57, Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt; I found that ThreadedIA32FFIPlugin wasn&#39;t being loaded at all... so I started debugging until I saw some details (btw... xcode4 debugger is even worst than before):<br>
&gt;&gt; I changed this declaration:<br>
&gt;&gt; #ifdef SQUEAK_BUILTIN_PLUGIN<br>
&gt;&gt; #undef EXPORT<br>
&gt;&gt; // was #undef EXPORT(returnType) but screws NorCroft cc<br>
&gt;&gt; #define EXPORT(returnType) static returnType<br>
&gt;&gt; #endif<br>
&gt;&gt; with:<br>
&gt;&gt; #ifndef SQUEAK_BUILTIN_PLUGIN<br>
&gt;&gt; ...<br>
&gt;&gt; #endif<br>
&gt;&gt;<br>
&gt;&gt; also I changed:<br>
&gt;&gt; #ifdef SQUEAK_BUILTIN_PLUGIN<br>
&gt;&gt; extern<br>
&gt;&gt; #endif<br>
&gt;&gt; with:<br>
&gt;&gt; #ifndef SQUEAK_BUILTIN_PLUGIN<br>
&gt;&gt; extern<br>
&gt;&gt; #endif<br>
&gt;&gt; and then everything start working.<br>
&gt;<br>
&gt;&gt; I still does not know how to test the threads or callbacks for FFI, but a simple &quot;MacOSShell new system: &#39;ls&#39;.&quot; was working fine :)<br>
&gt;&gt; but here is my concern: the change I made looks like a heavy change... what I did is correct? should I change VMMaker code to generate plugins with my change?<br>
&gt;<br>
&gt;<br>
&gt; An external plugins should be built without -DSQUEAK_BUILTIN_PLUGIN.<br>
&gt; See in<br>
&gt; CMakePluginGenerator&gt;&gt;generate<br>
&gt;   ...<br>
&gt;       internal ifTrue: [<br>
&gt;               self puts: &#39;add_definitions(-DSQUEAK_BUILTIN_PLUGIN)&#39;].<br>
&gt;   ...<br>
&gt;<br>
&gt; So, check the generated &lt;root&gt;/build/SqueakFFIPrims/CMakeLists.txt<br>
&gt;<br>
&gt; if you build plugin as external, it should not include this flag.<br>
&gt;<br>
&gt; And if you build it as internal, then of course it won&#39;t work :)<br>
&gt; There are an associated code which assuming that you building dynamic library<br>
&gt; (see  platforms/Cross/plugins/SqueakFFIPrims/sqFFITestFuncs.c)<br>
&gt;<br>
&gt;<br>
&gt;&gt; cheers,<br>
&gt;&gt; Esteban<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Best regards,<br>
&gt; Igor Stasenko AKA sig.<br>
<br>
</div></div></blockquote></div><br>