[cx-oracle-users] cx_Oracle build on AIX 5.3 with xlc_R
Brought to you by:
atuining
From: Anurag C. <anu...@gm...> - 2010-11-17 00:13:33
|
Dear cx-Oracle users, I am having problems compiling cx-Oracle version 5.0.3 on a AIX Machine. I would appreciate if someone could please help me. I downloaded the source from http://cx-oracle.sourceforge.net/ When building using python setup.py build, i get the following error --------------------------------------------------------------------------------------------------------------------------------------- wm (wmosds) [zibal] - /u01/home/apli/wm/GDD/cx_Oracle-5.0.3 :>python setup.py build running build running build_ext building 'cx_Oracle' extension *xlc_r* -ma -I/opt/freeware/include -DAIX_GENUINE_CPLUSCPLUS -Wl,-brtl -DNDEBUG -O -I/u01/home/app/oracle/product/10.2/rdbms/demo -I/u01/home/app/oracle/product/10.2/rdbms/public -I/opt/freeware/include/python2.6 -c cx_Oracle.c -o build/temp.aix-5.3-2.6-10g/cx_Oracle.o -DBUILD_VERSION=5.0.3 *"cx_Oracle.c", line 1.1: 1506-046 (S) Syntax error.* *"cx_Oracle.c", line 2.4: 1506-166 (S) Definition of function cx_Oracle requires parentheses.* "/usr/include/stdio.h", line 161.3: 1506-273 (E) Missing type in declaration of FILE. "/usr/include/stdio.h", line 167.8: 1506-166 (S) Definition of function FILE requires parentheses. "/usr/include/stdio.h", line 167.17: 1506-276 (S) Syntax error: possible missing '{'? "/usr/include/sys/inttypes.h", line 59.9: 1506-045 (S) Undeclared identifier intmax_t. . . . --------------------------------------------------------------------------------------------------------------------------------------- I have tried using gcc and cc and g++ as the compiler instead but all of them give error. Here is the error --------------------------------------------------------------------------------------------------------------------------------------- wm (wmosds) [zibal] - /u01/home/apli/wm/GDD/cx_Oracle-5.0.3 :>*export CC=g++ * wm (wmosds) [zibal] - /u01/home/apli/wm/GDD/cx_Oracle-5.0.3 :>python setup.py build running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.aix-5.3-2.6-10g *g++* -DNDEBUG -O -I/u01/home/app/oracle/product/10.2/rdbms/demo -I/u01/home/app/oracle/product/10.2/rdbms/public -I/opt/freeware/include/python2.6 -c cx_Oracle.c -o build/temp.aix-5.3-2.6-10g/cx_Oracle.o -DBUILD_VERSION=5.0.3 I*n file included from Environment.c:59,* * from cx_Oracle.c:166:* *Error.c:34: warning: deprecated conversion from string constant to 'char*'* Error.c:34: warning: deprecated conversion from string constant to 'char*' Error.c:34: warning: deprecated conversion from string constant to 'char*' Error.c:34: warning: deprecated conversion from string constant to 'char*' In file included from cx_Oracle.c:167: SessionPool.c:73: warning: deprecated conversion from string constant to 'char*' . . . --------------------------------------------------------------------------------------------------------------------------------------- Here are the machine details. root [zibal]% uname -a AIX zibal 3 5 000A71F2D700 root [zibal]% instfix -i |grep ML All filesets for 5.3.0.0_AIX_ML were found. All filesets for 5300-01_AIX_ML were found. All filesets for 5300-02_AIX_ML were found. All filesets for 5300-03_AIX_ML were found. All filesets for 5300-04_AIX_ML were found. All filesets for 5300-05_AIX_ML were found. root [zibal]% oslevel -s 5300-05-00 Appreciate your help in guiding me through to a solution. Regards, Anurag |