|
From: Andrew P. <at...@pi...> - 2014-08-31 19:06:53
|
Using Gustaf's latest version of nsoracle plus some local Makefile
changes to add back 10g compatibility, I'm getting a compile error,
but it seems to have nothing to do with nsoracle per se!
The error (below) is coming from zlib.h, but oddly, I already
successfully built both the Naviserver core and the nszlib module.
Does this suggest some sort of double include or other build setup
problem?
If I manually undefine HAVE_ZLIB_H in ns.h, then zlib.h does NOT get
included, and building nsoracle.so works! But what's the right way
for me to fix the problem?
$ hg summ
parent: 59:7a129b2649ec tip
- get rid of signed-problems (following prototypes from the oracle oci interface)
gcc -I/usr/local/oracle-client/product/10.2.0/sdk/include -I/usr/local/oracle-client/product/10.2.0/rdbms/demo -I/usr/local/oracle-client/product/10.2.0/rdbms/public -I/usr/local/oracle-client/product/10.2.0/network/public -I/usr/local/oracle-client/product/10.2.0/plsql/public -g -O2 -fomit-frame-pointer -Wall -fPIC -g -O2 -fno-unit-at-a-time -pipe -D_FORTIFY_SOURCE=2 -I/usr/local/nsd-4.99.6-dtk-1/include -I"/usr/local/include" -DHAVE_CONFIG_H -c -o nsoracle.o nsoracle.c
In file included from /usr/local/nsd-4.99.6-dtk-1/include/ns.h:44:0,
from nsoracle.h:26,
from nsoracle.c:16:
/usr/include/zlib.h:1448:4: error: unknown type name 'off64_t'
/usr/include/zlib.h:1448:39: error: unknown type name 'off64_t'
/usr/include/zlib.h:1449:4: error: unknown type name 'off64_t'
/usr/include/zlib.h:1450:44: error: unknown type name 'off64_t'
/usr/include/zlib.h:1451:42: error: unknown type name 'off64_t'
make: *** [nsoracle.o] Error 1
$ grep DESCRIP /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
--
Andrew Piskorski <at...@pi...>
|