Re: [cx-oracle-users] RE: gcc296 error when building cx_Oracle
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2006-03-31 17:08:37
|
Yes. I can (and already have) made changes to this to use the compiler directives __DATE__ and __TIME__ that are available in gcc and the Microsoft compilers. I have no idea if there are any compilers that don't support those directives. Any thoughts on that? As you've noticed, the shells are too inconsistent to pass this on the command line reliably. On 3/31/06, Henning von Bargen <H.v...@t-...> wrote: > > Date: Thu, 30 Mar 2006 11:22:05 -0800 > > From: "Molina, Gerardo" <Ger...@sc...> > > > > I'm getting the following error when trying to build > > cx_Oracle 4.1.2 on Red Hat linux: > > > > Linux s0051cdc 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 > > s0051cdc:SQLNET(/opt/ORACLE/TAR/python/cx_Oracle-4.1.2)->pytho > > n setup.py > > build > > running build > > running build_ext > > building 'cx_Oracle' extension > > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall > > -Wstrict-prototypes -fPIC > > -I/opt/ORACLE/app/oracle/product/9.2.0/rdbms/demo > > -I/opt/ORACLE/app/oracle/product/9.2.0/rdbms/public > > -I/opt/ORACLE/app/oracle/product/9.2.0/network/public > > -I/opt/ORACLE/app/oracle/product/9.2.0/sdk/include > > -I/opt/ORACLE/python/include/python2.4 -c cx_Oracle.c -o > > build/temp.linux-i686-2.4/cx_Oracle.o -DBUILD_TIME=3D3D"March 30, 2006 > > 14:17:56" > > gcc2.96 will be used ... > > > > gcc296: cannot specify -o with -c or -S and multiple compilations > > error: command 'gcc' failed with exit status 1 > > > > Has anyone seen this before? and have a fix? > > > > Thanks in advance, > > Gerardo > > Gerardo, I had a similar problem when I tried to build cx_Oracle > as a static extension for python on HP/UX. > > In my case it was a problem with the quotation marks in the define > directive for BUILD_TIME - these scrambled the invoked shell somehow. > > Here's my workaround: Don't use a DEFINE for BUILD_TIME at all > and instead hard-code it (I know that's ugly, but it works at least). > > - Remove any occurences for BUILD_TIME in the build scripts. > - Modify the file cx_Oracle.c (line 421): > OLD: PyString_FromString(BUILD_TIME)) < 0) > NEW: PyString_FromString("February 03, 2006 15:32:22")) < 0) > > P.S. Anthony, is itpossible for you to solve this in a more general way? > Or (perhaps even better): Let the Python Build-Gurus change the way > define directives in "makesetup.local" and "makesetup" are handled? > It really seems to be a problem with the shell invoked. > > > It seems to be a problem everytime > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |