<div dir="ltr">looks good to me.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 15, 2014 at 1:56 PM, gettimothy <span dir="ltr"><<a href="mailto:gettimothy@zoho.com" target="_blank">gettimothy@zoho.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><u></u><div><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif"><div>Hi Eliot.<br></div><div>
<br></div><div>I know just enough about this stuff to be dangerous. However....</div><div><br></div><div>Changing the platforms/unix/plugins/UUIDPlugin/acinclude.m4 from </div><div><br></div><div><br><blockquote style="border-top-color:rgb(204,204,204);border-left-color:rgb(204,204,204);border-right-color:rgb(204,204,204);border-bottom-color:rgb(204,204,204);border-top-width:1px;border-left-width:1px;border-right-width:1px;border-bottom-width:1px;border-top-style:solid;border-left-style:solid;border-right-style:solid;border-bottom-style:solid;padding-top:7px;padding-right:7px;padding-bottom:7px;padding-left:7px;background-color:rgb(245,245,245)">
<div> # -*- sh -*-<br><br>AC_MSG_CHECKING([for UUID support])<br>AC_TRY_COMPILE([#include <uuid/uuid.h>],[uuid_generate;],[<br> AC_MSG_RESULT(yes)<br> AC_CHECK_LIB(uuid, uuid_generate,<br> LIB_UUID="-luuid"<br>
)<br>],[<br> AC_MSG_RESULT(no)<br> AC_PLUGIN_DISABLE<br>])<br><br>AC_SUBST(LIB_UUID)</div></blockquote><br><br>to:<br><br><br><blockquote style="border-top-color:rgb(204,204,204);border-left-color:rgb(204,204,204);border-right-color:rgb(204,204,204);border-bottom-color:rgb(204,204,204);border-top-width:1px;border-left-width:1px;border-right-width:1px;border-bottom-width:1px;border-top-style:solid;border-left-style:solid;border-right-style:solid;border-bottom-style:solid;padding-top:7px;padding-right:7px;padding-bottom:7px;padding-left:7px;background-color:rgb(245,245,245)">
<div> <div># -*- sh -*-<br><br>AC_MSG_CHECKING([for UUID support uuid/uuid.h] and uuid_generate)<br> AC_TRY_COMPILE([#include <uuid/uuid.h>],[uuid_generate;],[<br> AC_MSG_RESULT(yes)<br> AC_CHECK_LIB(uuid, uuid_generate, LIB_UUID="-luuid")],[<br>
AC_MSG_RESULT(no)<br> AC_MSG_CHECKING([for UUID support uuid and uuidgen] )<br> AC_TRY_COMPILE([#include <uuid.h>],[uuidgen;],[<br> AC_MSG_RESULT(yes)<br> AC_CHECK_LIB(uuid, uuidgen, LIB_UUID="-luuid" )],[<br>
AC_MSG_RESULT(no)<br> AC_PLUGIN_DISABLE<br> ])<br>])<br><br>AC_SUBST(LIB_UUID)<br></div></div></blockquote><br>allowed me to compile the UUID plugin on my system.</div><div>The logic is..</div>
<div><br></div><blockquote style="border-top-color:rgb(204,204,204);border-left-color:rgb(204,204,204);border-right-color:rgb(204,204,204);border-bottom-color:rgb(204,204,204);border-top-width:1px;border-left-width:1px;border-right-width:1px;border-bottom-width:1px;border-top-style:solid;border-left-style:solid;border-right-style:solid;border-bottom-style:solid;padding-top:7px;padding-right:7px;padding-bottom:7px;padding-left:7px;background-color:rgb(245,245,245)">
<div><div> check for uuid/uuid.h</div><div> if everything works, use this</div><div> if not</div><div> check for uuid.h</div><div> if everything works, us this</div><div> if not</div>
<div> disable the plugin</div></div></blockquote> <br><div>If you think its ok, you may want to use it.</div><div><br></div><div>Although this enabled me to compile the plugin and generate the libUUIDPlugin.so, when I tested the primitive call from Squeak</div>
<div><br></div><blockquote style="border-top-color:rgb(204,204,204);border-left-color:rgb(204,204,204);border-right-color:rgb(204,204,204);border-bottom-color:rgb(204,204,204);border-top-width:1px;border-left-width:1px;border-right-width:1px;border-bottom-width:1px;border-top-style:solid;border-left-style:solid;border-right-style:solid;border-bottom-style:solid;padding-top:7px;padding-right:7px;padding-bottom:7px;padding-left:7px;background-color:rgb(245,245,245)">
<div><div>myMethodThatUsesUUID<br> <primitive: 'primitiveMakeUUID' module: 'UUIDPlugin'><br> self primitiveFailed.<br>        </div></div></blockquote> <br><div>I got a library complaining...</div><div><br>
</div><div></div><br><blockquote style="border-top-color:rgb(204,204,204);border-left-color:rgb(204,204,204);border-right-color:rgb(204,204,204);border-bottom-color:rgb(204,204,204);border-top-width:1px;border-left-width:1px;border-right-width:1px;border-bottom-width:1px;border-top-style:solid;border-left-style:solid;border-right-style:solid;border-bottom-style:solid;padding-top:7px;padding-right:7px;padding-bottom:7px;padding-left:7px;background-color:rgb(245,245,245)">
<div><div>ioLoadModule(.../oscogvm/cmake.products/squeak.cog.v3.noGL/libUUIDPlugin.so):<br> /.../oscogvm/cmake.products/squeak.cog.v3.noGL/libUUIDPlugin.so: undefined symbol: uuidgen<br>ioLoadModule(./libUUIDPlugin.so):<br>
/home/.../libUUIDPlugin.so: undefined symbol: uuidgen<br>ioLoadModule(libUUIDPlugin.so):<br> libUUIDPlugin.so: cannot open shared object file: No such file or directory<br></div></div></blockquote> <div><br>
</div><div><br></div><div>Which I hypothesize is related to my 32 bit libs trying to invoke a 64 bit native </div><div><br></div><div> </div><br><blockquote style="border-top-color:rgb(204,204,204);border-left-color:rgb(204,204,204);border-right-color:rgb(204,204,204);border-bottom-color:rgb(204,204,204);border-top-width:1px;border-left-width:1px;border-right-width:1px;border-bottom-width:1px;border-top-style:solid;border-left-style:solid;border-right-style:solid;border-bottom-style:solid;padding-top:7px;padding-right:7px;padding-bottom:7px;padding-left:7px;background-color:rgb(245,245,245)">
<div><div>file /usr/bin/uuidgen <br> /usr/bin/uuidgen: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped<br></div></div></blockquote> <br><div>I am not going to sweat this for now, as I will be changing my focus to Plugins once I get this CMake done.<br>
</div><div><br></div><div>I just thought you might find the acinclude.mc4 useful.</div><div><br></div><div><br></div><div>cheers.</div><div><br></div><div>tty</div><div><br></div><div><br></div><div><br></div><div><br></div>
<div><br></div></div></div><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div>