Re: [cx-oracle-users] cx_Oracle build on AIX 5.3 with xlc_R
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2010-11-17 01:45:37
|
Hi, >From the error and the location it is complaining about it looks like the XLC compiler does not understand // as comment characters. That's not something I'm prepared to "fix". There might be a setting you can use to make the compiler understand those characters. Or you can use gcc as you attempted to do. From your log it looks like only warnings were issued which can often be safely ignored. I know others have built successfully on AIX so hopefully they will come out of the woodwork and clue you in. :-) A quick search of the archives shows a number of people asking questions and some of the replies might be enlightening to you. Good luck! Anthony On Tue, Nov 16, 2010 at 5:13 PM, Anurag Chourasia <anu...@gm...> wrote: > 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 > In 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 > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > > |