[cx-oracle-users] Trouble compiling on Linux / Python 2.3.4
Brought to you by:
atuining
From: Martinez, M. <MMA...@CS...> - 2004-07-22 15:56:09
|
The following compile errors on Redhat Linux ES 2.1, Python 2.3.4, Oracle 9.2.0.2: =20 First error:=20 ---------- make[1]: Entering directory `/usr/local/zope/DCOracle2/src' gcc -pthread -fPIC -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/local/include/python2.3 -I/usr/local/include/python2.3 @DEFS@ -I/home/oracle/app/oracle/product/9.2.0/rdbms/demo -I/home/oracle/app/oracle/product/9.2.0/network/public -I/home/oracle/app/oracle/product/9.2.0/plsql/public -I/home/oracle/app/oracle/product/9.2.0/rdbms/public -DORACLE9i -c ././dco2.c -o ./dco2.o gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [dco2.o] Error 1 =20 When I remove "-c" from src/Makefile, this error is fixed. The compile continue until the next error: =20 Second error; /home/oracle/app/oracle/product/9.2.0/rdbms/demo/ociap.h:9796: warning: function declaration isn't a prototype make[1]: *** [dco2.o] Error 1 =20 There's a bunch of "warnings" preceding this error, but there's no compile "errors." Also gcc warns that there is no such file or directory called "@DEFS@". =20 If I remove "@DEFS@" from the gcc command line options, the compile continues until the third error: =20 Third error: Bunch of undefined references: =20 /tmp/ccmT96G1.o: In function `Cursor_bindbyname': /usr/local/zope/DCOracle2/src/././dco2.c:3435: undefined reference to `PyArg_ParseTuple' /usr/local/zope/DCOracle2/src/././dco2.c:3450: undefined reference to `PyExc_ValueError' /usr/local/zope/DCOracle2/src/././dco2.c:3450: undefined reference to `PyErr_SetString' /tmp/ccmT96G1.o: In function `Cursor_getdesc': /usr/local/zope/DCOracle2/src/././dco2.c:3488: undefined reference to `Py_BuildValue' /usr/local/zope/DCOracle2/src/././dco2.c:3494: undefined reference to `OCIParamGet' /usr/local/zope/DCOracle2/src/././dco2.c:3504: undefined reference to `OCIAttrGet' =20 =20 Anyone know how to fix these? =20 Mike =20 =20 Michael Martinez Unix System Administrator ISTM/CSREES/USDA Room 4161 Washington, DC 2004 Phone: (202) 720-6223 Email: mma...@cs... =20 |