If I try to build nsoracle normally, I get a bunch of "unknown type
name 'off64_t'" errors, as shown below. These errors seem strange,
because the code there in zlib.h actually says "z_off64_t", not
"off64_t". What's going on with the "z_" prefix?
There is an easy workaround. In my installed naviserver location, I
simply edit "include/nsconfig.h", and right after this line:
#define HAVE_ZLIB_H 1
I added this, to turn that define back off:
#undef HAVE_ZLIB_H
With that, nsoracle builds fine. But I don't understand what's really
going on here, nor how to fix it the right way. Any suggestions?
Btw, I get this behavior with the current NaviServer head and the
Oracle 12c client libraries, and I also saw it back in 2014-09 with
Oracle 10g, so it's not new.
----------------------------------------
gcc -I/usr/local/pkg/oracle-client/product/12c/sdk/include
-I/usr/local/pkg/oracle-client/product/12c/rdbms/demo
-I/usr/local/pkg/oracle-client/product/12c/rdbms/public
-I/usr/local/pkg/oracle-client/produ\
ct/12c/network/public -I/usr/local/pkg/oracle-client/product/12c/plsql/public
-g -Wall -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
-fno-unit-at-a-time -pipe -Wdate-time -D_FORTIF\
Y_SOURCE=2 -I/usr/local/pkg/nsd-head-20170811-0/include -I"/usr/include/tcl8.6"
-DHAVE_CONFIG_H -I/usr/lib/include -c -o nsoracle.o nsoracle.c
In file included from /usr/include/zlib.h:34:0,
from /usr/local/pkg/nsd-head-20170811-0/include/ns.h:44,
from nsoracle.h:26,
from nsoracle.c:14:
/usr/include/zlib.h:1673:5: error: unknown type name 'off64_t'
z_off64_t pos;
^
/usr/include/zlib.h:1693:12: error: unknown type name 'off64_t'
ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
^
----------------------------------------
--
Andrew Piskorski <[email protected]>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
naviserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/naviserver-devel