<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><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 &nbsp;from&nbsp;</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>&nbsp;# -*- sh -*-<br><br>AC_MSG_CHECKING([for UUID support])<br>AC_TRY_COMPILE([#include &lt;uuid/uuid.h&gt;],[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>&nbsp;<div># -*- sh -*-<br><br>AC_MSG_CHECKING([for UUID support uuid/uuid.h] and uuid_generate)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_TRY_COMPILE([#include &lt;uuid/uuid.h&gt;],[uuid_generate;],[<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_MSG_RESULT(yes)<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_CHECK_LIB(uuid, uuid_generate, LIB_UUID="-luuid")],[<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_MSG_RESULT(no)<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_MSG_CHECKING([for UUID support uuid and uuidgen] )<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_TRY_COMPILE([#include &lt;uuid.h&gt;],[uuidgen;],[<br>    &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_MSG_RESULT(yes)<br>    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_CHECK_LIB(uuid, uuidgen, LIB_UUID="-luuid" )],[<br>    &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AC_MSG_RESULT(no)<br>    &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp; &nbsp; &nbsp; check for uuid/uuid.h</div><div>&nbsp; &nbsp; &nbsp; if everything works, use this</div><div>&nbsp; &nbsp; &nbsp; if not</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;check for uuid.h</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if everything works, us this</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; if not</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; 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 &nbsp;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>&nbsp; &lt;primitive: 'primitiveMakeUUID' module: 'UUIDPlugin'&gt;<br>&nbsp; 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>&nbsp; &nbsp; &nbsp; &nbsp;/.../oscogvm/cmake.products/squeak.cog.v3.noGL/libUUIDPlugin.so: undefined symbol: uuidgen<br>ioLoadModule(./libUUIDPlugin.so):<br>&nbsp; &nbsp; &nbsp; &nbsp;/home/.../libUUIDPlugin.so: undefined symbol: uuidgen<br>ioLoadModule(libUUIDPlugin.so):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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&nbsp;</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>&nbsp; &nbsp; /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></body></html>