[Zope-DB] Re: [Zope] DCOracle2 compile problem

Michele Marcionelli michele.marcionelli at math.ethz.ch
Thu Jan 20 02:09:25 EST 2005


Thank you Matt!

But I already found by myself the "DEFS=" solution and now I get a new 
error message ;-)

My environment variables:
export ORACLE_HOME=/usr/lib/oracle/10.1.0.3/client
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=/usr/local/app/python/2.3.4/bin:$PATH

The I did following:

cd DCOracle2/
make
-> error
vi src/Makefile
-> DEFS=''
-> CC= ... added at the end ... -I/usr/include/oracle/10.1.0.3/client
make
-> error:
### BEGIN ###
( cd src; \
make || ./builderrors)
make[1]: Entering directory `/tmp/TEST/DCOracle2/src'
gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/kerberos/include -pthread -I/usr/include/oracle/10.1.0.3/client 
-fPIC -DNDEBUG -g -O3 -Wall -Wstrictprototypes 
-I/usr/local/app/python/2.3.4/include/python2.3 
-I/usr/local/app/python/2.3.4/include/python2.3    
-I/usr/lib/oracle/10.1.0.3/client/rdbms/demo 
-I/usr/lib/oracle/10.1.0.3/client/network/public 
-I/usr/lib/oracle/10.1.0.3/client/plsql/public 
-I/usr/lib/oracle/10.1.0.3/client/rdbms/public -DORACLE9i -DUSEOWNXID 
-c ././dco2.c -o ./dco2.o
In file included from /usr/include/oracle/10.1.0.3/client/oci.h:2327,
                  from dco2.c:109:
/usr/include/oracle/10.1.0.3/client/oci1.h:148: warning: function 
declaration isn't a prototype
In file included from /usr/include/oracle/10.1.0.3/client/ociap.h:206,
                  from /usr/include/oracle/10.1.0.3/client/oci.h:2351,
                  from dco2.c:109:
/usr/include/oracle/10.1.0.3/client/nzt.h:674: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2665: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2674: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2684: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2693: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2702: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2711: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2719: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2729: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2736: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/nzt.h:2744: warning: function 
declaration isn't a prototype
In file included from /usr/include/oracle/10.1.0.3/client/oci.h:2351,
                  from dco2.c:109:
/usr/include/oracle/10.1.0.3/client/ociap.h:9952: warning: function 
declaration isn't a prototype
/usr/include/oracle/10.1.0.3/client/ociap.h:9958: warning: function 
declaration isn't a prototype
In file included from 
/usr/local/app/python/2.3.4/include/python2.3/Python.h:8,
                  from dco2.c:125:
/usr/local/app/python/2.3.4/include/python2.3/pyconfig.h:850:1: 
warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdio.h:28,
                  from dco2.c:92:
/usr/include/features.h:172:1: warning: this is the location of the 
previous definition
dco2.c: In function `Cursor_bind':
dco2.c:3393: `dword' undeclared (first use in this function)
dco2.c:3393: (Each undeclared identifier is reported only once
dco2.c:3393: for each function it appears in.)
dco2.c:3393: syntax error before ')' token
dco2.c:3395: syntax error before ')' token
dco2.c:3412: syntax error before ')' token
make[1]: *** [dco2.o] Error 1
make[1]: Leaving directory `/tmp/TEST/DCOracle2/src'
### END ###

Oracle: I installed the following RPMs for Oracle:
     oracle-instantclient-devel-10.1.0.3-1
     oracle-instantclient-sqlplus-10.1.0.3-1
     oracle-instantclient-basic-10.1.0.3-1
     oracle-instantclient-jdbc-10.1.0.3-1

Regards, Michele
PS: I downloaded the CVS tarball as you said.

On 19.01.2005, at 14:57, Matthew T. Kromer wrote:

> I refute to objectify that approbation.
>
> Hows that for an DC-land malapropism?
>
> Michele, edit the Makefile by hand and change the line that reads 
> DEFS=@DEFS@ to just read DEFS=
>
> Also, you'll get a more stable build if you use the CVS checkout 
> mechanism rather than the packaged source files.  The packaged source 
> hasn't been re-packed in about 2 years, whereas the CVS source does 
> get occasional updates.
>
>
> On Jan 19, 2005, at 4:40 AM, Chris Withers wrote:
>
>> zope-db is a better place to ask.
>>
>> Matt Kromer may even be listening ;-)
>>
>> Chris
>>
>> Michele Marcionelli wrote:
>>
>>> Hello,
>>> I'm trying to compile (gcc-3.2.3) DCOracle2 (Version 1.3b,  
>>> http://www.zope.org/Members/matt/dco2) on a RedHat Linux i386 with  
>>> Oracle 10 (see PS at the end of the email) and I get the following  
>>> error message when I try to "make":
>>> make[1]: Entering directory `/scratch/zope/Products/DCOracle2/src'
>>> gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  
>>> -I/usr/kerberos/include -pthread -fPIC -DNDEBUG -g -O3 -Wall  
>>> -Wstrict-prototypes  
>>> -I/scratch/local/app/python/current/include/python2.4  
>>> -I/scratch/local/app/python/current/include/python2.4 @DEFS@    
>>> -I/usr/lib/oracle/10.1.0.3/client/rdbms/demo  
>>> -I/usr/lib/oracle/10.1.0.3/client/network/public  
>>> -I/usr/lib/oracle/10.1.0.3/client/plsql/public  
>>> -I/usr/lib/oracle/10.1.0.3/client/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
>>> Has someone experience with that?
>>> Regards, Michele Marcionelli
>>> PS: I downloaded the "Oracle Instant Client for Linux x86" from
>>> http://www.oracle.com/technology/software/tech/oci/instantclient/ 
>>> index.html
>>
>> -- 
>> Simplistix - Content Management, Zope & Python Consulting
>>            - http://www.simplistix.co.uk
>> _______________________________________________
>> Zope-DB mailing list
>> Zope-DB at zope.org
>> http://mail.zope.org/mailman/listinfo/zope-db
>
>
> !DSPAM:41ee67a5287771589412004!
>
-- 
Michele Marcionelli - webmaster at math - Phone: +41 1 632 6193
Address: HG G 14 - Raemistrasse 101 - 8092 Zürich - Switzerland



More information about the Zope-DB mailing list