[cx-oracle-users] Re: python 2.3 + cx_oracle on HP-UX Itanium
Brought to you by:
atuining
From: <bd...@ad...> - 2005-05-20 19:42:00
|
I had no (serious ;-) trouble building python 2.3.5 using gcc 3.4.3. Cx_oracle 4.1 compiles alright, but then I get the following at link stage: $ ld -b build/temp.hp-ux-B.11.23-ia64-2.3/cx_Oracle.o -L/app/oracle/product/10.1.0.2/lib -lclntsh -o build/lib.hp-ux-B.11.23-ia64-2.3/cx_Oracle.sl -s ld: Can't find library or mismatched ABI for -lclntsh Fatal error. error: command 'ld' failed with exit status 1 Under $ORACLE_HOME, i am seeing both a lib and a lib32 directory. If I substitute lib32 to lib, the above ld invocation works; but then python fails to load the resulting shared lib: [acars@prisme20] cx_Oracle-4.1 $ python Python 2.3.5 (#8, May 20 2005, 20:55:11) [GCC 3.4.3] on hp-ux11 Type "help", "copyright", "credits" or "license" for more information. >>>>>> import cx_Oracle Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: Failed to load /usr/local/lib/python2.3/site-packages/cx_Oracle.sl >>>>>> I am puzzled; could it be that gcc by default generates 32-bit code on Itanium? I wouldn't mind actually, but then why won't the module built against the 32-bit oracle libraries load? Any suggestion welcome, Cheers, Bernard. |