In file included from ./zstd_zlibwrapper.c:26:0: ./zstd_zlibwrapper.h:52:29: error: unknown type name ‘streamp’ int ZWRAP_setPledgedSrcSize(streamp strm, unsigned long long pledgedSrcSize); ^ ./zstd_zlibwrapper.h:57:33: error: unknown type name ‘streamp’ int ZWRAP_deflateReset_keepDict(streamp strm); ^ ./zstd_zlibwrapper.h:76:36: error: unknown type name ‘streamp’ int ZWRAP_isUsingZSTDdecompression(streamp strm); ^ ./zstd_zlibwrapper.h:81:33: error: unknown type name ‘streamp’ int ZWRAP_inflateReset_keepDict(streamp strm); ^ ./zstd_zlibwrapper.c:66:30: error: conflicting types for ‘zlibVersion’ ZEXTERN const char * ZEXPORT zlibVersion OF((void)) { return zlibVersion(); } ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:216:30: note: previous declaration of ‘zlibVersion’ was here ZEXTERN const char * ZEXPORT zlibVersion OF((void)); ^ ./zstd_zlibwrapper.c: In function ‘ZWRAP_allocFunction’: ./zstd_zlibwrapper.c:72:5: error: unknown type name ‘streamp’ streamp strm = (z_streamp) opaque; ^ ./zstd_zlibwrapper.c:72:20: warning: initialization makes integer from pointer without a cast [enabled by default] streamp strm = (z_streamp) opaque; ^ ./zstd_zlibwrapper.c:73:25: error: invalid type argument of ‘->’ (have ‘int’) void* address = strm->zalloc(strm->opaque, 1, (uInt)size); ^ ./zstd_zlibwrapper.c:73:38: error: invalid type argument of ‘->’ (have ‘int’) void* address = strm->zalloc(strm->opaque, 1, (uInt)size); ^ ./zstd_zlibwrapper.c: In function ‘ZWRAP_freeFunction’: ./zstd_zlibwrapper.c:80:5: error: unknown type name ‘streamp’ streamp strm = (z_streamp) opaque; ^ ./zstd_zlibwrapper.c:80:20: warning: initialization makes integer from pointer without a cast [enabled by default] streamp strm = (z_streamp) opaque; ^ ./zstd_zlibwrapper.c:81:9: error: invalid type argument of ‘->’ (have ‘int’) strm->zfree(strm->opaque, address); ^ ./zstd_zlibwrapper.c:81:21: error: invalid type argument of ‘->’ (have ‘int’) strm->zfree(strm->opaque, address); ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:96:5: error: unknown type name ‘stream’ stream allocFunc; /* copy of zalloc, zfree, opaque */ ^ ./zstd_zlibwrapper.c:116:37: error: unknown type name ‘streamp’ static ZWRAP_CCtx* ZWRAP_createCCtx(streamp strm) ^ ./zstd_zlibwrapper.c:154:52: error: unknown type name ‘streamp’ static int ZWRAPC_finishWithError(ZWRAP_CCtx* zwc, streamp strm, int error) ^ ./zstd_zlibwrapper.c:163:38: error: unknown type name ‘streamp’ static int ZWRAPC_finishWithErrorMsg(streamp strm, char* message) ^ ./zstd_zlibwrapper.c:173:29: error: unknown type name ‘streamp’ int ZWRAP_setPledgedSrcSize(streamp strm, unsigned long long pledgedSrcSize) ^ ./zstd_zlibwrapper.c:184:21: error: conflicting types for ‘deflateInit_’ ZEXTERN int ZEXPORT deflateInit_ OF((z_streamp strm, int level, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1633:21: note: previous declaration of ‘deflateInit_’ was here ZEXTERN int ZEXPORT deflateInit_ OF((z_streamp strm, int level, ^ ./zstd_zlibwrapper.c: In function ‘deflateInit_’: ./zstd_zlibwrapper.c:188:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] ZWRAP_CCtx* zwc; ^ ./zstd_zlibwrapper.c:195:5: warning: implicit declaration of function ‘ZWRAP_createCCtx’ [-Wimplicit-function-declaration] zwc = ZWRAP_createCCtx(strm); ^ ./zstd_zlibwrapper.c:195:9: warning: assignment makes pointer from integer without a cast [enabled by default] zwc = ZWRAP_createCCtx(strm); ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:212:21: error: conflicting types for ‘deflateInit2_’ ZEXTERN int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1637:21: note: previous declaration of ‘deflateInit2_’ was here ZEXTERN int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method, ^ ./zstd_zlibwrapper.c:225:33: error: unknown type name ‘streamp’ int ZWRAP_deflateReset_keepDict(streamp strm) ^ ./zstd_zlibwrapper.c: In function ‘deflateReset’: ./zstd_zlibwrapper.c:251:5: warning: implicit declaration of function ‘ZWRAP_deflateReset_keepDict’ [-Wimplicit-function-declaration] ZWRAP_deflateReset_keepDict(strm); ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:260:21: error: conflicting types for ‘deflateSetDictionary’ ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:587:21: note: previous declaration of ‘deflateSetDictionary’ was here ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, ^ ./zstd_zlibwrapper.c: In function ‘deflateSetDictionary’: ./zstd_zlibwrapper.c:274:13: warning: implicit declaration of function ‘ZWRAPC_finishWithError’ [-Wimplicit-function-declaration] if (zwc->zbc == NULL) return ZWRAPC_finishWithError(zwc, strm, 0); ^ ./zstd_zlibwrapper.c: In function ‘deflate’: ./zstd_zlibwrapper.c:323:27: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] zwc->inBuffer.src = strm->next_in; ^ ./zstd_zlibwrapper.c:347:9: warning: implicit declaration of function ‘ZWRAPC_finishWithErrorMsg’ [-Wimplicit-function-declaration] return ZWRAPC_finishWithErrorMsg(strm, "Z_FULL_FLUSH, Z_BLOCK and Z_TREES are not supported!"); ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:447:5: error: unknown type name ‘stream’ stream allocFunc; /* just to copy zalloc, zfree, opaque */ ^ ./zstd_zlibwrapper.c:458:37: error: unknown type name ‘streamp’ static ZWRAP_DCtx* ZWRAP_createDCtx(streamp strm) ^ ./zstd_zlibwrapper.c:489:36: error: unknown type name ‘streamp’ int ZWRAP_isUsingZSTDdecompression(streamp strm) ^ ./zstd_zlibwrapper.c:496:52: error: unknown type name ‘streamp’ static int ZWRAPD_finishWithError(ZWRAP_DCtx* zwd, streamp strm, int error) ^ ./zstd_zlibwrapper.c:504:38: error: unknown type name ‘streamp’ static int ZWRAPD_finishWithErrorMsg(streamp strm, char* message) ^ ./zstd_zlibwrapper.c:514:21: error: conflicting types for ‘inflateInit_’ ZEXTERN int ZEXPORT inflateInit_ OF((z_streamp strm, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1635:21: note: previous declaration of ‘inflateInit_’ was here ZEXTERN int ZEXPORT inflateInit_ OF((z_streamp strm, ^ ./zstd_zlibwrapper.c: In function ‘inflateInit_’: ./zstd_zlibwrapper.c:522:5: warning: implicit declaration of function ‘ZWRAP_createDCtx’ [-Wimplicit-function-declaration] { ZWRAP_DCtx* const zwd = ZWRAP_createDCtx(strm); ^ ./zstd_zlibwrapper.c:522:33: warning: initialization makes pointer from integer without a cast [enabled by default] { ZWRAP_DCtx* const zwd = ZWRAP_createDCtx(strm); ^ ./zstd_zlibwrapper.c:524:9: warning: implicit declaration of function ‘ZWRAPD_finishWithError’ [-Wimplicit-function-declaration] if (zwd == NULL) return ZWRAPD_finishWithError(zwd, strm, 0); ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:543:21: error: conflicting types for ‘inflateInit2_’ ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1641:21: note: previous declaration of ‘inflateInit2_’ was here ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits, ^ ./zstd_zlibwrapper.c:561:33: error: unknown type name ‘streamp’ int ZWRAP_inflateReset_keepDict(streamp strm) ^ ./zstd_zlibwrapper.c: In function ‘inflateReset’: ./zstd_zlibwrapper.c:586:5: warning: implicit declaration of function ‘ZWRAP_inflateReset_keepDict’ [-Wimplicit-function-declaration] { int const ret = ZWRAP_inflateReset_keepDict(strm); ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:616:21: error: conflicting types for ‘inflateSetDictionary’ ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:819:21: note: previous declaration of ‘inflateSetDictionary’ was here ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, ^ ./zstd_zlibwrapper.c: In function ‘inflate’: ./zstd_zlibwrapper.c:672:13: warning: passing argument 1 of ‘MEM_readLE32’ discards ‘const’ qualifier from pointer target type [enabled by default] if (MEM_readLE32(strm->next_in) != ZSTD_MAGICNUMBER) { ^ In file included from ../lib/common/zstd_internal.h:23:0, from ./zstd_zlibwrapper.c:29: ../lib/common/mem.h:259:16: note: expected ‘void *’ but argument is of type ‘const Bytef *’ MEM_STATIC U32 MEM_readLE32(const void* memPtr) ^ ./zstd_zlibwrapper.c:693:13: warning: passing argument 2 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [enabled by default] memcpy(zwd->headerBuf+zwd->totalInBytes, strm->next_in, srcSize); ^ In file included from ../lib/common/mem.h:22:0, from ../lib/common/zstd_internal.h:23, from ./zstd_zlibwrapper.c:29: /usr/include/string.h:46:14: note: expected ‘void * restrict’ but argument is of type ‘const Bytef *’ extern void *memcpy (void *__restrict __dest, const void *__restrict __src, ^ ./zstd_zlibwrapper.c:701:17: error: unknown type name ‘stream’ stream strm2; ^ ./zstd_zlibwrapper.c:702:22: error: request for member ‘next_in’ in something not a structure or union strm2.next_in = strm->next_in; ^ ./zstd_zlibwrapper.c:703:22: error: request for member ‘avail_in’ in something not a structure or union strm2.avail_in = strm->avail_in; ^ ./zstd_zlibwrapper.c:704:22: error: request for member ‘next_out’ in something not a structure or union strm2.next_out = strm->next_out; ^ ./zstd_zlibwrapper.c:705:22: error: request for member ‘avail_out’ in something not a structure or union strm2.avail_out = strm->avail_out; ^ ./zstd_zlibwrapper.c:726:38: error: request for member ‘next_in’ in something not a structure or union strm->next_in = strm2.next_in; ^ ./zstd_zlibwrapper.c:727:39: error: request for member ‘avail_in’ in something not a structure or union strm->avail_in = strm2.avail_in; ^ ./zstd_zlibwrapper.c:728:39: error: request for member ‘next_out’ in something not a structure or union strm->next_out = strm2.next_out; ^ ./zstd_zlibwrapper.c:729:40: error: request for member ‘avail_out’ in something not a structure or union strm->avail_out = strm2.avail_out; ^ ./zstd_zlibwrapper.c:701:24: warning: variable ‘strm2’ set but not used [-Wunused-but-set-variable] stream strm2; ^ ./zstd_zlibwrapper.c:769:13: warning: passing argument 2 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [enabled by default] memcpy(zwd->headerBuf+zwd->totalInBytes, strm->next_in, srcSize); ^ In file included from ../lib/common/mem.h:22:0, from ../lib/common/zstd_internal.h:23, from ./zstd_zlibwrapper.c:29: /usr/include/string.h:46:14: note: expected ‘void * restrict’ but argument is of type ‘const Bytef *’ extern void *memcpy (void *__restrict __dest, const void *__restrict __src, ^ ./zstd_zlibwrapper.c:805:23: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] zwd->inBuffer.src = strm->next_in; ^ In file included from /usr/include/zlib.h:34:0, from ./zstd_zlibwrapper.c:25: ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:876:37: error: unknown type name ‘streamp’ streamp source)) ^ ./zstd_zlibwrapper.c:919:42: error: unknown type name ‘gheaderp’ gheaderp head)) ^ ./zstd_zlibwrapper.c: In function ‘inflateGetDictionary’: ./zstd_zlibwrapper.c:937:5: warning: implicit declaration of function ‘ZWRAPD_finishWithErrorMsg’ [-Wimplicit-function-declaration] return ZWRAPD_finishWithErrorMsg(strm, "inflateGetDictionary is not supported!"); ^ In file included from /usr/include/zlib.h:34:0, from ./zstd_zlibwrapper.c:25: ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:943:37: error: unknown type name ‘streamp’ streamp source)) ^ ./zstd_zlibwrapper.c:972:42: error: unknown type name ‘gheaderp’ gheaderp head)) ^ ./zstd_zlibwrapper.c:980:21: error: conflicting types for ‘inflateBackInit_’ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1643:21: note: previous declaration of ‘inflateBackInit_’ was here ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits, ^ ./zstd_zlibwrapper.c:1016:21: error: conflicting types for ‘compress’ ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1160:21: note: previous declaration of ‘compress’ was here ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen, ^ ./zstd_zlibwrapper.c:1035:21: error: conflicting types for ‘compress2’ ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1174:21: note: previous declaration of ‘compress2’ was here ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen, ^ ./zstd_zlibwrapper.c:1060:21: error: conflicting types for ‘uncompress’ ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen, ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1197:21: note: previous declaration of ‘uncompress’ was here ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen, ^ ./zstd_zlibwrapper.c:1079:23: error: conflicting types for ‘adler32’ ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len)) ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1569:23: note: previous declaration of ‘adler32’ was here ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len)); ^ ./zstd_zlibwrapper.c:1084:23: error: conflicting types for ‘crc32’ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)) ^ In file included from ./zstd_zlibwrapper.c:25:0: /usr/include/zlib.h:1600:23: note: previous declaration of ‘crc32’ was here ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); ^ ./zstd_zlibwrapper.c:1104:1: error: unknown type name ‘crc_t’ ZEXTERN const crc_t FAR * ZEXPORT z_get_crc_table OF((void)) ^ ./zstd_zlibwrapper.c: In function ‘z_get_crc_table’: ./zstd_zlibwrapper.c:1106:5: warning: return discards ‘const’ qualifier from pointer target type [enabled by default] return get_crc_table(); ^ In file included from ./zstd_zlibwrapper.c:28:0: ./zstd_zlibwrapper.c: At top level: ../lib/zstd.h:402:21: warning: ‘ZSTD_frameHeaderSize_prefix’ defined but not used [-Wunused-variable] static const size_t ZSTD_frameHeaderSize_prefix = ZSTD_FRAMEHEADERSIZE_PREFIX; ^ ../lib/zstd.h:404:21: warning: ‘ZSTD_frameHeaderSize_max’ defined but not used [-Wunused-variable] static const size_t ZSTD_frameHeaderSize_max = ZSTD_FRAMEHEADERSIZE_MAX; ^ ../lib/zstd.h:405:21: warning: ‘ZSTD_skippableHeaderSize’ defined but not used [-Wunused-variable] static const size_t ZSTD_skippableHeaderSize = 8; /* magic number + skippable frame length */ ^ ../lib/zstd.h:440:29: warning: ‘ZSTD_defaultCMem’ defined but not used [-Wunused-variable] static ZSTD_customMem const ZSTD_defaultCMem = { NULL, NULL, NULL }; ^ In file included from ./zstd_zlibwrapper.c:29:0: ../lib/common/zstd_internal.h:98:18: warning: ‘repStartValue’ defined but not used [-Wunused-variable] static const U32 repStartValue[ZSTD_REP_NUM] = { 1, 4, 8 }; ^ ../lib/common/zstd_internal.h:113:21: warning: ‘ZSTD_fcs_fieldSize’ defined but not used [-Wunused-variable] static const size_t ZSTD_fcs_fieldSize[4] = { 0, 2, 4, 8 }; ^ ../lib/common/zstd_internal.h:114:21: warning: ‘ZSTD_did_fieldSize’ defined but not used [-Wunused-variable] static const size_t ZSTD_did_fieldSize[4] = { 0, 1, 2, 4 }; ^ ../lib/common/zstd_internal.h:117:21: warning: ‘ZSTD_frameIdSize’ defined but not used [-Wunused-variable] static const size_t ZSTD_frameIdSize = ZSTD_FRAMEIDSIZE; /* magic number size */ ^ In file included from ./zstd_zlibwrapper.c:29:0: ../lib/common/zstd_internal.h:120:21: warning: ‘ZSTD_blockHeaderSize’ defined but not used [-Wunused-variable] static const size_t ZSTD_blockHeaderSize = ZSTD_BLOCKHEADERSIZE; ^ ../lib/common/zstd_internal.h:144:18: warning: ‘LL_bits’ defined but not used [-Wunused-variable] static const U32 LL_bits[MaxLL+1] = { 0, 0, 0, 0, 0, 0, 0, 0, ^ ../lib/common/zstd_internal.h:149:18: warning: ‘LL_defaultNorm’ defined but not used [-Wunused-variable] static const S16 LL_defaultNorm[MaxLL+1] = { 4, 3, 2, 2, 2, 2, 2, 2, ^ ../lib/common/zstd_internal.h:155:18: warning: ‘LL_defaultNormLog’ defined but not used [-Wunused-variable] static const U32 LL_defaultNormLog = LL_DEFAULTNORMLOG; ^ ../lib/common/zstd_internal.h:157:18: warning: ‘ML_bits’ defined but not used [-Wunused-variable] static const U32 ML_bits[MaxML+1] = { 0, 0, 0, 0, 0, 0, 0, 0, ^ ../lib/common/zstd_internal.h:164:18: warning: ‘ML_defaultNorm’ defined but not used [-Wunused-variable] static const S16 ML_defaultNorm[MaxML+1] = { 1, 4, 3, 2, 2, 2, 2, 2, ^ ../lib/common/zstd_internal.h:172:18: warning: ‘ML_defaultNormLog’ defined but not used [-Wunused-variable] static const U32 ML_defaultNormLog = ML_DEFAULTNORMLOG; ^ ../lib/common/zstd_internal.h:174:18: warning: ‘OF_defaultNorm’ defined but not used [-Wunused-variable] static const S16 OF_defaultNorm[DefaultMaxOff+1] = { 1, 1, 1, 1, 1, 1, 2, 2, ^ ../lib/common/zstd_internal.h:179:18: warning: ‘OF_defaultNormLog’ defined but not used [-Wunused-variable] static const U32 OF_defaultNormLog = OF_DEFAULTNORMLOG; ^ ./zstd_zlibwrapper.c:70:14: warning: ‘ZWRAP_allocFunction’ defined but not used [-Wunused-function] static void* ZWRAP_allocFunction(void* opaque, size_t size) ^ ./zstd_zlibwrapper.c:78:13: warning: ‘ZWRAP_freeFunction’ defined but not used [-Wunused-function] static void ZWRAP_freeFunction(void* opaque, void* address) ^ ./zstd_zlibwrapper.c:451:13: warning: ‘ZWRAP_initDCtx’ defined but not used [-Wunused-function] static void ZWRAP_initDCtx(ZWRAP_DCtx* zwd) ^ make: *** [zstd_zlibwrapper.o] Error 1