Re: [cx-oracle-users] cx_Oracle on HP-UX 11.31 ia64 built with aCC successfully but failed to load
Brought to you by:
atuining
From: inkblotter <ink...@gm...> - 2011-09-19 21:09:57
|
file /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so ldd /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so chatr /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so On Itaium you may need to invoke python as LD_PRELOAD<path to python> and at the python prompt "import cx_Oracle" If that fails try LD_PRELOAD $ORACLE_HOME/lib/libclntsh.so<path to python> and at the python prompt 'import cx_Oracle' On 09/19/2011 01:25 AM, Wong Wah Meng-R32813 wrote: > Hello there, > > I have tried to build cx_Oracle on the platform specified in the subject of this email. > > My python is built with 64-bit option, using aCC. The cx_Oracle can be built. However, when I import that module, it just cannot load and it did not give any explicit indication what goes wrong. Does anyone know why? > > > Regards, > > Wah Meng > > $ which python > /home/r32813/Build/2.7.1/Python-2.7.1/Lib/../python > $ python setup.py build > running build > running build_ext > building 'cx_Oracle' extension > creating build > creating build/temp.hp-ux-B.11.31-ia64-2.7-11g > cc +DD64 -Olimit 1500 -g -DNDEBUG -O +z -I/opt/oracle/product/11.1.0/rdbms/demo -I/opt/oracle/product/11.1.0/rdbms/public -I/home/r32813/Build/2.7.1/Python-2.7.1/Include -I/home/r32813/Build/2.7.1/Python-2.7.1/Lib/.. -c cx_Oracle.c -o build/temp.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.0 > cc: warning 1913: `1500' does not exist or cannot be read > "Connection.c", line 1016: warning #4232-D: conversion from "ub4 *" to a more > strictly aligned type "void **" may cause misaligned access > (dvoid**)&cacheSize, 0, OCI_ATTR_STMTCACHESIZE, > ^ > > creating build/lib.hp-ux-B.11.31-ia64-2.7-11g > ld -b build/temp.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.o -L/opt/oracle/product/11.1.0/lib -L/opt/oracle/product/11.1.0 -lclntsh -o build/lib.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.so > $ cp build/lib.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.so $PYTHONPATH > $ env | grep PYTHON > PYTHONPATH=/home/r32813/Build/2.7.1/Python-2.7.1/Lib > $ python > Python 2.7.1 (r271:86832, Sep 19 2011, 14:12:09) [C] 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<module> > ImportError: Failed to load /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so > >>>> > # swlist -l product | grep Compiler > > ACXX C.06.26.EVAL HP C/aC++ Compiler > C-ANSI-C C.06.26.EVAL HP C/aC++ Compiler > COMPLIBS B.11.31 Compiler Support Libraries > > > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs& more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > > |