Re: [cx-oracle-users] cx_oracle module AIX6.1 Oracle
Brought to you by:
atuining
From: Zane A. <zan...@ya...> - 2010-12-23 07:25:53
|
Hi I've now compiled with xlC with no luck either, with the same error(see below). Please advise if I'm missing something. which python /usr/local/bin/python [zabcllcdba01:root:/home/root:] file /usr/local/bin/python /usr/local/bin/python: executable (RISC System/6000) or object module not stripped /usr/local/bin/python needs: /usr/lib/libc.a(shr.o) /usr/lib/libpthreads.a(shr_xpg5.o) /usr/lib/libpthreads.a(shr_comm.o) /usr/lib/libdl.a(shr.o) /unix /usr/lib/libcrypt.a(shr.o) Details: - Python 2.7 compiled from src. - cx_oracle5.0.4 - AIX6.1 TL5 - Oracle 11.2 for AIX(64bit) - IBM Power7 Server Error: /usr/local//bin/python setup.py build running build running build_ext building 'cx_Oracle' extension cc_r -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/app/oracle/product/11.2.0/dbhome_1/rdbms/demo -I/app/oracle/product/11.2.0/dbhome_1/rdbms/public -I/usr/local/include/python2.7 -c cx_Oracle.c -o build/temp.aix-6.1-2.7-10g/cx_Oracle.o -DBUILD_VERSION=5.0.4 In file included from /app/oracle/product/11.2.0/dbhome_1/rdbms/public/oci.h:3024, from cx_Oracle.c:10: /app/oracle/product/11.2.0/dbhome_1/rdbms/public/ociap.h:10788: warning: function declaration isn't a prototype /app/oracle/product/11.2.0/dbhome_1/rdbms/public/ociap.h:10794: warning: function declaration isn't a prototype /usr/local/lib/python2.7/config/ld_so_aix cc_r -pthread -bI:/usr/local/lib/python2.7/config/python.exp build/temp.aix-6.1-2.7-10g/cx_Oracle.o -L/app/oracle/product/11.2.0/dbhome_1/lib -L/app/oracle/product/11.2.0/dbhome_1 -lclntsh -o build/lib.aix-6.1-2.7-10g/cx_Oracle.so ld: 0711-317 ERROR: Undefined symbol: .OCIErrorGet ld: 0711-317 ERROR: Undefined symbol: .OCIAttrSet ld: 0711-317 ERROR: Undefined symbol: .OCIHandleFree ... Please assist, been battling with this for almost a week now already. Thanks Zane ________________________________ From: Tamás Gulácsi <gt...@gt...> To: cx-...@li... Sent: Tue, December 14, 2010 12:53:31 PM Subject: Re: [cx-oracle-users] cx_oracle module AIX6.1 Oracle Hi Zane, > What about the suggested > file $(which python); ldd $(which python) > commands? > ??? result ??? > > This is the command setup.py wants to use to compile cx_Oracle - clearly it > uses cc_r, which is an AIX xlc variant. > > cc_r: unrecognized option '-qlanglvl=extc89' > > /opt/freeware/lib/python2.6/config/ld_so_aix cc_r -qlanglvl=extc89 > > -bI:/opt/freeware/lib/python2.6/config/python.exp > > build/temp.aix-6.1-2.6-10g/cx_Oracle.o > > -L/app/oracle/product/11.2.0/dbhome_1/lib > > -L/app/oracle/product/11.2.0/dbhome_1 -lclntsh -o > > build/lib.aix-6.1-2.6-10g/cx_Oracle.so > > cc_r: unrecognized option '-qlanglvl=extc89' > > > > Seems your version of cc_r is not the same as your Python was built with. > So it is even clearer now: Python was build with cc_r, but you want to use gcc - this will not work for sure. Tamás Gulácsi ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ cx-oracle-users mailing list cx-...@li... https://lists.sourceforge.net/lists/listinfo/cx-oracle-users |