<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle18
        {font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1><pre><font size=2 face="Courier New"><span
style='font-size:10.0pt'>Maceij &#8211;</span></font></pre><pre><font size=2
face="Courier New"><span style='font-size:10.0pt'>You got the following:</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>gcc -pthread -shared&nbsp; ./dco2.o&nbsp; -L/opt/oracle/client.9/product/lib32/</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>-lclntsh -Wl,-rpath,/opt/oracle/client.9/product/lib&nbsp; -o /dco2.so</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>BOTH oracle lib directories should be lib32.&nbsp; In the above, you have one pointing to lib32 and the other one to lib.&nbsp; Change the MAKE file to reflect this.</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Also, make sure that you actually have the 32-bit libs in the lib32.&nbsp; The point is this:&nbsp; the paths should be to the location of the 32-bit libs wherever they are, and the paths above should be set to these 32-bit paths.&nbsp; Also, LD_LIBRARY_PATH should point to the 32-bit lib path.</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Link, and then point your LD_LIBRARY_PATH to the oracle 64-bit lib path.</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>This has worked with me without fail with DCOracle2 and other programs too that use oracle libs.&nbsp; I use Solaris.</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Hi</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Anybody uses DCOracle2 under 64 bit machine?</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Any problems with that?</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>We have some problems under RHEL4 and 64</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>bit Operton CPU. Under heavy load our Zope</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>is just restarting. /var/log/messages says:</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>(...) kernel: python[10526]: segfault at 00000000a0084c10 rip</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>0000002a959041a0 rsp 0000002a9ff828d8 error 4</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>We're trying to realize what may cause this. I don't</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>expect that it is something with Zope, so</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>maybe DCOracle2? We are using this with Oracle9.</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Anybody knows whether DCOracle2 should or shouldn't</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>work with x86_64 architecture? Any hints how it should be</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>configured/installed under such architecture?</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>I've found some messages on mailing list about</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>changing paths to lib32/ in some DCOracle2 files:</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><a
href="http://mail.python.org/pipermail/python-list/2004-August/276891.html">http://mail.python.org/pipermail/python-list/2004-August/276891.html</a></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>I tried this but I get:</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>gcc -pthread -shared&nbsp; ./dco2.o&nbsp; -L/opt/oracle/client.9/product/lib32/</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>-lclntsh -Wl,-rpath,/opt/oracle/client.9/product/lib&nbsp; -o /dco2.so</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>/usr/bin/ld: skipping incompatible</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>/opt/oracle/client.9/product/lib32//libclntsh.so when searching for -lclntsh</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>/usr/bin/ld: cannot find -lclntsh</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>collect2: ld returned 1 exit status</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>make[1]: *** [dco2.so] Error 1</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>make[1]: Leaving directory</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>`/opt/Zope/instancje/kfk_kw_testa/Products/DCOracle2/src'</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>-- </span></font></pre><pre><font
 size=2 face="Courier New"><span style='font-size:10.0pt'>Maciej Wisniowski</span></font></pre>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<!--endarticle--></div>

</body>

</html>