Welcome! Log In Create A New Profile

Advanced

Compile Nginx 1.21.4 with zlib-ng

January 03, 2022 02:53PM
Hello.
I am not currently able to compile Nginx with zlib-ng.

Support for zlib-ng was added in April 2021:

http://mailman.nginx.org/pipermail/nginx-devel/2021-April/013945.html
https://hg.nginx.org/nginx/rev/1f3d0d9f893f

I am using the current release of zlib-ng:

https://github.com/zlib-ng/zlib-ng/releases/tag/2.0.6

I am using an `apt`-patched Ubuntu 20.04 LTS amd64 server.

I am able to compile Nginx 1.21.4 where `--with-zlib=` is omitted. When I pass that directive, the compile stops with the following error (includes the most recent `cc` command for context):

Mirrored at:

https://gist.githubusercontent.com/petecooper/78860e6d82699d2ca134f38a85025d79/raw/8ef4123a435eed5ddfa956d591b1b01b5c0e50cc/zlib-ng

==8<==

cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -m64 -march=native -mtune=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -ffat-lto-objects -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -Wno-deprecated-declarations -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -D_GLIBCXX_USE_CXX11_ABI=0 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../../brotli-source//deps/brotli/c/include -I ../../devel-kit-source/ngx_devel_kit-0.3.1/objs -I objs/addon/ndk -I ../../devel-kit-source/ngx_devel_kit-0.3.1/src -I ../../devel-kit-source/ngx_devel_kit-0.3.1/objs -I objs/addon/ndk -I ../../nchan-source/nchan-1.2.15//src -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/chromium/src -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/google-sparsehash/src/src -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/google-sparsehash/gen/arch/linux/x64/include -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/grpc/src/include -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/protobuf/src/src -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/re2/src -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/out/Release/obj/gen -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/out/Release/obj/gen/protoc_out/instaweb -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/apr/src/include -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/aprutil/src/include -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/apr/gen/arch/linux/x64/include -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I ../../pagespeed-source/incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/url -I ../../openssl-source/openssl-openssl-3.0.1/.openssl/include -I ../../zlibng-source/zlib-ng-2.0.6 -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I ../../devel-kit-source/ngx_devel_kit-0.3.1/src \
-o objs/src/http/modules/ngx_http_log_module.o \
src/http/modules/ngx_http_log_module.c
In file included from src/http/modules/ngx_http_log_module.c:13:
../../zlibng-source/zlib-ng-2.0.6/zlib.h:226:9: error: expected ‘;’ before ‘const’
226 | Z_EXTERN const char * Z_EXPORT zlibVersion(void);
| ^~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:226:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zlibVersion’
226 | Z_EXTERN const char * Z_EXPORT zlibVersion(void);
| ^~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:256:9: error: expected ‘;’ before ‘int’
256 | Z_EXTERN int Z_EXPORT deflate(z_stream *strm, int flush);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:256:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflate’
256 | Z_EXTERN int Z_EXPORT deflate(z_stream *strm, int flush);
| ^~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:369:9: error: expected ‘;’ before ‘int’
369 | Z_EXTERN int Z_EXPORT deflateEnd(z_stream *strm);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:369:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateEnd’
369 | Z_EXTERN int Z_EXPORT deflateEnd(z_stream *strm);
| ^~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:406:9: error: expected ‘;’ before ‘int’
406 | Z_EXTERN int Z_EXPORT inflate(z_stream *strm, int flush);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:406:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflate’
406 | Z_EXTERN int Z_EXPORT inflate(z_stream *strm, int flush);
| ^~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:526:9: error: expected ‘;’ before ‘int’
526 | Z_EXTERN int Z_EXPORT inflateEnd(z_stream *strm);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:526:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateEnd’
526 | Z_EXTERN int Z_EXPORT inflateEnd(z_stream *strm);
| ^~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:616:9: error: expected ‘;’ before ‘int’
616 | Z_EXTERN int Z_EXPORT deflateSetDictionary(z_stream *strm,
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:616:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateSetDictionary’
616 | Z_EXTERN int Z_EXPORT deflateSetDictionary(z_stream *strm,
| ^~~~~~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:660:9: error: expected ‘;’ before ‘int’
660 | Z_EXTERN int Z_EXPORT deflateGetDictionary (z_stream *strm, unsigned char *dictionary, unsigned int *dictLength);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:660:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateGetDictionary’
660 | Z_EXTERN int Z_EXPORT deflateGetDictionary (z_stream *strm, unsigned char *dictionary, unsigned int *dictLength);
| ^~~~~~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:680:9: error: expected ‘;’ before ‘int’
680 | Z_EXTERN int Z_EXPORT deflateCopy(z_stream *dest, z_stream *source);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:680:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateCopy’
680 | Z_EXTERN int Z_EXPORT deflateCopy(z_stream *dest, z_stream *source);
| ^~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:697:9: error: expected ‘;’ before ‘int’
697 | Z_EXTERN int Z_EXPORT deflateReset(z_stream *strm);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:697:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateReset’
697 | Z_EXTERN int Z_EXPORT deflateReset(z_stream *strm);
| ^~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:708:9: error: expected ‘;’ before ‘int’
708 | Z_EXTERN int Z_EXPORT deflateParams(z_stream *strm, int level, int strategy);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:708:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateParams’
708 | Z_EXTERN int Z_EXPORT deflateParams(z_stream *strm, int level, int strategy);
| ^~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:744:9: error: expected ‘;’ before ‘int’
744 | Z_EXTERN int Z_EXPORT deflateTune(z_stream *strm, int good_length, int max_lazy, int nice_length, int max_chain);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:744:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateTune’
744 | Z_EXTERN int Z_EXPORT deflateTune(z_stream *strm, int good_length, int max_lazy, int nice_length, int max_chain);
| ^~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:757:9: error: expected ‘;’ before ‘unsigned’
757 | Z_EXTERN unsigned long Z_EXPORT deflateBound(z_stream *strm, unsigned long sourceLen);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:757:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateBound’
757 | Z_EXTERN unsigned long Z_EXPORT deflateBound(z_stream *strm, unsigned long sourceLen);
| ^~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:771:9: error: expected ‘;’ before ‘int’
771 | Z_EXTERN int Z_EXPORT deflatePending(z_stream *strm, uint32_t *pending, int *bits);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:771:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflatePending’
771 | Z_EXTERN int Z_EXPORT deflatePending(z_stream *strm, uint32_t *pending, int *bits);
| ^~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:784:9: error: expected ‘;’ before ‘int’
784 | Z_EXTERN int Z_EXPORT deflatePrime(z_stream *strm, int bits, int value);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:784:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflatePrime’
784 | Z_EXTERN int Z_EXPORT deflatePrime(z_stream *strm, int bits, int value);
| ^~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:799:9: error: expected ‘;’ before ‘int’
799 | Z_EXTERN int Z_EXPORT deflateSetHeader(z_stream *strm, gz_headerp head);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:799:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateSetHeader’
799 | Z_EXTERN int Z_EXPORT deflateSetHeader(z_stream *strm, gz_headerp head);
| ^~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:876:9: error: expected ‘;’ before ‘int’
876 | Z_EXTERN int Z_EXPORT inflateSetDictionary(z_stream *strm, const unsigned char *dictionary, unsigned int dictLength);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:876:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateSetDictionary’
876 | Z_EXTERN int Z_EXPORT inflateSetDictionary(z_stream *strm, const unsigned char *dictionary, unsigned int dictLength);
| ^~~~~~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:897:9: error: expected ‘;’ before ‘int’
897 | Z_EXTERN int Z_EXPORT inflateGetDictionary(z_stream *strm, unsigned char *dictionary, unsigned int *dictLength);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:897:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateGetDictionary’
897 | Z_EXTERN int Z_EXPORT inflateGetDictionary(z_stream *strm, unsigned char *dictionary, unsigned int *dictLength);
| ^~~~~~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:910:9: error: expected ‘;’ before ‘int’
910 | Z_EXTERN int Z_EXPORT inflateSync(z_stream *strm);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:910:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateSync’
910 | Z_EXTERN int Z_EXPORT inflateSync(z_stream *strm);
| ^~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:929:9: error: expected ‘;’ before ‘int’
929 | Z_EXTERN int Z_EXPORT inflateCopy(z_stream *dest, z_stream *source);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:929:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateCopy’
929 | Z_EXTERN int Z_EXPORT inflateCopy(z_stream *dest, z_stream *source);
| ^~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:944:9: error: expected ‘;’ before ‘int’
944 | Z_EXTERN int Z_EXPORT inflateReset(z_stream *strm);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:944:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateReset’
944 | Z_EXTERN int Z_EXPORT inflateReset(z_stream *strm);
| ^~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:954:9: error: expected ‘;’ before ‘int’
954 | Z_EXTERN int Z_EXPORT inflateReset2(z_stream *strm, int windowBits);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:954:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateReset2’
954 | Z_EXTERN int Z_EXPORT inflateReset2(z_stream *strm, int windowBits);
| ^~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:967:9: error: expected ‘;’ before ‘int’
967 | Z_EXTERN int Z_EXPORT inflatePrime(z_stream *strm, int bits, int value);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:967:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflatePrime’
967 | Z_EXTERN int Z_EXPORT inflatePrime(z_stream *strm, int bits, int value);
| ^~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:986:9: error: expected ‘;’ before ‘long’
986 | Z_EXTERN long Z_EXPORT inflateMark(z_stream *strm);
| ^~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:986:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateMark’
986 | Z_EXTERN long Z_EXPORT inflateMark(z_stream *strm);
| ^~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1014:9: error: expected ‘;’ before ‘int’
1014 | Z_EXTERN int Z_EXPORT inflateGetHeader(z_stream *strm, gz_headerp head);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1014:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateGetHeader’
1014 | Z_EXTERN int Z_EXPORT inflateGetHeader(z_stream *strm, gz_headerp head);
| ^~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1077:9: error: expected ‘;’ before ‘int’
1077 | Z_EXTERN int Z_EXPORT inflateBack(z_stream *strm, in_func in, void *in_desc, out_func out, void *out_desc);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1077:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateBack’
1077 | Z_EXTERN int Z_EXPORT inflateBack(z_stream *strm, in_func in, void *in_desc, out_func out, void *out_desc);
| ^~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1145:9: error: expected ‘;’ before ‘int’
1145 | Z_EXTERN int Z_EXPORT inflateBackEnd(z_stream *strm);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1145:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateBackEnd’
1145 | Z_EXTERN int Z_EXPORT inflateBackEnd(z_stream *strm);
| ^~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1153:9: error: expected ‘;’ before ‘unsigned’
1153 | Z_EXTERN unsigned long Z_EXPORT zlibCompileFlags(void);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1153:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zlibCompileFlags’
1153 | Z_EXTERN unsigned long Z_EXPORT zlibCompileFlags(void);
| ^~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1207:9: error: expected ‘;’ before ‘int’
1207 | Z_EXTERN int Z_EXPORT compress(unsigned char *dest, unsigned long *destLen, const unsigned char *source, unsigned long sourceLen);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1207:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘compress’
1207 | Z_EXTERN int Z_EXPORT compress(unsigned char *dest, unsigned long *destLen, const unsigned char *source, unsigned long sourceLen);
| ^~~~~~~~
In file included from src/http/modules/ngx_http_log_module.c:13:
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1221:9: error: expected ‘;’ before ‘int’
1221 | Z_EXTERN int Z_EXPORT compress2(unsigned char *dest, unsigned long *destLen, const unsigned char *source,
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1221:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘compress2’
1221 | Z_EXTERN int Z_EXPORT compress2(unsigned char *dest, unsigned long *destLen, const unsigned char *source,
| ^~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1236:9: error: expected ‘;’ before ‘unsigned’
1236 | Z_EXTERN unsigned long Z_EXPORT compressBound(unsigned long sourceLen);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1236:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘compressBound’
1236 | Z_EXTERN unsigned long Z_EXPORT compressBound(unsigned long sourceLen);
| ^~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1243:9: error: expected ‘;’ before ‘int’
1243 | Z_EXTERN int Z_EXPORT uncompress(unsigned char *dest, unsigned long *destLen, const unsigned char *source, unsigned long sourceLen);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1243:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uncompress’
1243 | Z_EXTERN int Z_EXPORT uncompress(unsigned char *dest, unsigned long *destLen, const unsigned char *source, unsigned long sourceLen);
| ^~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1261:9: error: expected ‘;’ before ‘int’
1261 | Z_EXTERN int Z_EXPORT uncompress2 (unsigned char *dest, unsigned long *destLen,
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1261:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uncompress2’
1261 | Z_EXTERN int Z_EXPORT uncompress2 (unsigned char *dest, unsigned long *destLen,
| ^~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1319:1: error: unknown type name ‘Z_EXTERN’; did you mean ‘ZEXTERN’?
1319 | Z_EXTERN gzFile Z_EXPORT gzdopen(int fd, const char *mode);
| ^~~~~~~~
| ZEXTERN
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1319:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_EXPORT’
1319 | Z_EXTERN gzFile Z_EXPORT gzdopen(int fd, const char *mode);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1319:17: error: unknown type name ‘Z_EXPORT’; did you mean ‘ZEXPORT’?
1319 | Z_EXTERN gzFile Z_EXPORT gzdopen(int fd, const char *mode);
| ^~~~~~~~
| ZEXPORT
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1342:9: error: expected ‘;’ before ‘int’
1342 | Z_EXTERN int Z_EXPORT gzbuffer(gzFile file, unsigned size);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1342:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzbuffer’
1342 | Z_EXTERN int Z_EXPORT gzbuffer(gzFile file, unsigned size);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1358:9: error: expected ‘;’ before ‘int’
1358 | Z_EXTERN int Z_EXPORT gzsetparams(gzFile file, int level, int strategy);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1358:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzsetparams’
1358 | Z_EXTERN int Z_EXPORT gzsetparams(gzFile file, int level, int strategy);
| ^~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1369:9: error: expected ‘;’ before ‘int’
1369 | Z_EXTERN int Z_EXPORT gzread(gzFile file, void *buf, unsigned len);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1369:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzread’
1369 | Z_EXTERN int Z_EXPORT gzread(gzFile file, void *buf, unsigned len);
| ^~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1399:1: error: unknown type name ‘Z_EXTERN’; did you mean ‘ZEXTERN’?
1399 | Z_EXTERN size_t Z_EXPORT gzfread (void *buf, size_t size, size_t nitems, gzFile file);
| ^~~~~~~~
| ZEXTERN
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1399:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_EXPORT’
1399 | Z_EXTERN size_t Z_EXPORT gzfread (void *buf, size_t size, size_t nitems, gzFile file);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1399:17: error: unknown type name ‘Z_EXPORT’; did you mean ‘ZEXPORT’?
1399 | Z_EXTERN size_t Z_EXPORT gzfread (void *buf, size_t size, size_t nitems, gzFile file);
| ^~~~~~~~
| ZEXPORT
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1424:9: error: expected ‘;’ before ‘int’
1424 | Z_EXTERN int Z_EXPORT gzwrite(gzFile file, void const *buf, unsigned len);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1424:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzwrite’
1424 | Z_EXTERN int Z_EXPORT gzwrite(gzFile file, void const *buf, unsigned len);
| ^~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1430:1: error: unknown type name ‘Z_EXTERN’; did you mean ‘ZEXTERN’?
1430 | Z_EXTERN size_t Z_EXPORT gzfwrite(void const *buf, size_t size, size_t nitems, gzFile file);
| ^~~~~~~~
| ZEXTERN
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1430:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_EXPORT’
1430 | Z_EXTERN size_t Z_EXPORT gzfwrite(void const *buf, size_t size, size_t nitems, gzFile file);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1430:17: error: unknown type name ‘Z_EXPORT’; did you mean ‘ZEXPORT’?
1430 | Z_EXTERN size_t Z_EXPORT gzfwrite(void const *buf, size_t size, size_t nitems, gzFile file);
| ^~~~~~~~
| ZEXPORT
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1441:9: error: expected ‘;’ before ‘int’
1441 | Z_EXTERN int Z_EXPORTVA gzprintf(gzFile file, const char *format, ...);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1441:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzprintf’
1441 | Z_EXTERN int Z_EXPORTVA gzprintf(gzFile file, const char *format, ...);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1456:9: error: expected ‘;’ before ‘int’
1456 | Z_EXTERN int Z_EXPORT gzputs(gzFile file, const char *s);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1456:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzputs’
1456 | Z_EXTERN int Z_EXPORT gzputs(gzFile file, const char *s);
| ^~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1464:9: error: expected ‘;’ before ‘char’
1464 | Z_EXTERN char * Z_EXPORT gzgets(gzFile file, char *buf, int len);
| ^~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1464:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzgets’
1464 | Z_EXTERN char * Z_EXPORT gzgets(gzFile file, char *buf, int len);
| ^~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1478:9: error: expected ‘;’ before ‘int’
1478 | Z_EXTERN int Z_EXPORT gzputc(gzFile file, int c);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1478:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzputc’
1478 | Z_EXTERN int Z_EXPORT gzputc(gzFile file, int c);
| ^~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1484:9: error: expected ‘;’ before ‘int’
1484 | Z_EXTERN int Z_EXPORT gzgetc(gzFile file);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1484:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzgetc’
1484 | Z_EXTERN int Z_EXPORT gzgetc(gzFile file);
| ^~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1493:9: error: expected ‘;’ before ‘int’
1493 | Z_EXTERN int Z_EXPORT gzungetc(int c, gzFile file);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1493:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzungetc’
1493 | Z_EXTERN int Z_EXPORT gzungetc(int c, gzFile file);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1505:9: error: expected ‘;’ before ‘int’
1505 | Z_EXTERN int Z_EXPORT gzflush(gzFile file, int flush);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1505:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzflush’
1505 | Z_EXTERN int Z_EXPORT gzflush(gzFile file, int flush);
| ^~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1539:9: error: expected ‘;’ before ‘int’
1539 | Z_EXTERN int Z_EXPORT gzrewind(gzFile file);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1539:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzrewind’
1539 | Z_EXTERN int Z_EXPORT gzrewind(gzFile file);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1567:9: error: expected ‘;’ before ‘int’
1567 | Z_EXTERN int Z_EXPORT gzeof(gzFile file);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1567:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzeof’
1567 | Z_EXTERN int Z_EXPORT gzeof(gzFile file);
| ^~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1582:9: error: expected ‘;’ before ‘int’
1582 | Z_EXTERN int Z_EXPORT gzdirect(gzFile file);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1582:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzdirect’
1582 | Z_EXTERN int Z_EXPORT gzdirect(gzFile file);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1603:9: error: expected ‘;’ before ‘int’
1603 | Z_EXTERN int Z_EXPORT gzclose(gzFile file);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1603:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzclose’
1603 | Z_EXTERN int Z_EXPORT gzclose(gzFile file);
| ^~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1616:9: error: expected ‘;’ before ‘int’
1616 | Z_EXTERN int Z_EXPORT gzclose_r(gzFile file);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1616:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzclose_r’
1616 | Z_EXTERN int Z_EXPORT gzclose_r(gzFile file);
| ^~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1617:9: error: expected ‘;’ before ‘int’
1617 | Z_EXTERN int Z_EXPORT gzclose_w(gzFile file);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1617:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzclose_w’
1617 | Z_EXTERN int Z_EXPORT gzclose_w(gzFile file);
| ^~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1628:9: error: expected ‘;’ before ‘const’
1628 | Z_EXTERN const char * Z_EXPORT gzerror(gzFile file, int *errnum);
| ^~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1628:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzerror’
1628 | Z_EXTERN const char * Z_EXPORT gzerror(gzFile file, int *errnum);
| ^~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1644:9: error: expected ‘;’ before ‘void’
1644 | Z_EXTERN void Z_EXPORT gzclearerr(gzFile file);
| ^~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1644:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzclearerr’
1644 | Z_EXTERN void Z_EXPORT gzclearerr(gzFile file);
| ^~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1661:9: error: expected ‘;’ before ‘unsigned’
1661 | Z_EXTERN unsigned long Z_EXPORT adler32(unsigned long adler, const unsigned char *buf, unsigned int len);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1661:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adler32’
1661 | Z_EXTERN unsigned long Z_EXPORT adler32(unsigned long adler, const unsigned char *buf, unsigned int len);
| ^~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1681:9: error: expected ‘;’ before ‘unsigned’
1681 | Z_EXTERN unsigned long Z_EXPORT adler32_z(unsigned long adler, const unsigned char *buf, size_t len);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1681:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adler32_z’
1681 | Z_EXTERN unsigned long Z_EXPORT adler32_z(unsigned long adler, const unsigned char *buf, size_t len);
| ^~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1697:9: error: expected ‘;’ before ‘unsigned’
1697 | Z_EXTERN unsigned long Z_EXPORT crc32(unsigned long crc, const unsigned char *buf, unsigned int len);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1697:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32’
1697 | Z_EXTERN unsigned long Z_EXPORT crc32(unsigned long crc, const unsigned char *buf, unsigned int len);
| ^~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1715:9: error: expected ‘;’ before ‘unsigned’
1715 | Z_EXTERN unsigned long Z_EXPORT crc32_z(unsigned long crc, const unsigned char *buf, size_t len);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1715:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32_z’
1715 | Z_EXTERN unsigned long Z_EXPORT crc32_z(unsigned long crc, const unsigned char *buf, size_t len);
| ^~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1738:1: error: unknown type name ‘Z_EXTERN’; did you mean ‘ZEXTERN’?
1738 | Z_EXTERN uint32_t Z_EXPORT crc32_combine_op(uint32_t crc1, uint32_t crc2,
| ^~~~~~~~
| ZEXTERN
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1738:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_EXPORT’
1738 | Z_EXTERN uint32_t Z_EXPORT crc32_combine_op(uint32_t crc1, uint32_t crc2,
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1738:19: error: unknown type name ‘Z_EXPORT’; did you mean ‘ZEXPORT’?
1738 | Z_EXTERN uint32_t Z_EXPORT crc32_combine_op(uint32_t crc1, uint32_t crc2,
| ^~~~~~~~
| ZEXPORT
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1752:9: error: expected ‘;’ before ‘int’
1752 | Z_EXTERN int Z_EXPORT deflateInit_(z_stream *strm, int level, const char *version, int stream_size);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1752:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateInit_’
1752 | Z_EXTERN int Z_EXPORT deflateInit_(z_stream *strm, int level, const char *version, int stream_size);
| ^~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1753:9: error: expected ‘;’ before ‘int’
1753 | Z_EXTERN int Z_EXPORT inflateInit_(z_stream *strm, const char *version, int stream_size);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1753:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateInit_’
1753 | Z_EXTERN int Z_EXPORT inflateInit_(z_stream *strm, const char *version, int stream_size);
| ^~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1754:9: error: expected ‘;’ before ‘int’
1754 | Z_EXTERN int Z_EXPORT deflateInit2_(z_stream *strm, int level, int method, int windowBits, int memLevel,
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1754:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateInit2_’
1754 | Z_EXTERN int Z_EXPORT deflateInit2_(z_stream *strm, int level, int method, int windowBits, int memLevel,
| ^~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1756:9: error: expected ‘;’ before ‘int’
1756 | Z_EXTERN int Z_EXPORT inflateInit2_(z_stream *strm, int windowBits, const char *version, int stream_size);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1756:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateInit2_’
1756 | Z_EXTERN int Z_EXPORT inflateInit2_(z_stream *strm, int windowBits, const char *version, int stream_size);
| ^~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1757:9: error: expected ‘;’ before ‘int’
1757 | Z_EXTERN int Z_EXPORT inflateBackInit_(z_stream *strm, int windowBits, unsigned char *window,
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1757:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateBackInit_’
1757 | Z_EXTERN int Z_EXPORT inflateBackInit_(z_stream *strm, int windowBits, unsigned char *window,
| ^~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1782:9: error: expected ‘;’ before ‘int’
1782 | Z_EXTERN int Z_EXPORT gzgetc_(gzFile file); /* backward compatibility */
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1782:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzgetc_’
1782 | Z_EXTERN int Z_EXPORT gzgetc_(gzFile file); /* backward compatibility */
| ^~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1792:4: error: unknown type name ‘Z_EXTERN’; did you mean ‘ZEXTERN’?
1792 | Z_EXTERN gzFile Z_EXPORT gzopen64(const char *, const char *);
| ^~~~~~~~
| ZEXTERN
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1792:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_EXPORT’
1792 | Z_EXTERN gzFile Z_EXPORT gzopen64(const char *, const char *);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1792:20: error: unknown type name ‘Z_EXPORT’; did you mean ‘ZEXPORT’?
1792 | Z_EXTERN gzFile Z_EXPORT gzopen64(const char *, const char *);
| ^~~~~~~~
| ZEXPORT
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1793:4: error: unknown type name ‘Z_EXTERN’; did you mean ‘ZEXTERN’?
1793 | Z_EXTERN z_off64_t Z_EXPORT gzseek64(gzFile, z_off64_t, int);
| ^~~~~~~~
| ZEXTERN
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1793:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_EXPORT’
1793 | Z_EXTERN z_off64_t Z_EXPORT gzseek64(gzFile, z_off64_t, int);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1793:23: error: unknown type name ‘Z_EXPORT’; did you mean ‘ZEXPORT’?
1793 | Z_EXTERN z_off64_t Z_EXPORT gzseek64(gzFile, z_off64_t, int);
| ^~~~~~~~
| ZEXPORT
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1794:4: error: unknown type name ‘Z_EXTERN’; did you mean ‘ZEXTERN’?
1794 | Z_EXTERN z_off64_t Z_EXPORT gztell64(gzFile);
| ^~~~~~~~
| ZEXTERN
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1794:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_EXPORT’
1794 | Z_EXTERN z_off64_t Z_EXPORT gztell64(gzFile);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1794:23: error: unknown type name ‘Z_EXPORT’; did you mean ‘ZEXPORT’?
1794 | Z_EXTERN z_off64_t Z_EXPORT gztell64(gzFile);
| ^~~~~~~~
| ZEXPORT
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1795:4: error: unknown type name ‘Z_EXTERN’; did you mean ‘ZEXTERN’?
1795 | Z_EXTERN z_off64_t Z_EXPORT gzoffset64(gzFile);
| ^~~~~~~~
| ZEXTERN
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1795:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_EXPORT’
1795 | Z_EXTERN z_off64_t Z_EXPORT gzoffset64(gzFile);
| ^~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1795:23: error: unknown type name ‘Z_EXPORT’; did you mean ‘ZEXPORT’?
1795 | Z_EXTERN z_off64_t Z_EXPORT gzoffset64(gzFile);
| ^~~~~~~~
| ZEXPORT
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1796:12: error: expected ‘;’ before ‘unsigned’
1796 | Z_EXTERN unsigned long Z_EXPORT adler32_combine64(unsigned long, unsigned long, z_off64_t);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1796:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adler32_combine64’
1796 | Z_EXTERN unsigned long Z_EXPORT adler32_combine64(unsigned long, unsigned long, z_off64_t);
| ^~~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1797:12: error: expected ‘;’ before ‘unsigned’
1797 | Z_EXTERN unsigned long Z_EXPORT crc32_combine64(unsigned long, unsigned long, z_off64_t);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1797:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32_combine64’
1797 | Z_EXTERN unsigned long Z_EXPORT crc32_combine64(unsigned long, unsigned long, z_off64_t);
| ^~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1798:12: error: expected ‘;’ before ‘void’
1798 | Z_EXTERN void Z_EXPORT crc32_combine_gen64(uint32_t *op, z_off64_t);
| ^~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1798:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32_combine_gen64’
1798 | Z_EXTERN void Z_EXPORT crc32_combine_gen64(uint32_t *op, z_off64_t);
| ^~~~~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1830:9: error: expected ‘;’ before ‘const’
1830 | Z_EXTERN const char * Z_EXPORT zError (int);
| ^~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1830:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zError’
1830 | Z_EXTERN const char * Z_EXPORT zError (int);
| ^~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1831:9: error: expected ‘;’ before ‘int’
1831 | Z_EXTERN int Z_EXPORT inflateSyncPoint (z_stream *);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1831:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateSyncPoint’
1831 | Z_EXTERN int Z_EXPORT inflateSyncPoint (z_stream *);
| ^~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1832:9: error: expected ‘;’ before ‘const’
1832 | Z_EXTERN const uint32_t * Z_EXPORT get_crc_table (void);
| ^~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1832:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘get_crc_table’
1832 | Z_EXTERN const uint32_t * Z_EXPORT get_crc_table (void);
| ^~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1833:9: error: expected ‘;’ before ‘int’
1833 | Z_EXTERN int Z_EXPORT inflateUndermine (z_stream *, int);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1833:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateUndermine’
1833 | Z_EXTERN int Z_EXPORT inflateUndermine (z_stream *, int);
| ^~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1834:9: error: expected ‘;’ before ‘int’
1834 | Z_EXTERN int Z_EXPORT inflateValidate (z_stream *, int);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1834:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateValidate’
1834 | Z_EXTERN int Z_EXPORT inflateValidate (z_stream *, int);
| ^~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1835:9: error: expected ‘;’ before ‘unsigned’
1835 | Z_EXTERN unsigned long Z_EXPORT inflateCodesUsed (z_stream *);
| ^~~~~~~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1835:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateCodesUsed’
1835 | Z_EXTERN unsigned long Z_EXPORT inflateCodesUsed (z_stream *);
| ^~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1836:9: error: expected ‘;’ before ‘int’
1836 | Z_EXTERN int Z_EXPORT inflateResetKeep (z_stream *);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1836:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inflateResetKeep’
1836 | Z_EXTERN int Z_EXPORT inflateResetKeep (z_stream *);
| ^~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1837:9: error: expected ‘;’ before ‘int’
1837 | Z_EXTERN int Z_EXPORT deflateResetKeep (z_stream *);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1837:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘deflateResetKeep’
1837 | Z_EXTERN int Z_EXPORT deflateResetKeep (z_stream *);
| ^~~~~~~~~~~~~~~~
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1843:9: error: expected ‘;’ before ‘int’
1843 | Z_EXTERN int Z_EXPORTVA gzvprintf(gzFile file, const char *format, va_list va);
| ^~~~
| ;
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1843:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzvprintf’
1843 | Z_EXTERN int Z_EXPORTVA gzvprintf(gzFile file, const char *format, va_list va);
| ^~~~~~~~~
src/http/modules/ngx_http_log_module.c: In function ‘ngx_http_log_gzip’:
../../zlibng-source/zlib-ng-2.0.6/zlib.h:1762:9: error: implicit declaration of function ‘deflateInit2_’; did you mean ‘deflateInit2’? [-Werror=implicit-function-declaration]
1762 | deflateInit2_((strm), (level), (method), (windowBits), (memLevel), \
| ^~~~~~~~~~~~~
src/http/modules/ngx_http_log_module.c:637:10: note: in expansion of macro ‘deflateInit2’
637 | rc = deflateInit2(&zstream, (int) level, Z_DEFLATED, wbits + 16, memlevel,
| ^~~~~~~~~~~~
src/http/modules/ngx_http_log_module.c:650:10: error: implicit declaration of function ‘deflate’ [-Werror=implicit-function-declaration]
650 | rc = deflate(&zstream, Z_FINISH);
| ^~~~~~~
src/http/modules/ngx_http_log_module.c:666:10: error: implicit declaration of function ‘deflateEnd’; did you mean ‘deflateInit’? [-Werror=implicit-function-declaration]
666 | rc = deflateEnd(&zstream);
| ^~~~~~~~~~
| deflateInit
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1042: objs/src/http/modules/ngx_http_log_module.o] Error 1
make[1]: Leaving directory '/home/pete/nginx-source/nginx-1.21.4'
make: *** [Makefile:10: build] Error 2

==8<==

I am using the following Nginx `configure` directives (I confirm the path used in `--with-zlib` contains a valid `configure`):

==8<==

yes Y | ./configure \
--add-dynamic-module=../../brotli-source/ \
--add-dynamic-module=../../cache-purge-source/ngx_cache_purge-$cache_purge_source_version \
--add-dynamic-module=../../devel-kit-source/ngx_devel_kit-$devel_kit_source_version \
--add-dynamic-module=../../echo-source/echo-nginx-module-$echo_source_version \
--add-dynamic-module=../../headers-more-source/headers-more-nginx-module-$headers_more_source_version \
--add-dynamic-module=../../ipscrub-source/ipscrub-$ipscrub_source_version/ipscrub \
--add-dynamic-module=../../length-hiding-source/nginx-length-hiding-filter-module-$length_hiding_source_version \
--add-dynamic-module=../../memcached-source/memc-nginx-module-$memcached_source_version \
--add-dynamic-module=../../misc-source/set-misc-nginx-module-$set_misc_source_version \
--add-dynamic-module=../../naxsi-source/naxsi-$naxsi_source_version/naxsi_src \
--add-dynamic-module=../../nchan-source/nchan-$nchan_source_version/ \
--add-dynamic-module=../../pagespeed-source/incubator-pagespeed-ngx-$pagespeed_source_version-stable \
--add-dynamic-module=../../redis2-source/redis2-nginx-module-$redis2_source_version \
--add-dynamic-module=../../srcache-source/srcache-nginx-module-$srcache_source_version \
--add-dynamic-module=../../vts-source/nginx-module-vts-$vts_source_version \
--build=$(date --iso-8601=seconds) \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/live/nginx/nginx.error.log \
--http-client-body-temp-path=/var/cache/nginx/client_temp \
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
--http-log-path=/var/log/nginx/live/nginx/nginx.access.log \
--http-proxy-temp-path=/var/cache/nginx/proxy_temp \
--lock-path=/var/run/nginx.lock \
--modules-path=/usr/lib/nginx/modules \
--pid-path=/var/run/nginx.pid \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--with-cc-opt="-m64 -march=native -mtune=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -ffat-lto-objects -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -Wno-deprecated-declarations -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2" \
--with-compat \
--with-debug \
--with-file-aio \
--with-http_addition_module \
--with-http_auth_request_module \
--with-http_dav_module \
--with-http_geoip_module=dynamic \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_image_filter_module=dynamic \
--with-http_realip_module \
--with-http_secure_link_module \
--with-http_slice_module \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-http_sub_module \
--with-http_v2_module \
--with-http_xslt_module=dynamic \
--with-ld-opt='-Wl,-E -lrt -lpcre -Wl,-z,relro' \
--with-libatomic \
--with-openssl-opt="\
shared \
no-ssl3 \
no-weak-ssl-ciphers \
-fstack-protector-strong \
" \
--with-openssl=../../openssl-source/openssl-openssl-$openssl_source_version \
--with-pcre \
--with-pcre-jit \
--with-stream \
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--with-stream=dynamic \
--with-threads \
--with-zlib=../../zlibng-source/zlib-ng-$zlibng_source_version \
--without-http_empty_gif_module \
--without-http_scgi_module \
--without-http_ssi_module \
--without-http_uwsgi_module \
--without-mail_imap_module \
--without-mail_pop3_module \
--without-mail_smtp_module

==8<==

Thank you for reading this far. I would be grateful for any feedback or advice on where I have made any errors.
Subject Author Posted

Compile Nginx 1.21.4 with zlib-ng

petecooper January 03, 2022 02:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 255
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready