You are compiling DCOracle2, right? If so, you've come to the wrong
list... :-) I think the Zope guys deal with this stuff so you can ask
them about these problems. I can give you a hint about the problem,
though. The last error is simply telling you that it can't find the
symbols referenced in the C source. From experience they are the Python
libraries and the OCI (Oracle) libraries. BUT, the removal of the -c
option is the real problem since clearly the Makefile is trying to
simply compile the source into an object file for __later__ linking. I'm
not sure what the @DEFS@ is for but I would guess that autoconf was
supposed to replace that with something real. Good question on that one,
though. Try removing the @DEFS@ from the original command line and see
if that solves your problem. Anything else though should go to somewhere
else. Now if you want to try cx_Oracle and you run into troubles there,
I'd be more than happy to help! :-)
Martinez, Michael wrote:
> The following compile errors on Redhat Linux ES 2.1, Python 2.3.4,
> Oracle 9.2.0.2:
>
> First error:
>
> ----------
>
> 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
>
> When I remove “-c” from src/Makefile, this error is fixed. The compile
> continue until the next error:
>
> 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
>
> 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@”.
>
> If I remove “@DEFS@” from the gcc command line options, the compile
> continues until the third error:
>
> Third error:
>
> Bunch of undefined references:
>
> /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'
>
> Anyone know how to fix these?
>
> Mike
>
> Michael Martinez
>
> Unix System Administrator
>
> ISTM/CSREES/USDA Room 4161
>
> Washington, DC 2004
>
> Phone: (202) 720-6223
>
> Email: mma...@cs... <mailto:mma...@cs...>
>
|