<div>Hi,</div><div><br></div><div>I think I've found the issue:</div><div><br></div><div>######################################</div><div><br></div><div><span class="Apple-style-span" style="font-family: tahoma, verdana, sans-serif; font-size: 9.16667px; ">Instant client is built incorrectly.<br>
<br>From the Mac OS X man page for dyld:<br><br>unlike many other operating systems, Darwin does not locate dependent<br>dynamic libraries via their leaf file name. Instead the full path to<br>each dylib is used (e.g. /usr/lib/libSystem.B.dylib). But there are<br>
times when a full path is not appropriate; for instance, may want<br>your binaries to be installable in anywhere on the disk. To support<br>that, there are three @xxx/ variables that can be used as a path pre-<br>fix. At runtime dyld substitutes a dynamically generated path for<br>
the @xxx/ prefix.<br><br>The instant client 10.2 libraries are linked with the full path "/b/32_216/rdbms/lib/" (e.g., /b/32_216/rdbms/lib/libclntsh.dylib.10.1). If you install them anywhere other than "/b/32_216/rdbms/lib/", dlopen is going to get confused:<br>
<br>$ otool -L libclntsh.dylib<br>libclntsh.dylib:<br>/b/32_216/rdbms/lib/libclntsh.dylib.10.1 (compatibility version 0.0.0, current version 0.0.0)<br>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1)<br>
<p style="font-family: tahoma, verdana, sans-serif; font-size: 11px; color: rgb(0, 0, 0); ">Oracle should recompile instant client and say "-install_name <something sane>" to the linker. Better, oracle could ship instant client as a framework… As a workaround, setting DYLD_LIBRARY_PATH seems to work.<br>
<br>To get apache & php to work with oci8.so, I edited the paths embedded in the libclntsh.dylib binary from "/b/32_216/rdbms/lib/libclntsh.dylib.10.1" to "/usr/lib/libclntsh.dylib.10.1" and then copied libclntsh.dylib.10.1 to /usr/lib, then recompiled oci8.so and pdo_oci.so for PHP; this seems to work well enough for PHP to load the library.<br>
<br></p></span></div><div>###################################</div><div><br></div><div>However, the fix of creating the /b/32_216/rdbms/lib directory doesn't work with opendbx-1.5.0:</div><div><div><br></div><div>The test now gives a different error:</div>
<div><br></div><div>1. Run:</div><div> Conn::Conn()</div><div>Caught exception: Out of memory</div><div><br></div>Setting the DYLD_LIBRARY_PATH and PATH, makes no difference. </div><div><br></div><div>Note that Oracle's SQLPLUS does work ok with this install and I connect to Oracle using it. </div>
<div><br></div><div>I've rebuilt opendbx including make clean with the environment set and it makes no difference either. </div><div><br></div><div>So it looks like an issue with opendbx and this weird Oracle client build ?</div>
<div><br></div><div>Thanks</div><div><br><div class="gmail_quote">On Sun, Aug 1, 2010 at 7:26 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">more links of help<br><br><br><a href="http://forums.oracle.com/forums/thread.jspa?threadID=892633&tstart=-19" target="_blank">http://forums.oracle.com/forums/thread.jspa?threadID=892633&tstart=-19</a><br>
<br><a href="http://www.danilovizzarro.it/2008/07/how-to-install-sqlplus-and-the-oracle-client-v102-on-a-mac-os-x-leopard-1054/" target="_blank">http://www.danilovizzarro.it/2008/07/how-to-install-sqlplus-and-the-oracle-client-v102-on-a-mac-os-x-leopard-1054/</a><div>
<div></div><div class="h5"><br>
<br><br><br><div class="gmail_quote">On Sun, Aug 1, 2010 at 8:23 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
here is another interesting post:<br><br><a href="http://codebrane.com/blog/?p=840" target="_blank">http://codebrane.com/blog/?p=840</a><br><br>read this:<br><br><pre>ORACLE_PATH=/Users/alistair/dev/oracle/ruby/instantclient_10_2<br>
export DYLD_LIBRARY_PATH="${ORACLE_PATH}"<br>
export SQLPATH="${ORACLE_PATH}"<br>export TNS_ADMIN="${ORACLE_PATH}"<br>export NLS_LANG="AMERICAN_AMERICA.UTF8" <br>export PATH=$PATH:$DYLD_LIBRARY_PATH</pre><br>?<br><br>I check and in my machine I have this in .bashrc:<br>
<br># variables para ORACLE<br>ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server<br>PATH=$PATH:$ORACLE_HOME/bin<br>LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib<br>
export ORACLE_HOME<br>export ORACLE_SID=XE<br>export PATH<br>export LD_LIBRARY_PATH<br><br><br>does it help?<div><div></div><div><br><br><br><div class="gmail_quote">On Sun, Aug 1, 2010 at 8:20 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><br><br><div class="gmail_quote"><div>On Sun, Aug 1, 2010 at 8:17 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>></span> wrote:<br>
</div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<br><br><div class="gmail_quote"><div>On Sun, Aug 1, 2010 at 8:03 PM, Colin Doherty <span dir="ltr"><<a href="mailto:colin.doherty@gmail.com" target="_blank">colin.doherty@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Hi Again,<div><br></div><div>Just tried Pharo 1.1 click image with <span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Squeak 4.2.5beta1U VM and opendbx-1.5.0 and got a different error:</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">DBXFatalError: FATAL OpenDBX: Loading backend library failed</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div></blockquote></div><div><br>Ok...at least this one is known :)<br><br>The problem is that OpenDBX cannot load the Oracle libraries. <br>
</div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><font face="arial, sans-serif"><span style="border-collapse:collapse"></span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse">system.log:</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><div>
Aug 1 18:53:45 MacBook [0x0-0x85085].org.squeak.pharo[15272]: Loading backend library oracle, liboraclebackend.so or /usr/local/lib/opendbx/liboraclebackend.so failed</div><div>Aug 1 18:53:45 MacBook [0x0-0x85085].org.squeak.pharo[15272]: dlopen(/usr/local/lib/opendbx/liboraclebackend.so, 1): Library not loaded: /b/32_216/rdbms/lib/libclntsh.dylib.10.1</div>
<div>Aug 1 18:53:45 MacBook [0x0-0x85085].org.squeak.pharo[15272]: Referenced from: /usr/local/lib/opendbx/liboraclebackend.so</div><div>Aug 1 18:53:45 MacBook [0x0-0x85085].org.squeak.pharo[15272]: Reason: image not found</div>
<div><br></div><div>The directory /b/32_216/rdbms/lib doesn't exist, not sure if it's a 32/64 bit issue on this OS. Everything compiled as 32 bit but this platform also support 64 bit.</div><div><br></div></span></font></div>
</blockquote></div><div><br>read here<br><br><a href="http://blog.rayapps.com/2009/09/06/how-to-setup-ruby-and-oracle-instant-client-on-snow-leopard/" target="_blank">http://blog.rayapps.com/2009/09/06/how-to-setup-ruby-and-oracle-instant-client-on-snow-leopard/</a><br>
<br>search <font face="arial, sans-serif"><span style="border-collapse:collapse">/b/32_216/rdbms/lib and read what it says....<br>maybe you shoud reinstall a 32 oracle client ?<br></span></font><br></div></div></blockquote>
</div><div><br><a href="http://download.oracle.com/otn/mac/instantclient/10204/instantclient-sdk-10.2.0.4.0-macosx-x86.zip" target="_blank">http://download.oracle.com/otn/mac/instantclient/10204/instantclient-sdk-10.2.0.4.0-macosx-x86.zip</a><br>
<br><a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html" target="_blank">http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html</a><br><br>
I am not sure at all :(<br>
<br><br> </div><div><div></div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div class="gmail_quote"><div> </div><div><div>
</div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><div></div></span></font><div>
Thanks</div><div>Colin</div><div><div></div><div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">On Sun, Aug 1, 2010 at 6:38 PM, Colin Doherty <span dir="ltr"><<a href="mailto:colin.doherty@gmail.com" target="_blank">colin.doherty@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi,<div><br></div><div>Ok I've tried using the Squeak5.7b1 64-32 VM with the Pharo 1.1 image and opendbx-1.5.0 with debug-log option, the error is:</div>
<div><br></div><div>Error: call to an external function failed.</div>
<div><br></div><div>This from Pharo debug log:</div><div><br></div><div><div>THERE_BE_DRAGONS_HERE</div><div>Error: A call to an external function failed</div><div>1 August 2010 6:16:57 pm</div><div><br></div><div>VM: Mac OS - intel - 1064 - Squeak4.1 of 17 April 2010 [latest update: #9957] 19.0</div>
<div>Image: Pharo-1.1-11411 [Latest update: #11411]</div><div><br></div><div>SecurityManager state:</div><div>Restricted: false</div><div>FileAccess: true</div><div>SocketAccess: true</div><div>Working Dir /Users/Development/Smalltalk/Squeak64bit/Contents/Resources</div>
<div>Trusted Dir /foobar/tooBar/forSqueak/bogus/</div><div>Untrusted Dir /foobar/tooBar/forSqueak/bogus/</div><div><br></div><div>OpenDBXMacOSX(Object)>>error:</div><div><span style="white-space:pre-wrap">        </span>Receiver: an OpenDBXMacOSX</div>
<div><span style="white-space:pre-wrap">        </span>Arguments and temporary variables: </div><div><span style="white-space:pre-wrap">                </span>aString: <span style="white-space:pre-wrap">        </span>'A call to an external function failed'</div>
<div><span style="white-space:pre-wrap">        </span>Receiver's instance variables: </div><div>an OpenDBXMacOSX</div><div><br></div><div>OpenDBXMacOSX(Object)>>externalCallFailed</div><div><span style="white-space:pre-wrap">        </span>Receiver: an OpenDBXMacOSX</div>
<div><span style="white-space:pre-wrap">        </span>Arguments and temporary variables: </div><div><span style="white-space:pre-wrap">                </span>errCode: <span style="white-space:pre-wrap">        </span>0</div>
<div><span style="white-space:pre-wrap">        </span>Receiver's instance variables: </div><div>an OpenDBXMacOSX</div><div><br></div><div>OpenDBXMacOSX(OpenDBXUnix)>>apiInitialize:backend:host:port:</div>
<div><span style="white-space:pre-wrap">        </span>Receiver: an OpenDBXMacOSX</div><div><span style="white-space:pre-wrap">        </span>Arguments and temporary variables: </div><div><span style="white-space:pre-wrap">                </span>handle: <span style="white-space:pre-wrap">        </span>a WordArray(0)</div>
<div><span style="white-space:pre-wrap">                </span>backend: <span style="white-space:pre-wrap">        </span>'oracle'</div><div><div><span style="white-space:pre-wrap">                </span>host: <span style="white-space:pre-wrap">        </span>'<a href="http://hostname.com" target="_blank">hostname.com</a>'</div>
<div><span style="white-space:pre-wrap">                </span>port: <span style="white-space:pre-wrap">        </span>'1521'</div></div><div><span style="white-space:pre-wrap">        </span>Receiver's instance variables: </div>
<div>an OpenDBXMacOSX</div><div><br></div><div>DBXOraclePlatform(DBXPlatform)>>createConnection:</div><div><span style="white-space:pre-wrap">        </span>Receiver: a DBXOraclePlatform</div><div><span style="white-space:pre-wrap">        </span>Arguments and temporary variables: </div>
<div><span style="white-space:pre-wrap">                </span>aConnection: <span style="white-space:pre-wrap">        </span>a DBXConnection</div><div><span style="white-space:pre-wrap">                </span>err: <span style="white-space:pre-wrap">        </span>nil</div>
<div><span style="white-space:pre-wrap">                </span>handleArray: <span style="white-space:pre-wrap">        </span>a WordArray(0)</div><div><span style="white-space:pre-wrap">                </span>handle: <span style="white-space:pre-wrap">        </span>nil</div>
<div><span style="white-space:pre-wrap">        </span>Receiver's instance variables: </div><div>a DBXOraclePlatform</div><div><br></div><div>DBXConnection>>connect</div><div><span style="white-space:pre-wrap">        </span>Receiver: a DBXConnection</div>
<div><span style="white-space:pre-wrap">        </span>Arguments and temporary variables: </div><div><br></div><div><span style="white-space:pre-wrap">        </span>Receiver's instance variables: </div>
<div><span style="white-space:pre-wrap">                </span>platform: <span style="white-space:pre-wrap">        </span>a DBXOraclePlatform</div><div><span style="white-space:pre-wrap">                </span>settings: <span style="white-space:pre-wrap">        </span>a DBXConnectionSettings</div>
<div><span style="white-space:pre-wrap">                </span>handle: <span style="white-space:pre-wrap">        </span>nil</div><div><span style="white-space:pre-wrap">                </span>open: <span style="white-space:pre-wrap">        </span>a ValueHolder</div>
<div><span style="white-space:pre-wrap">                </span>connected: <span style="white-space:pre-wrap">        </span>a ValueHolder</div><div><span style="white-space:pre-wrap">                </span>result: <span style="white-space:pre-wrap">        </span>nil</div>
<div><br></div><div><br></div><div>UndefinedObject>>DoIt</div><div><span style="white-space:pre-wrap">        </span>Receiver: nil</div><div><span style="white-space:pre-wrap">        </span>Arguments and temporary variables: </div>
<div><span style="white-space:pre-wrap">                </span>conn: <span style="white-space:pre-wrap">        </span>a DBXConnection</div><div><span style="white-space:pre-wrap">                </span>connectionSettings: <span style="white-space:pre-wrap">        </span>a DBXConnectionSettings</div>
<div><span style="white-space:pre-wrap">                </span>rs: <span style="white-space:pre-wrap">        </span>nil</div><div><span style="white-space:pre-wrap">        </span>Receiver's instance variables: </div>
<div>nil</div><div><br></div><div>Compiler>>evaluate:in:to:notifying:ifFail:logged:</div><div><span style="white-space:pre-wrap">        </span>Receiver: a Compiler</div><div><span style="white-space:pre-wrap">        </span>Arguments and temporary variables: </div>
<div><span style="white-space:pre-wrap">                </span>textOrStream: <span style="white-space:pre-wrap">        </span>'|conn connectionSettings rs |</div><div><br></div><div>connectionSettings:= DBXConnectio...etc...</div>
<div><span style="white-space:pre-wrap">                </span>aContext: <span style="white-space:pre-wrap">        </span>nil</div><div><span style="white-space:pre-wrap">                </span>receiver: <span style="white-space:pre-wrap">        </span>nil</div>
<div><span style="white-space:pre-wrap">                </span>aRequestor: <span style="white-space:pre-wrap">        </span>a TextMorphForShoutEditor</div><div><span style="white-space:pre-wrap">                </span>failBlock: <span style="white-space:pre-wrap">        </span>[FakeClassPool adopt: nil.</div>
<div><span style="white-space:pre-wrap">        </span>^ #failedDoit]</div><div><span style="white-space:pre-wrap">                </span>logFlag: <span style="white-space:pre-wrap">        </span>true</div>
<div><span style="white-space:pre-wrap">                </span>methodNode: <span style="white-space:pre-wrap">        </span>DoIt</div><div><span style="white-space:pre-wrap">        </span>| conn connectionSettings rs |</div>
<div><span style="white-space:pre-wrap">        </span>connectionSettings := DBXConn...etc...</div><div><span style="white-space:pre-wrap">                </span>method: <span style="white-space:pre-wrap">        </span>(UndefinedObject>>#DoIt "a CompiledMethod(570949632)")</div>
<div><span style="white-space:pre-wrap">                </span>value: <span style="white-space:pre-wrap">        </span>nil</div><div><span style="white-space:pre-wrap">                </span>toLog: <span style="white-space:pre-wrap">        </span>nil</div>
<div><span style="white-space:pre-wrap">                </span>itsSelection: <span style="white-space:pre-wrap">        </span>nil</div><div><span style="white-space:pre-wrap">                </span>itsSelectionString: <span style="white-space:pre-wrap">        </span>nil</div>
<div><span style="white-space:pre-wrap">        </span>Receiver's instance variables: </div><div><span style="white-space:pre-wrap">                </span>sourceStream: <span style="white-space:pre-wrap">        </span>a ReadStream '|conn connectionSettings rs |</div>
<div><br></div><div>connectionSettings:=...etc...</div><div><span style="white-space:pre-wrap">                </span>requestor: <span style="white-space:pre-wrap">        </span>a TextMorphForShoutEditor</div>
<div><span style="white-space:pre-wrap">                </span>class: <span style="white-space:pre-wrap">        </span>UndefinedObject</div><div><span style="white-space:pre-wrap">                </span>category: <span style="white-space:pre-wrap">        </span>nil</div>
<div><span style="white-space:pre-wrap">                </span>context: <span style="white-space:pre-wrap">        </span>nil</div><div><span style="white-space:pre-wrap">                </span>parser: <span style="white-space:pre-wrap">        </span>a Parser</div>
<div><br></div><div><br></div><div><br></div><div>No error messages were produced in /var/log/system.log when this occurred and no additional opendbx debug log was produced that I could see.</div></div><div><br></div><div>
I've run the FFIPlugin tests, these two failed in the standard Pharo-1.1 with <span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"> Squeak 4.2.5beta1U VM</span>:</div>
<div><br></div><div>FFIPluginTests>>#testLongLongs</div><div>FFIPluginTests>>#testPoint2</div><div><br></div><div>With the <span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"> Squeak 64-32 5.7b1 VM all the FFIPluginTests produced an error/failed, it is an experimental 64bit VM though so I guess that's expected ?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Thanks</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Colin</span></div><div><div></div><div><div><br><br><div class="gmail_quote">On Sun, Aug 1, 2010 at 5:24 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><br><br><div class="gmail_quote"><div>On Sun, Aug 1, 2010 at 5:04 PM, Colin Doherty <span dir="ltr"><<a href="mailto:colin.doherty@gmail.com" target="_blank">colin.doherty@gmail.com</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Hi,<div><br></div><div><div>I've tried using the Pharo 1.1 OneClick image (not sure what the VM version is for this) and have tried Squeak Seaside 3.0 image, Squeak/VM version 4.1 I think ?. I installed it using Metacello. This is the version of OpenDBX: OpenDBX-Core-MarianoMartinezPeck.246 and SqueakDBX-Smalltalk-Dialect-MarianoMartinezPeck.3 from what I can see in ConfigurationOfSqueakDBX>>version11.</div>
<div><br></div></div></blockquote><div><br>Ok, this is perfect. Now...could you test the same image of Pharo 1.1 but using another VM than the one that it is in the one click.<br><br>The one click VM is Squeak 4.2.5beta1U<br>
Can you try with Squeak 64-32 5.7b1 ??<br>
<a href="ftp://ftp.smalltalkconsulting.com/Squeak%2064-32%205.7b1.app.zip" target="_blank">ftp://ftp.smalltalkconsulting.com/Squeak%2064-32%205.7b1.app.zip</a><br>
<br>In addition (to see if we have more logs) can you enable the debug mode in those VMs ? <br><br>to do that, you need to open the .app (show package contents) and then, in the file Info.plist you have to enable debug mode:<br>
<br> <key>SqueakDebug</key><br> <integer>1</integer><br><br>or...from the mac os tool to edit .plist<br><br>then...open first the Mac OS Console, and luckily we will have more information. <br>
<br> </div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div></div><div>I've just tried a simple connect example:</div><div>
<br></div>
<div><div>|conn connectionSettings rs |</div><div><br></div><div>connectionSettings:= DBXConnectionSettings </div><div>host:'<a href="http://hostname.com" target="_blank">hostname.com</a>'</div>
<div>port:'1521'</div><div>database:'mysid'</div><div>userName:'username'</div><div>userPassword: 'pw'.</div><div><br></div><div>conn := DBXConnection platform: DBXOraclePlatform new settings: connectionSettings.</div>
<div>conn connect.</div><div>conn open.</div><div>rs := conn execute: 'select job from emp'.</div></div><div><br></div></blockquote></div><div><br>Ok...what happens if you do all that but not the conn execute ? (i mean, jut connect and open). Try this:<br>
<br><div><div><div>|conn connectionSettings rs |</div><div><br></div><div>connectionSettings:=
DBXConnectionSettings </div><div>host:'<a href="http://hostname.com/" target="_blank">hostname.com</a>'</div>
<div>port:'1521'</div><div>database:'mysid'</div><div>userName:'username'</div><div>userPassword:
'pw'.</div><div><br></div><div>conn := DBXConnection platform:
DBXOraclePlatform new settings: connectionSettings.</div>
<div>conn connect.</div><div>conn open.</div></div><div>conn disconnect.<br><br>does it work?<br></div></div><br> </div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div></div><div>I've done no tests of FFI but it installed ok as far as I could see.</div><div><br></div></blockquote></div><div><br>No, but they came with FFI. Check in the category FFI-Tests there are tests like FFIPluginTests<br>
<br> <br></div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div></div>
<div>I'm using opendbx-1.4.5. </div></blockquote></div><div><br>Ok...can you please recompile using the debug mode enabled?<br> To do that ./configure --enable-debug-<span>log</span> and then a
.<span>log</span> file per connection is generated in the
directory where you are calling opendbx <br><br>However, if I remember correctly, this was added in opendbx-1.5.0, not in 1.4.5.<br><br>You can download it from: <a href="http://linuxnetworks.de/opendbx/download/libopendbx-1.5.0.tar.gz" target="_blank">http://linuxnetworks.de/opendbx/download/libopendbx-1.5.0.tar.gz</a><br>
<br>So...compile like that, and run your test again. Then, please send the generated log.<br><br>Let's do all these tests, and then we can contact someone to help us.<br><br>Thanks<br><font color="#888888"><br>Mariano<br>
</font></div><div><div></div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div><br></div><div>Thanks</div><div>Colin</div><div><font color="#888888"><br><br></font><div class="gmail_quote"><div>On Sun, Aug 1, 2010 at 3:17 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>></span> wrote:<br>
</div><div><div></div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">HI. wow...never saw this problem.<br><br>Which Squeak VM are you using?<br>
<br>What is exactly what you are running in the image side that brings that error ? <br>
<br>thanks<br><br>mariano<br><br><div class="gmail_quote"><div><div></div><div>On Sun, Aug 1, 2010 at 4:04 PM, Colin Doherty <span dir="ltr"><<a href="mailto:colin.doherty@gmail.com" target="_blank">colin.doherty@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>Hi,<div><br></div><div>I've tried installing squeakDBX and got it installed using the 32 bit Oracle 10.2.0.4 instant client using this config:</div>
<div><br></div><div>CFLAGS="-m32" CPPFLAGS="-m32 -I/usr/local/instantclient10_2/sdk/include" LDFLAGS="-arch i386 -L/usr/local/instantclient10_2" ./configure --disable-utils --with-backends="oracle"</div>
<div><br></div><div>However, I'm getting the following error when I try to use it in either squeak 4.1 or pharo 1.1:</div><div><br></div><div>Out of memory error</div><div><br></div><div>This is from the log:</div><div>
<br></div><div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading /Users/DevelopmentSmalltalk/Pharo/Plugins/opendbx.so</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading /Users/Development/Smalltalk/Pharo/Plugins/opendbx.dylib</div>
<div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading /Users/Development/Smalltalk/Pharo/Plugins/libopendbx</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading /Users/Development/Smalltalk/Pharo/Plugins/libopendbx.so</div>
<div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading /Users/Development/Smalltalk/Pharo/Plugins/libopendbx.dylib</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading ./opendbx.bundle/Contents/MacOS/opendbx</div>
<div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading ./opendbx</div><div>Jul 31 20:57:47: --- last message repeated 1 time ---</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading ./opendbx.so</div>
<div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading ./opendbx.dylib</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading ./libopendbx</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading ./libopendbx.so</div>
<div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading ./libopendbx.dylib</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading /Users/Development/Smalltalk/Pharo/Pharo-1.1-OneClick.app/Contents/Resources/opendbx.bundle/Contents/MacOS/opendbx</div>
<div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: tryLoading /Users/Development/Smalltalk/Pharo/Pharo-1.1-OneClick.app/Contents/Resources/opendbx</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: ioFindExternalFunctionIn(odbx_init, 2155408)</div>
<div>Jul 31 20:57:47 MacBook Squeak VM Opt[22081]: Squeak VM Opt(22081,0xa0bf2500) malloc: *** error for object 0xf1f2f3f4: pointer being freed was not allocated\n*** set a breakpoint in malloc_error_break to debug</div>
<div>
Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: Squeak VM Opt(22081,0xa0bf2500) malloc: *** error for object 0xf1f2f3f4: pointer being freed was not allocated</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: *** set a breakpoint in malloc_error_break to debug</div>
<div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: ioFindExternalFunctionIn(odbx_error, 2155408)</div><div>Jul 31 20:57:47 MacBook [0x0-0x39039].org.squeak.pharo[22081]: ioFindExternalFunctionIn(odbx_error_type, 2155408)</div>
<div>Jul 31 21:01:49 MacBook Safari[8492]: INSERT-HANG-DETECTED: Tx time:18.496361, # of Inserts: 0, # of bytes written: 0, Did shrink: YES</div><div>Jul 31 21:05:31 MacBook [0x0-0x39039].org.squeak.pharo[22081]: VM: MouseModifierStateCarbon buttonStateBits 1 modifier</div>
</div><div><br></div><div>I've also tried compiling a 64 bit version which worked and used the experimental 64 bit squeak vm, this doesn't work but generates no errors. Any ideas on how to fix the 32 bit out of memory issue ?</div>
<div><br></div><div>Thanks</div>
<br></div></div>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org" target="_blank">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org" target="_blank">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org" target="_blank">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div></div></div><br>
<br>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org" target="_blank">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org" target="_blank">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div></div></div><br>
</blockquote></div></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div><br></div>