Thread: [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 |
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 > > |
From: Anurag C. <anu...@gm...> - 2010-11-18 06:31:35
|
Hi Anthony, I can confirm that I was able to solve this. Following your advice I continued compiling and with gcc it finally worked. I don't care if it does not compile with xlc_r.......gcc compiles it best. Thanks for all your guidance. Regards, Anurag On Wed, Nov 17, 2010 at 7:15 AM, Anthony Tuininga < ant...@gm...> wrote: > 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 > > > > > > > ------------------------------------------------------------------------------ > 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 > |
From: Sébastien S. <sa...@us...> - 2010-11-19 13:55:23
|
Hi Anurag, just for information, I have no problem compiling cx_Oracle 5.0.4 on AIX 5.3 (or AIX 6.1) with xlc_r: cx_Oracle-5.0.4\> python setup.py build running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.aix-5.3-2.6-10g xlc_r -DNDEBUG -O -O2 -I/home/cis/build-dir/RT26AIX53-SUP/target/support/include -I/home/cis/build-dir/RT26AIX53-SUP/target/support/include/ncurses -I/home/cis/build-dir/RT26AIX53-SUP/target/support/include -I/oracle/product/10.2.0/rdbms/demo -I/oracle/product/10.2.0/rdbms/public -I/home/cis/build-dir/RT26AIX53-SUP/target/support/include/python2.6 -c cx_Oracle.c -o build/temp.aix-5.3-2.6-10g/cx_Oracle.o -DBUILD_VERSION=5.0.4 creating build/lib.aix-5.3-2.6-10g /home/cis/build-dir/RT26AIX53-SUP/target/support/lib/python2.6/config/ld_so_aix xlc_r -bI:/home/cis/build-dir/RT26AIX53-SUP/target/support/lib/python2.6/config/python.exp -L/home/cis/build-dir/RT26AIX53-SUP/target/support/lib -L/home/cis/build-dir/RT26AIX53-SUP/target/support/lib -L/oracle/product/10.2.0/lib32 -O2 -I/home/cis/build-dir/RT26AIX53-SUP/target/support/include -I/home/cis/build-dir/RT26AIX53-SUP/target/support/include/ncurses -I/home/cis/build-dir/RT26AIX53-SUP/target/support/include build/temp.aix-5.3-2.6-10g/cx_Oracle.o -L/oracle/product/10.2.0/lib32 -L/oracle/product/10.2.0 -lclntsh -o build/lib.aix-5.3-2.6-10g/cx_Oracle.so regards -- Sébastien Sablé Le 18/11/2010 07:31, Anurag Chourasia a écrit : > I can confirm that I was able to solve this. Following your advice I > continued compiling and with gcc it finally worked. I don't care if it > does not compile with xlc_r.......gcc compiles it best. > > Thanks for all your guidance. > > Regards, > Anurag |