When I trying to build the module, I'm getting failure when it trying to link against bundled zlib:
Scanning dependencies of target ltn12ce_core
[ 95%] Building C object src/CMakeFiles/ltn12ce_core.dir/ltn12ce_core.c.o
[ 96%] Building C object src/CMakeFiles/ltn12ce_core.dir/ltn12ce_crypto.c.o
[ 97%] Building C object src/CMakeFiles/ltn12ce_core.dir/ltn12ce_digest.c.o
[ 98%] Building C object src/CMakeFiles/ltn12ce_core.dir/ltn12ce_comp_bzip2.c.o
[ 98%] Building C object src/CMakeFiles/ltn12ce_core.dir/ltn12ce_comp_lzma.c.o
[ 99%] Building C object src/CMakeFiles/ltn12ce_core.dir/ltn12ce_comp_zlib.c.o
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:80:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
^
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:81:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
typedef void (*free_func) OF((voidpf opaque, voidpf address));
^
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:97:5: error: unknown type name ‘alloc_func’
alloc_func zalloc; /* used to allocate the internal state */
^
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:98:5: error: unknown type name ‘free_func’
free_func zfree; /* used to free the internal state */
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:216:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN const char * ZEXPORT zlibVersion OF((void));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:246:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:353:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:392:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:505:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:584:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:628:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:646:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:657:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:678:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:695:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:710:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:725:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:742:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:816:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:839:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:858:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateCopy OF((z_streamp dest,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:874:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateReset OF((z_streamp strm));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:884:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateReset2 OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:896:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflatePrime OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:917:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN long ZEXPORT inflateMark OF((z_streamp strm));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:945:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1007:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
typedef unsigned (*in_func) OF((void FAR *, unsigned char FAR * FAR *));
^
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1008:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
typedef int (*out_func) OF((void FAR *, unsigned char FAR *, unsigned));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1010:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1079:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateBackEnd OF((z_streamp strm));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1087:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1140:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1154:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1170:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN uLong ZEXPORT compressBound OF((uLong sourceLen));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1177:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1241:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1264:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1281:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1290:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1318:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1341:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1349:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1362:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1368:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1377:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1389:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1424:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzrewind OF((gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1452:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzeof OF((gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1467:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzdirect OF((gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1488:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzclose OF((gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1501:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzclose_r OF((gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1502:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzclose_w OF((gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1513:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1529:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1546:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1577:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1611:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateInit_ OF((z_streamp strm, int level,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1613:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateInit_ OF((z_streamp strm,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1615:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1619:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1621:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1653:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1697:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1698:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1699:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1700:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1701:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1702:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1718:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN const char * ZEXPORT zError OF((int));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1719:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1720:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1721:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1722:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1723:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp));
^
In file included from /var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:3:0:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/include/zlib/zlib.h:1725:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ZEXTERN unsigned long ZEXPORT gzflags OF((void));
^
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c: In function ‘lzlib_update’:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:73:19: warning: implicit declaration of function ‘deflate’ [-Wimplicit-function-declaration]
ret = deflate(strm, Z_NO_FLUSH);
^
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:75:19: warning: implicit declaration of function ‘inflate’ [-Wimplicit-function-declaration]
ret = inflate(strm, Z_NO_FLUSH);
^
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c: In function ‘lzlib’:
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:151:15: warning: implicit declaration of function ‘deflateInit_’ [-Wimplicit-function-declaration]
err = deflateInit(strm, preset);
^
/var/tmp/portage/dev-lua/ltn12ce-9999/work/lua51/ltn12ce-9999/src/ltn12ce_comp_zlib.c:156:15: warning: implicit declaration of function ‘inflateInit2_’ [-Wimplicit-function-declaration]
err = inflateInit2(strm, AUTODETECT_GZIP + MAX_WBITS);
^
make[2]: *** [src/CMakeFiles/ltn12ce_core.dir/build.make:183: src/CMakeFiles/ltn12ce_core.dir/ltn12ce_comp_zlib.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:132: src/CMakeFiles/ltn12ce_core.dir/all] Error 2
make: *** [Makefile:150: all] Error 2