[Zope-DB] Error compiling DCOracle2 -- NOT the @DEFS@ error

Thorsten Henrici thorsten at henrici-s.de
Tue Jul 13 18:19:32 EDT 2004


Hello list,

I'm desperately trying to compile the DCOracle2 but I just can't get it
to work.

System:
Linux SuSE 9.0
python-2.3-49
gcc-3.3.1-24
Oracle 10g

The output from the compile run is as follows:

-- BEGIN --

gcc -pthread -fPIC -DNDEBUG -D_FILE_OFFSET_BITS=64
-DHAVE_LARGEFILE_SUPPORT -O2 -march=i586 -mcpu=i686 -fmessage-length=0
-fPIC -Wall -I/usr/include/python2.3 -I/usr/include/python2.3
-I/usr/local/oracle/product/10gr1/rdbms/demo
-I/usr/local/oracle/product/10gr1/network/public
-I/usr/local/oracle/product/10gr1/plsql/public
-I/usr/local/oracle/product/10gr1/rdbms/public -DORACLE9i -DUSEOWNXID -c
././dco2.c -o ./dco2.o
In file included from /usr/include/python2.3/Python.h:8,
                 from dco2.c:125:
/usr/include/python2.3/pyconfig.h:844:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/stdio.h:28,
                 from dco2.c:92:
/usr/include/features.h:171:1: warning: this is the location of the
previous definition
dco2.c: In function `ServerContext_describe':
dco2.c:2384: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c: In function `Cursor_bind':
dco2.c:3337: error: `dword' undeclared (first use in this function)
dco2.c:3337: error: (Each undeclared identifier is reported only once
dco2.c:3337: error: for each function it appears in.)
dco2.c:3337: error: parse error before ')' token
dco2.c:3339: error: parse error before ')' token
dco2.c:3356: error: parse error before ')' token
dco2.c: In function `Cursor_getdesc':
dco2.c:3483: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:3495: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:3557: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c: In function `OracleDate_alloc':
dco2.c:5987: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c: In function `initdco2':
dco2.c:8061: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:8065: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:8069: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:8073: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:8077: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:8081: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:8085: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:8089: warning: dereferencing type-punned pointer will break
strict-aliasing rules
dco2.c:8093: warning: dereferencing type-punned pointer will break
strict-aliasing rules
make: *** [dco2.o] Error 1

-- END --

As far as I can see the problem might be related to python 2.3. If that
could be confirmed I will try it with a different python version.

Thanks and Regards
Thorsten



More information about the Zope-DB mailing list