Re: [cx-oracle-users] Re: python 2.3 + cx_oracle on HP-UX Itanium
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2005-05-24 18:30:08
|
I have no access to a HP-UX Itanium box so I can't try this for myself. I know that on other platforms you can specify -m64 to indicate you want a 64-bit build when there is an option. You could try that, I suppose. Does the import give you no other errors? Usually there is a system error message that is displayed. You can also try the "type <filename>" command to determine whether the types of the files are compatible (on Solaris at least this displays whether or not the files are 32-bit or 64-bit). You can also try the ldd command to see if that generates additional errors that might help you track down the problem. Hope some of these help anyway! On 5/20/05, Bernard Delm=E9e <bd...@ad...> wrote: >=20 > 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: >=20 > $ 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 >=20 > ld: Can't find library or mismatched ABI for -lclntsh > Fatal error. > error: command 'ld' failed with exit status 1 >=20 >=20 > 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: >=20 > [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. >=20 > >>>>>> import cx_Oracle >=20 > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ImportError: Failed to load > /usr/local/lib/python2.3/site-packages/cx_Oracle.sl >=20 > >>>>>> >=20 > 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? >=20 > Any suggestion welcome, >=20 > Cheers, >=20 > Bernard. >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |