./zstd_zlibwrapper.c:1117:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’ typdef const char *(*orig_zlibVersion)(void); ^ ./zstd_zlibwrapper.c:1118:1: error: unknown type name ‘orig_zlibVersion’ orig_zlibVersion zlib_zlibVersion; ^ ./zstd_zlibwrapper.c: In function ‘zlibVersion’: ./zstd_zlibwrapper.c:1123:23: error: ‘orig_zlibVersion’ undeclared (first use in this function) zlib_zlibVersion = (orig_zlibVersion) dlsym(RTLD_NEXT,"zlibVersion"); ^ ./zstd_zlibwrapper.c:1123:23: note: each undeclared identifier is reported only once for each function it appears in ./zstd_zlibwrapper.c:1123:41: error: expected ‘;’ before ‘dlsym’ zlib_zlibVersion = (orig_zlibVersion) dlsym(RTLD_NEXT,"zlibVersion"); ^ ./zstd_zlibwrapper.c:1124:24: error: expected expression before ‘void’ return z_zlibVersion(void); ^ ./zstd_zlibwrapper.c:1124:24: error: too many arguments to function ‘z_zlibVersion’ ./zstd_zlibwrapper.c:68:30: note: declared here ZEXTERN const char * ZEXPORT z_zlibVersion OF((void)) ^ ./zstd_zlibwrapper.c:1126:26: error: expected expression before ‘void’ return zlib_zlibVersion(void); ^ ./zstd_zlibwrapper.c:1126:25: error: called object ‘zlib_zlibVersion’ is not a function or function pointer return zlib_zlibVersion(void); ^ ./zstd_zlibwrapper.c:1118:18: note: declared here orig_zlibVersion zlib_zlibVersion; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1128:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflateInit_)(z_streamp strm, int level, const char *version, int stream_size); ^ ./zstd_zlibwrapper.c:1129:1: error: unknown type name ‘orig_deflateInit_’ orig_deflateInit_ zlib_deflateInit_; ^ ./zstd_zlibwrapper.c: In function ‘deflateInit_’: ./zstd_zlibwrapper.c:1135:24: error: ‘orig_deflateInit_’ undeclared (first use in this function) zlib_deflateInit_ = (orig_deflateInit_) dlsym(RTLD_NEXT,"deflateInit_"); ^ ./zstd_zlibwrapper.c:1135:43: error: expected ‘;’ before ‘dlsym’ zlib_deflateInit_ = (orig_deflateInit_) dlsym(RTLD_NEXT,"deflateInit_"); ^ ./zstd_zlibwrapper.c:1138:26: error: called object ‘zlib_deflateInit_’ is not a function or function pointer return zlib_deflateInit_(strm, level, version, stream_size); ^ ./zstd_zlibwrapper.c:1129:19: note: declared here orig_deflateInit_ zlib_deflateInit_; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1140:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflateInit2_)(z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size); ^ ./zstd_zlibwrapper.c:1141:1: error: unknown type name ‘orig_deflateInit2_’ orig_deflateInit2_ zlib_deflateInit2_; ^ ./zstd_zlibwrapper.c: In function ‘deflateInit2_’: ./zstd_zlibwrapper.c:1149:25: error: ‘orig_deflateInit2_’ undeclared (first use in this function) zlib_deflateInit2_ = (orig_deflateInit2_) dlsym(RTLD_NEXT,"deflateInit2_"); ^ ./zstd_zlibwrapper.c:1149:45: error: expected ‘;’ before ‘dlsym’ zlib_deflateInit2_ = (orig_deflateInit2_) dlsym(RTLD_NEXT,"deflateInit2_"); ^ ./zstd_zlibwrapper.c:1152:27: error: called object ‘zlib_deflateInit2_’ is not a function or function pointer return zlib_deflateInit2_(strm, level, method, windowBits, memLevel, strategy, version, stream_size); ^ ./zstd_zlibwrapper.c:1141:20: note: declared here orig_deflateInit2_ zlib_deflateInit2_; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1154:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflateReset)(z_streamp strm); ^ ./zstd_zlibwrapper.c:1155:1: error: unknown type name ‘orig_deflateReset’ orig_deflateReset zlib_deflateReset; ^ ./zstd_zlibwrapper.c: In function ‘deflateReset’: ./zstd_zlibwrapper.c:1160:24: error: ‘orig_deflateReset’ undeclared (first use in this function) zlib_deflateReset = (orig_deflateReset) dlsym(RTLD_NEXT,"deflateReset"); ^ ./zstd_zlibwrapper.c:1160:43: error: expected ‘;’ before ‘dlsym’ zlib_deflateReset = (orig_deflateReset) dlsym(RTLD_NEXT,"deflateReset"); ^ ./zstd_zlibwrapper.c:1163:26: error: called object ‘zlib_deflateReset’ is not a function or function pointer return zlib_deflateReset(strm); ^ ./zstd_zlibwrapper.c:1155:19: note: declared here orig_deflateReset zlib_deflateReset; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1165:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflateSetDictionary)(z_streamp strm, const Bytef *dictionary, uInt dictLength); ^ ./zstd_zlibwrapper.c:1166:1: error: unknown type name ‘orig_deflateSetDictionary’ orig_deflateSetDictionary zlib_deflateSetDictionary; ^ ./zstd_zlibwrapper.c: In function ‘deflateSetDictionary’: ./zstd_zlibwrapper.c:1173:32: error: ‘orig_deflateSetDictionary’ undeclared (first use in this function) zlib_deflateSetDictionary = (orig_deflateSetDictionary) dlsym(RTLD_NEXT,"deflateSetDictionary"); ^ ./zstd_zlibwrapper.c:1173:59: error: expected ‘;’ before ‘dlsym’ zlib_deflateSetDictionary = (orig_deflateSetDictionary) dlsym(RTLD_NEXT,"deflateSetDictionary"); ^ ./zstd_zlibwrapper.c:1176:34: error: called object ‘zlib_deflateSetDictionary’ is not a function or function pointer return zlib_deflateSetDictionary(strm, dictionary, dictLength); ^ ./zstd_zlibwrapper.c:1166:27: note: declared here orig_deflateSetDictionary zlib_deflateSetDictionary; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1178:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflate)(z_streamp strm, int flush); ^ ./zstd_zlibwrapper.c:1179:1: error: unknown type name ‘orig_deflate’ orig_deflate zlib_deflate; ^ ./zstd_zlibwrapper.c: In function ‘deflate’: ./zstd_zlibwrapper.c:1184:19: error: ‘orig_deflate’ undeclared (first use in this function) zlib_deflate = (orig_deflate) dlsym(RTLD_NEXT,"deflate"); ^ ./zstd_zlibwrapper.c:1184:33: error: expected ‘;’ before ‘dlsym’ zlib_deflate = (orig_deflate) dlsym(RTLD_NEXT,"deflate"); ^ ./zstd_zlibwrapper.c:1187:21: error: called object ‘zlib_deflate’ is not a function or function pointer return zlib_deflate(strm, flush); ^ ./zstd_zlibwrapper.c:1179:14: note: declared here orig_deflate zlib_deflate; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1189:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflateEnd)(z_streamp strm); ^ ./zstd_zlibwrapper.c:1190:1: error: unknown type name ‘orig_deflateEnd’ orig_deflateEnd zlib_deflateEnd; ^ ./zstd_zlibwrapper.c: In function ‘deflateEnd’: ./zstd_zlibwrapper.c:1195:22: error: ‘orig_deflateEnd’ undeclared (first use in this function) zlib_deflateEnd = (orig_deflateEnd) dlsym(RTLD_NEXT,"deflateEnd"); ^ ./zstd_zlibwrapper.c:1195:39: error: expected ‘;’ before ‘dlsym’ zlib_deflateEnd = (orig_deflateEnd) dlsym(RTLD_NEXT,"deflateEnd"); ^ ./zstd_zlibwrapper.c:1198:24: error: called object ‘zlib_deflateEnd’ is not a function or function pointer return zlib_deflateEnd(strm); ^ ./zstd_zlibwrapper.c:1190:17: note: declared here orig_deflateEnd zlib_deflateEnd; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1200:1: error: unknown type name ‘typdef’ typdef uLong (*orig_deflateBound)(z_streamp strm, uLong sourceLen); ^ ./zstd_zlibwrapper.c:1200:15: error: expected declaration specifiers or ‘...’ before ‘*’ token typdef uLong (*orig_deflateBound)(z_streamp strm, uLong sourceLen); ^ ./zstd_zlibwrapper.c:1201:1: error: unknown type name ‘orig_deflateBound’ orig_deflateBound zlib_deflateBound; ^ ./zstd_zlibwrapper.c: In function ‘deflateBound’: ./zstd_zlibwrapper.c:1207:24: error: ‘orig_deflateBound’ undeclared (first use in this function) zlib_deflateBound = (orig_deflateBound) dlsym(RTLD_NEXT,"deflateBound"); ^ ./zstd_zlibwrapper.c:1207:43: error: expected ‘;’ before ‘dlsym’ zlib_deflateBound = (orig_deflateBound) dlsym(RTLD_NEXT,"deflateBound"); ^ ./zstd_zlibwrapper.c:1210:26: error: called object ‘zlib_deflateBound’ is not a function or function pointer return zlib_deflateBound(strm, sourceLen); ^ ./zstd_zlibwrapper.c:1201:19: note: declared here orig_deflateBound zlib_deflateBound; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1212:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflateParams)(z_streamp strm, int level, int strategy); ^ ./zstd_zlibwrapper.c:1213:1: error: unknown type name ‘orig_deflateParams’ orig_deflateParams zlib_deflateParams; ^ ./zstd_zlibwrapper.c: In function ‘deflateParams’: ./zstd_zlibwrapper.c:1220:25: error: ‘orig_deflateParams’ undeclared (first use in this function) zlib_deflateParams = (orig_deflateParams) dlsym(RTLD_NEXT,"deflateParams"); ^ ./zstd_zlibwrapper.c:1220:45: error: expected ‘;’ before ‘dlsym’ zlib_deflateParams = (orig_deflateParams) dlsym(RTLD_NEXT,"deflateParams"); ^ ./zstd_zlibwrapper.c:1223:27: error: called object ‘zlib_deflateParams’ is not a function or function pointer return zlib_deflateParams(strm, level, strategy); ^ ./zstd_zlibwrapper.c:1213:20: note: declared here orig_deflateParams zlib_deflateParams; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1225:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateInit_)(z_streamp strm, const char *version, int stream_size); ^ ./zstd_zlibwrapper.c:1226:1: error: unknown type name ‘orig_inflateInit_’ orig_inflateInit_ zlib_inflateInit_; ^ ./zstd_zlibwrapper.c: In function ‘inflateInit_’: ./zstd_zlibwrapper.c:1232:24: error: ‘orig_inflateInit_’ undeclared (first use in this function) zlib_inflateInit_ = (orig_inflateInit_) dlsym(RTLD_NEXT,"inflateInit_"); ^ ./zstd_zlibwrapper.c:1232:43: error: expected ‘;’ before ‘dlsym’ zlib_inflateInit_ = (orig_inflateInit_) dlsym(RTLD_NEXT,"inflateInit_"); ^ ./zstd_zlibwrapper.c:1235:26: error: called object ‘zlib_inflateInit_’ is not a function or function pointer return zlib_inflateInit_(strm, version, stream_size); ^ ./zstd_zlibwrapper.c:1226:19: note: declared here orig_inflateInit_ zlib_inflateInit_; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1237:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateInit2_)(z_streamp strm, int windowBits, const char *version, int stream_size); ^ ./zstd_zlibwrapper.c:1238:1: error: unknown type name ‘orig_inflateInit2_’ orig_inflateInit2_ zlib_inflateInit2_; ^ ./zstd_zlibwrapper.c: In function ‘inflateInit2_’: ./zstd_zlibwrapper.c:1244:25: error: ‘orig_inflateInit2_’ undeclared (first use in this function) zlib_inflateInit2_ = (orig_inflateInit2_) dlsym(RTLD_NEXT,"inflateInit2_"); ^ ./zstd_zlibwrapper.c:1244:45: error: expected ‘;’ before ‘dlsym’ zlib_inflateInit2_ = (orig_inflateInit2_) dlsym(RTLD_NEXT,"inflateInit2_"); ^ ./zstd_zlibwrapper.c:1247:27: error: called object ‘zlib_inflateInit2_’ is not a function or function pointer return zlib_inflateInit2_(strm, windowBits, version, stream_size); ^ ./zstd_zlibwrapper.c:1238:20: note: declared here orig_inflateInit2_ zlib_inflateInit2_; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1249:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateReset)(z_streamp strm); ^ ./zstd_zlibwrapper.c:1250:1: error: unknown type name ‘orig_inflateReset’ orig_inflateReset zlib_inflateReset; ^ ./zstd_zlibwrapper.c: In function ‘inflateReset’: ./zstd_zlibwrapper.c:1255:24: error: ‘orig_inflateReset’ undeclared (first use in this function) zlib_inflateReset = (orig_inflateReset) dlsym(RTLD_NEXT,"inflateReset"); ^ ./zstd_zlibwrapper.c:1255:43: error: expected ‘;’ before ‘dlsym’ zlib_inflateReset = (orig_inflateReset) dlsym(RTLD_NEXT,"inflateReset"); ^ ./zstd_zlibwrapper.c:1258:26: error: called object ‘zlib_inflateReset’ is not a function or function pointer return zlib_inflateReset(strm); ^ ./zstd_zlibwrapper.c:1250:19: note: declared here orig_inflateReset zlib_inflateReset; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1260:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateReset2)(z_streamp strm, int windowBits); ^ ./zstd_zlibwrapper.c:1261:1: error: unknown type name ‘orig_inflateReset2’ orig_inflateReset2 zlib_inflateReset2; ^ ./zstd_zlibwrapper.c: In function ‘inflateReset2’: ./zstd_zlibwrapper.c:1267:25: error: ‘orig_inflateReset2’ undeclared (first use in this function) zlib_inflateReset2 = (orig_inflateReset2) dlsym(RTLD_NEXT,"inflateReset2"); ^ ./zstd_zlibwrapper.c:1267:45: error: expected ‘;’ before ‘dlsym’ zlib_inflateReset2 = (orig_inflateReset2) dlsym(RTLD_NEXT,"inflateReset2"); ^ ./zstd_zlibwrapper.c:1270:27: error: called object ‘zlib_inflateReset2’ is not a function or function pointer return zlib_inflateReset2(strm, windowBits); ^ ./zstd_zlibwrapper.c:1261:20: note: declared here orig_inflateReset2 zlib_inflateReset2; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1272:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateSetDictionary)(z_streamp strm, const Bytef *dictionary, uInt dictLength); ^ ./zstd_zlibwrapper.c:1273:1: error: unknown type name ‘orig_inflateSetDictionary’ orig_inflateSetDictionary zlib_inflateSetDictionary; ^ ./zstd_zlibwrapper.c: In function ‘inflateSetDictionary’: ./zstd_zlibwrapper.c:1280:32: error: ‘orig_inflateSetDictionary’ undeclared (first use in this function) zlib_inflateSetDictionary = (orig_inflateSetDictionary) dlsym(RTLD_NEXT,"inflateSetDictionary"); ^ ./zstd_zlibwrapper.c:1280:59: error: expected ‘;’ before ‘dlsym’ zlib_inflateSetDictionary = (orig_inflateSetDictionary) dlsym(RTLD_NEXT,"inflateSetDictionary"); ^ ./zstd_zlibwrapper.c:1283:34: error: called object ‘zlib_inflateSetDictionary’ is not a function or function pointer return zlib_inflateSetDictionary(strm, dictionary, dictLength); ^ ./zstd_zlibwrapper.c:1273:27: note: declared here orig_inflateSetDictionary zlib_inflateSetDictionary; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1285:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflate)(z_streamp strm, int flush); ^ ./zstd_zlibwrapper.c:1286:1: error: unknown type name ‘orig_inflate’ orig_inflate zlib_inflate; ^ ./zstd_zlibwrapper.c: In function ‘inflate’: ./zstd_zlibwrapper.c:1291:19: error: ‘orig_inflate’ undeclared (first use in this function) zlib_inflate = (orig_inflate) dlsym(RTLD_NEXT,"inflate"); ^ ./zstd_zlibwrapper.c:1291:33: error: expected ‘;’ before ‘dlsym’ zlib_inflate = (orig_inflate) dlsym(RTLD_NEXT,"inflate"); ^ ./zstd_zlibwrapper.c:1294:21: error: called object ‘zlib_inflate’ is not a function or function pointer return zlib_inflate(strm, flush); ^ ./zstd_zlibwrapper.c:1286:14: note: declared here orig_inflate zlib_inflate; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1296:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateEnd)(z_streamp strm); ^ ./zstd_zlibwrapper.c:1297:1: error: unknown type name ‘orig_inflateEnd’ orig_inflateEnd zlib_inflateEnd; ^ ./zstd_zlibwrapper.c: In function ‘inflateEnd’: ./zstd_zlibwrapper.c:1302:22: error: ‘orig_inflateEnd’ undeclared (first use in this function) zlib_inflateEnd = (orig_inflateEnd) dlsym(RTLD_NEXT,"inflateEnd"); ^ ./zstd_zlibwrapper.c:1302:39: error: expected ‘;’ before ‘dlsym’ zlib_inflateEnd = (orig_inflateEnd) dlsym(RTLD_NEXT,"inflateEnd"); ^ ./zstd_zlibwrapper.c:1305:24: error: called object ‘zlib_inflateEnd’ is not a function or function pointer return zlib_inflateEnd(strm); ^ ./zstd_zlibwrapper.c:1297:17: note: declared here orig_inflateEnd zlib_inflateEnd; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1307:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateSync)(z_streamp strm); ^ ./zstd_zlibwrapper.c:1308:1: error: unknown type name ‘orig_inflateSync’ orig_inflateSync zlib_inflateSync; ^ ./zstd_zlibwrapper.c: In function ‘inflateSync’: ./zstd_zlibwrapper.c:1313:23: error: ‘orig_inflateSync’ undeclared (first use in this function) zlib_inflateSync = (orig_inflateSync) dlsym(RTLD_NEXT,"inflateSync"); ^ ./zstd_zlibwrapper.c:1313:41: error: expected ‘;’ before ‘dlsym’ zlib_inflateSync = (orig_inflateSync) dlsym(RTLD_NEXT,"inflateSync"); ^ ./zstd_zlibwrapper.c:1316:25: error: called object ‘zlib_inflateSync’ is not a function or function pointer return zlib_inflateSync(strm); ^ ./zstd_zlibwrapper.c:1308:18: note: declared here orig_inflateSync zlib_inflateSync; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1318:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflateCopy)(z_streamp dest, z_streamp source); ^ ./zstd_zlibwrapper.c:1319:1: error: unknown type name ‘orig_deflateCopy’ orig_deflateCopy zlib_deflateCopy; ^ ./zstd_zlibwrapper.c: In function ‘deflateCopy’: ./zstd_zlibwrapper.c:1325:23: error: ‘orig_deflateCopy’ undeclared (first use in this function) zlib_deflateCopy = (orig_deflateCopy) dlsym(RTLD_NEXT,"deflateCopy"); ^ ./zstd_zlibwrapper.c:1325:41: error: expected ‘;’ before ‘dlsym’ zlib_deflateCopy = (orig_deflateCopy) dlsym(RTLD_NEXT,"deflateCopy"); ^ ./zstd_zlibwrapper.c:1328:25: error: called object ‘zlib_deflateCopy’ is not a function or function pointer return zlib_deflateCopy(dest, source); ^ ./zstd_zlibwrapper.c:1319:18: note: declared here orig_deflateCopy zlib_deflateCopy; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1330:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflateTune)(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain); ^ ./zstd_zlibwrapper.c:1331:1: error: unknown type name ‘orig_deflateTune’ orig_deflateTune zlib_deflateTune; ^ ./zstd_zlibwrapper.c: In function ‘deflateTune’: ./zstd_zlibwrapper.c:1340:23: error: ‘orig_deflateTune’ undeclared (first use in this function) zlib_deflateTune = (orig_deflateTune) dlsym(RTLD_NEXT,"deflateTune"); ^ ./zstd_zlibwrapper.c:1340:41: error: expected ‘;’ before ‘dlsym’ zlib_deflateTune = (orig_deflateTune) dlsym(RTLD_NEXT,"deflateTune"); ^ ./zstd_zlibwrapper.c:1343:25: error: called object ‘zlib_deflateTune’ is not a function or function pointer return zlib_deflateTune(strm, good_length, max_lazy, nice_length, max_chain); ^ ./zstd_zlibwrapper.c:1331:18: note: declared here orig_deflateTune zlib_deflateTune; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1345:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflatePending)(z_streamp strm, unsigned *pending, int *bits); ^ ./zstd_zlibwrapper.c:1346:1: error: unknown type name ‘orig_deflatePending’ orig_deflatePending zlib_deflatePending; ^ ./zstd_zlibwrapper.c: In function ‘deflatePending’: ./zstd_zlibwrapper.c:1353:26: error: ‘orig_deflatePending’ undeclared (first use in this function) zlib_deflatePending = (orig_deflatePending) dlsym(RTLD_NEXT,"deflatePending"); ^ ./zstd_zlibwrapper.c:1353:47: error: expected ‘;’ before ‘dlsym’ zlib_deflatePending = (orig_deflatePending) dlsym(RTLD_NEXT,"deflatePending"); ^ ./zstd_zlibwrapper.c:1356:28: error: called object ‘zlib_deflatePending’ is not a function or function pointer return zlib_deflatePending(strm, pending, bits); ^ ./zstd_zlibwrapper.c:1346:21: note: declared here orig_deflatePending zlib_deflatePending; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1358:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflatePrime)(z_streamp strm, int bits, int value); ^ ./zstd_zlibwrapper.c:1359:1: error: unknown type name ‘orig_deflatePrime’ orig_deflatePrime zlib_deflatePrime; ^ ./zstd_zlibwrapper.c: In function ‘deflatePrime’: ./zstd_zlibwrapper.c:1366:24: error: ‘orig_deflatePrime’ undeclared (first use in this function) zlib_deflatePrime = (orig_deflatePrime) dlsym(RTLD_NEXT,"deflatePrime"); ^ ./zstd_zlibwrapper.c:1366:43: error: expected ‘;’ before ‘dlsym’ zlib_deflatePrime = (orig_deflatePrime) dlsym(RTLD_NEXT,"deflatePrime"); ^ ./zstd_zlibwrapper.c:1369:26: error: called object ‘zlib_deflatePrime’ is not a function or function pointer return zlib_deflatePrime(strm, bits, value); ^ ./zstd_zlibwrapper.c:1359:19: note: declared here orig_deflatePrime zlib_deflatePrime; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1371:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_deflateSetHeader)(z_streamp strm, gz_headerp head); ^ ./zstd_zlibwrapper.c:1372:1: error: unknown type name ‘orig_deflateSetHeader’ orig_deflateSetHeader zlib_deflateSetHeader; ^ ./zstd_zlibwrapper.c: In function ‘deflateSetHeader’: ./zstd_zlibwrapper.c:1378:28: error: ‘orig_deflateSetHeader’ undeclared (first use in this function) zlib_deflateSetHeader = (orig_deflateSetHeader) dlsym(RTLD_NEXT,"deflateSetHeader"); ^ ./zstd_zlibwrapper.c:1378:51: error: expected ‘;’ before ‘dlsym’ zlib_deflateSetHeader = (orig_deflateSetHeader) dlsym(RTLD_NEXT,"deflateSetHeader"); ^ ./zstd_zlibwrapper.c:1381:30: error: called object ‘zlib_deflateSetHeader’ is not a function or function pointer return zlib_deflateSetHeader(strm, head); ^ ./zstd_zlibwrapper.c:1372:23: note: declared here orig_deflateSetHeader zlib_deflateSetHeader; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1383:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateGetDictionary)(z_streamp strm, Bytef *dictionary, uInt *dictLength); ^ ./zstd_zlibwrapper.c:1384:1: error: unknown type name ‘orig_inflateGetDictionary’ orig_inflateGetDictionary zlib_inflateGetDictionary; ^ ./zstd_zlibwrapper.c: In function ‘inflateGetDictionary’: ./zstd_zlibwrapper.c:1391:32: error: ‘orig_inflateGetDictionary’ undeclared (first use in this function) zlib_inflateGetDictionary = (orig_inflateGetDictionary) dlsym(RTLD_NEXT,"inflateGetDictionary"); ^ ./zstd_zlibwrapper.c:1391:59: error: expected ‘;’ before ‘dlsym’ zlib_inflateGetDictionary = (orig_inflateGetDictionary) dlsym(RTLD_NEXT,"inflateGetDictionary"); ^ ./zstd_zlibwrapper.c:1394:34: error: called object ‘zlib_inflateGetDictionary’ is not a function or function pointer return zlib_inflateGetDictionary(strm, dictionary, dictLength); ^ ./zstd_zlibwrapper.c:1384:27: note: declared here orig_inflateGetDictionary zlib_inflateGetDictionary; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1396:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateCopy)(z_streamp dest, z_streamp source); ^ ./zstd_zlibwrapper.c:1397:1: error: unknown type name ‘orig_inflateCopy’ orig_inflateCopy zlib_inflateCopy; ^ ./zstd_zlibwrapper.c: In function ‘inflateCopy’: ./zstd_zlibwrapper.c:1403:23: error: ‘orig_inflateCopy’ undeclared (first use in this function) zlib_inflateCopy = (orig_inflateCopy) dlsym(RTLD_NEXT,"inflateCopy"); ^ ./zstd_zlibwrapper.c:1403:41: error: expected ‘;’ before ‘dlsym’ zlib_inflateCopy = (orig_inflateCopy) dlsym(RTLD_NEXT,"inflateCopy"); ^ ./zstd_zlibwrapper.c:1406:25: error: called object ‘zlib_inflateCopy’ is not a function or function pointer return zlib_inflateCopy(dest, source); ^ ./zstd_zlibwrapper.c:1397:18: note: declared here orig_inflateCopy zlib_inflateCopy; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1408:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’ typdef long (*orig_inflateMark)(z_streamp strm); ^ ./zstd_zlibwrapper.c:1409:1: error: unknown type name ‘orig_inflateMark’ orig_inflateMark zlib_inflateMark; ^ ./zstd_zlibwrapper.c: In function ‘inflateMark’: ./zstd_zlibwrapper.c:1414:23: error: ‘orig_inflateMark’ undeclared (first use in this function) zlib_inflateMark = (orig_inflateMark) dlsym(RTLD_NEXT,"inflateMark"); ^ ./zstd_zlibwrapper.c:1414:41: error: expected ‘;’ before ‘dlsym’ zlib_inflateMark = (orig_inflateMark) dlsym(RTLD_NEXT,"inflateMark"); ^ ./zstd_zlibwrapper.c:1417:25: error: called object ‘zlib_inflateMark’ is not a function or function pointer return zlib_inflateMark(strm); ^ ./zstd_zlibwrapper.c:1409:18: note: declared here orig_inflateMark zlib_inflateMark; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1419:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflatePrime)(z_streamp strm, int bits, int value); ^ ./zstd_zlibwrapper.c:1420:1: error: unknown type name ‘orig_inflatePrime’ orig_inflatePrime zlib_inflatePrime; ^ ./zstd_zlibwrapper.c: In function ‘inflatePrime’: ./zstd_zlibwrapper.c:1427:24: error: ‘orig_inflatePrime’ undeclared (first use in this function) zlib_inflatePrime = (orig_inflatePrime) dlsym(RTLD_NEXT,"inflatePrime"); ^ ./zstd_zlibwrapper.c:1427:43: error: expected ‘;’ before ‘dlsym’ zlib_inflatePrime = (orig_inflatePrime) dlsym(RTLD_NEXT,"inflatePrime"); ^ ./zstd_zlibwrapper.c:1430:26: error: called object ‘zlib_inflatePrime’ is not a function or function pointer return zlib_inflatePrime(strm, bits, value); ^ ./zstd_zlibwrapper.c:1420:19: note: declared here orig_inflatePrime zlib_inflatePrime; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1432:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateGetHeader)(z_streamp strm, gz_headerp head); ^ ./zstd_zlibwrapper.c:1433:1: error: unknown type name ‘orig_inflateGetHeader’ orig_inflateGetHeader zlib_inflateGetHeader; ^ ./zstd_zlibwrapper.c: In function ‘inflateGetHeader’: ./zstd_zlibwrapper.c:1439:28: error: ‘orig_inflateGetHeader’ undeclared (first use in this function) zlib_inflateGetHeader = (orig_inflateGetHeader) dlsym(RTLD_NEXT,"inflateGetHeader"); ^ ./zstd_zlibwrapper.c:1439:51: error: expected ‘;’ before ‘dlsym’ zlib_inflateGetHeader = (orig_inflateGetHeader) dlsym(RTLD_NEXT,"inflateGetHeader"); ^ ./zstd_zlibwrapper.c:1442:30: error: called object ‘zlib_inflateGetHeader’ is not a function or function pointer return zlib_inflateGetHeader(strm, head); ^ ./zstd_zlibwrapper.c:1433:23: note: declared here orig_inflateGetHeader zlib_inflateGetHeader; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1444:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateBackInit_)(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size); ^ ./zstd_zlibwrapper.c:1445:1: error: unknown type name ‘orig_inflateBackInit_’ orig_inflateBackInit_ zlib_inflateBackInit_; ^ ./zstd_zlibwrapper.c: In function ‘inflateBackInit_’: ./zstd_zlibwrapper.c:1453:28: error: ‘orig_inflateBackInit_’ undeclared (first use in this function) zlib_inflateBackInit_ = (orig_inflateBackInit_) dlsym(RTLD_NEXT,"inflateBackInit_"); ^ ./zstd_zlibwrapper.c:1453:51: error: expected ‘;’ before ‘dlsym’ zlib_inflateBackInit_ = (orig_inflateBackInit_) dlsym(RTLD_NEXT,"inflateBackInit_"); ^ ./zstd_zlibwrapper.c:1456:30: error: called object ‘zlib_inflateBackInit_’ is not a function or function pointer return zlib_inflateBackInit_(strm, windowBits, window, version, stream_size); ^ ./zstd_zlibwrapper.c:1445:23: note: declared here orig_inflateBackInit_ zlib_inflateBackInit_; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1458:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateBack)(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc); ^ ./zstd_zlibwrapper.c:1459:1: error: unknown type name ‘orig_inflateBack’ orig_inflateBack zlib_inflateBack; ^ ./zstd_zlibwrapper.c: In function ‘inflateBack’: ./zstd_zlibwrapper.c:1466:23: error: ‘orig_inflateBack’ undeclared (first use in this function) zlib_inflateBack = (orig_inflateBack) dlsym(RTLD_NEXT,"inflateBack"); ^ ./zstd_zlibwrapper.c:1466:41: error: expected ‘;’ before ‘dlsym’ zlib_inflateBack = (orig_inflateBack) dlsym(RTLD_NEXT,"inflateBack"); ^ ./zstd_zlibwrapper.c:1469:25: error: called object ‘zlib_inflateBack’ is not a function or function pointer return zlib_inflateBack(strm, in, in_desc, out, out_desc); ^ ./zstd_zlibwrapper.c:1459:18: note: declared here orig_inflateBack zlib_inflateBack; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1471:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_inflateBackEnd)(z_streamp strm); ^ ./zstd_zlibwrapper.c:1472:1: error: unknown type name ‘orig_inflateBackEnd’ orig_inflateBackEnd zlib_inflateBackEnd; ^ ./zstd_zlibwrapper.c: In function ‘inflateBackEnd’: ./zstd_zlibwrapper.c:1477:26: error: ‘orig_inflateBackEnd’ undeclared (first use in this function) zlib_inflateBackEnd = (orig_inflateBackEnd) dlsym(RTLD_NEXT,"inflateBackEnd"); ^ ./zstd_zlibwrapper.c:1477:47: error: expected ‘;’ before ‘dlsym’ zlib_inflateBackEnd = (orig_inflateBackEnd) dlsym(RTLD_NEXT,"inflateBackEnd"); ^ ./zstd_zlibwrapper.c:1480:28: error: called object ‘zlib_inflateBackEnd’ is not a function or function pointer return zlib_inflateBackEnd(strm); ^ ./zstd_zlibwrapper.c:1472:21: note: declared here orig_inflateBackEnd zlib_inflateBackEnd; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1482:1: error: unknown type name ‘typdef’ typdef uLong (*orig_zlibCompileFlags)(void); ^ ./zstd_zlibwrapper.c:1482:15: error: expected declaration specifiers or ‘...’ before ‘*’ token typdef uLong (*orig_zlibCompileFlags)(void); ^ ./zstd_zlibwrapper.c:1483:1: error: unknown type name ‘orig_zlibCompileFlags’ orig_zlibCompileFlags zlib_zlibCompileFlags; ^ ./zstd_zlibwrapper.c: In function ‘zlibCompileFlags’: ./zstd_zlibwrapper.c:1488:28: error: ‘orig_zlibCompileFlags’ undeclared (first use in this function) zlib_zlibCompileFlags = (orig_zlibCompileFlags) dlsym(RTLD_NEXT,"zlibCompileFlags"); ^ ./zstd_zlibwrapper.c:1488:51: error: expected ‘;’ before ‘dlsym’ zlib_zlibCompileFlags = (orig_zlibCompileFlags) dlsym(RTLD_NEXT,"zlibCompileFlags"); ^ ./zstd_zlibwrapper.c:1489:29: error: expected expression before ‘void’ return z_zlibCompileFlags(void); ^ ./zstd_zlibwrapper.c:1489:29: error: too many arguments to function ‘z_zlibCompileFlags’ ./zstd_zlibwrapper.c:1012:23: note: declared here ZEXTERN uLong ZEXPORT z_zlibCompileFlags OF((void)) ^ ./zstd_zlibwrapper.c:1491:31: error: expected expression before ‘void’ return zlib_zlibCompileFlags(void); ^ ./zstd_zlibwrapper.c:1491:30: error: called object ‘zlib_zlibCompileFlags’ is not a function or function pointer return zlib_zlibCompileFlags(void); ^ ./zstd_zlibwrapper.c:1483:23: note: declared here orig_zlibCompileFlags zlib_zlibCompileFlags; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1493:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_compress)(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); ^ ./zstd_zlibwrapper.c:1494:1: error: unknown type name ‘orig_compress’ orig_compress zlib_compress; ^ ./zstd_zlibwrapper.c: In function ‘compress’: ./zstd_zlibwrapper.c:1500:20: error: ‘orig_compress’ undeclared (first use in this function) zlib_compress = (orig_compress) dlsym(RTLD_NEXT,"compress"); ^ ./zstd_zlibwrapper.c:1500:35: error: expected ‘;’ before ‘dlsym’ zlib_compress = (orig_compress) dlsym(RTLD_NEXT,"compress"); ^ ./zstd_zlibwrapper.c:1503:22: error: called object ‘zlib_compress’ is not a function or function pointer return zlib_compress(dest, destLen, source, sourceLen); ^ ./zstd_zlibwrapper.c:1494:15: note: declared here orig_compress zlib_compress; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1505:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_compress2)(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level); ^ ./zstd_zlibwrapper.c:1506:1: error: unknown type name ‘orig_compress2’ orig_compress2 zlib_compress2; ^ ./zstd_zlibwrapper.c: In function ‘compress2’: ./zstd_zlibwrapper.c:1513:21: error: ‘orig_compress2’ undeclared (first use in this function) zlib_compress2 = (orig_compress2) dlsym(RTLD_NEXT,"compress2"); ^ ./zstd_zlibwrapper.c:1513:37: error: expected ‘;’ before ‘dlsym’ zlib_compress2 = (orig_compress2) dlsym(RTLD_NEXT,"compress2"); ^ ./zstd_zlibwrapper.c:1516:23: error: called object ‘zlib_compress2’ is not a function or function pointer return zlib_compress2(dest, destLen, source, sourceLen, level); ^ ./zstd_zlibwrapper.c:1506:16: note: declared here orig_compress2 zlib_compress2; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1518:1: error: unknown type name ‘typdef’ typdef uLong (*orig_compressBound)(uLong sourceLen); ^ ./zstd_zlibwrapper.c:1518:15: error: expected declaration specifiers or ‘...’ before ‘*’ token typdef uLong (*orig_compressBound)(uLong sourceLen); ^ ./zstd_zlibwrapper.c:1519:1: error: unknown type name ‘orig_compressBound’ orig_compressBound zlib_compressBound; ^ ./zstd_zlibwrapper.c: In function ‘compressBound’: ./zstd_zlibwrapper.c:1524:25: error: ‘orig_compressBound’ undeclared (first use in this function) zlib_compressBound = (orig_compressBound) dlsym(RTLD_NEXT,"compressBound"); ^ ./zstd_zlibwrapper.c:1524:45: error: expected ‘;’ before ‘dlsym’ zlib_compressBound = (orig_compressBound) dlsym(RTLD_NEXT,"compressBound"); ^ ./zstd_zlibwrapper.c:1527:27: error: called object ‘zlib_compressBound’ is not a function or function pointer return zlib_compressBound(sourceLen); ^ ./zstd_zlibwrapper.c:1519:20: note: declared here orig_compressBound zlib_compressBound; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1529:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ typdef int (*orig_uncompress)(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); ^ ./zstd_zlibwrapper.c:1530:1: error: unknown type name ‘orig_uncompress’ orig_uncompress zlib_uncompress; ^ ./zstd_zlibwrapper.c: In function ‘uncompress’: ./zstd_zlibwrapper.c:1536:22: error: ‘orig_uncompress’ undeclared (first use in this function) zlib_uncompress = (orig_uncompress) dlsym(RTLD_NEXT,"uncompress"); ^ ./zstd_zlibwrapper.c:1536:39: error: expected ‘;’ before ‘dlsym’ zlib_uncompress = (orig_uncompress) dlsym(RTLD_NEXT,"uncompress"); ^ ./zstd_zlibwrapper.c:1539:24: error: called object ‘zlib_uncompress’ is not a function or function pointer return zlib_uncompress(dest, destLen, source, sourceLen); ^ ./zstd_zlibwrapper.c:1530:17: note: declared here orig_uncompress zlib_uncompress; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1541:1: error: unknown type name ‘typdef’ typdef uLong (*orig_adler32)(uLong adler, const Bytef *buf, uInt len); ^ ./zstd_zlibwrapper.c:1541:15: error: expected declaration specifiers or ‘...’ before ‘*’ token typdef uLong (*orig_adler32)(uLong adler, const Bytef *buf, uInt len); ^ ./zstd_zlibwrapper.c:1542:1: error: unknown type name ‘orig_adler32’ orig_adler32 zlib_adler32; ^ ./zstd_zlibwrapper.c: In function ‘adler32’: ./zstd_zlibwrapper.c:1547:19: error: ‘orig_adler32’ undeclared (first use in this function) zlib_adler32 = (orig_adler32) dlsym(RTLD_NEXT,"adler32"); ^ ./zstd_zlibwrapper.c:1547:33: error: expected ‘;’ before ‘dlsym’ zlib_adler32 = (orig_adler32) dlsym(RTLD_NEXT,"adler32"); ^ ./zstd_zlibwrapper.c:1550:21: error: called object ‘zlib_adler32’ is not a function or function pointer return zlib_adler32(adler, buf, len); ^ ./zstd_zlibwrapper.c:1542:14: note: declared here orig_adler32 zlib_adler32; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1552:1: error: unknown type name ‘typdef’ typdef uLong (*orig_crc32)(uLong crc, const Bytef *buf, uInt len); ^ ./zstd_zlibwrapper.c:1552:15: error: expected declaration specifiers or ‘...’ before ‘*’ token typdef uLong (*orig_crc32)(uLong crc, const Bytef *buf, uInt len); ^ ./zstd_zlibwrapper.c:1553:1: error: unknown type name ‘orig_crc32’ orig_crc32 zlib_crc32; ^ ./zstd_zlibwrapper.c: In function ‘crc32’: ./zstd_zlibwrapper.c:1558:17: error: ‘orig_crc32’ undeclared (first use in this function) zlib_crc32 = (orig_crc32) dlsym(RTLD_NEXT,"crc32"); ^ ./zstd_zlibwrapper.c:1558:29: error: expected ‘;’ before ‘dlsym’ zlib_crc32 = (orig_crc32) dlsym(RTLD_NEXT,"crc32"); ^ ./zstd_zlibwrapper.c:1561:19: error: called object ‘zlib_crc32’ is not a function or function pointer return zlib_crc32(crc, buf, len); ^ ./zstd_zlibwrapper.c:1553:12: note: declared here orig_crc32 zlib_crc32; ^ ./zstd_zlibwrapper.c: At top level: ./zstd_zlibwrapper.c:1563:1: error: unknown type name ‘typdef’ typdef uLong (*orig_adler32_z)(uLong adler, const Bytef *buf, z_size_t len); ^ ./zstd_zlibwrapper.c:1563:15: error: expected declaration specifiers or ‘...’ before ‘*’ token typdef uLong (*orig_adler32_z)(uLong adler, const Bytef *buf, z_size_t len); ^ ./zstd_zlibwrapper.c:1564:1: error: unknown type name ‘orig_adler32_z’ orig_adler32_z zlib_adler32_z; ^ In file included from /usr/include/zlib.h:34:0, from ./zstd_zlibwrapper.c:27: ./zstd_zlibwrapper.c:1565:68: error: unknown type name ‘z_size_t’ ZEXTERN uLong ZEXPORT adler32_z OF((uLong adler, const Bytef *buf, z_size_t len)) ^ ./zstd_zlibwrapper.c:1574:1: error: unknown type name ‘typdef’ typdef uLong (*orig_crc32_z)(uLong crc, const Bytef *buf, z_size_t len); ^ ./zstd_zlibwrapper.c:1574:15: error: expected declaration specifiers or ‘...’ before ‘*’ token typdef uLong (*orig_crc32_z)(uLong crc, const Bytef *buf, z_size_t len); ^ ./zstd_zlibwrapper.c:1575:1: error: unknown type name ‘orig_crc32_z’ orig_crc32_z zlib_crc32_z; ^ In file included from /usr/include/zlib.h:34:0, from ./zstd_zlibwrapper.c:27: ./zstd_zlibwrapper.c:1576:64: error: unknown type name ‘z_size_t’ ZEXTERN uLong ZEXPORT crc32_z OF((uLong crc, const Bytef *buf, z_size_t len)) ^ ./zstd_zlibwrapper.c:1585:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’ typdef const z_crc_t FAR * (*orig_get_crc_table)(void); ^ ./zstd_zlibwrapper.c:1586:1: error: unknown type name ‘orig_get_crc_table’ orig_get_crc_table zlib_get_crc_table; ^ ./zstd_zlibwrapper.c: In function ‘get_crc_table’: ./zstd_zlibwrapper.c:1591:25: error: ‘orig_get_crc_table’ undeclared (first use in this function) zlib_get_crc_table = (orig_get_crc_table) dlsym(RTLD_NEXT,"get_crc_table"); ^ ./zstd_zlibwrapper.c:1591:45: error: expected ‘;’ before ‘dlsym’ zlib_get_crc_table = (orig_get_crc_table) dlsym(RTLD_NEXT,"get_crc_table"); ^ ./zstd_zlibwrapper.c:1592:26: error: expected expression before ‘void’ return z_get_crc_table(void); ^ ./zstd_zlibwrapper.c:1592:26: error: too many arguments to function ‘z_get_crc_table’ ./zstd_zlibwrapper.c:1109:37: note: declared here ZEXTERN const z_crc_t FAR * ZEXPORT z_get_crc_table OF((void)) ^ ./zstd_zlibwrapper.c:1594:28: error: expected expression before ‘void’ return zlib_get_crc_table(void); ^ ./zstd_zlibwrapper.c:1594:27: error: called object ‘zlib_get_crc_table’ is not a function or function pointer return zlib_get_crc_table(void); ^ ./zstd_zlibwrapper.c:1586:20: note: declared here orig_get_crc_table zlib_get_crc_table; ^ /usr/include/zlib.h: In function ‘zlibVersion’: ./zstd_zlibwrapper.c:1127:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateInit_’: ./zstd_zlibwrapper.c:1139:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateInit2_’: ./zstd_zlibwrapper.c:1153:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateReset’: ./zstd_zlibwrapper.c:1164:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateSetDictionary’: ./zstd_zlibwrapper.c:1177:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflate’: ./zstd_zlibwrapper.c:1188:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateEnd’: ./zstd_zlibwrapper.c:1199:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateBound’: ./zstd_zlibwrapper.c:1211:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateParams’: ./zstd_zlibwrapper.c:1224:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateInit_’: ./zstd_zlibwrapper.c:1236:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateInit2_’: ./zstd_zlibwrapper.c:1248:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateReset’: ./zstd_zlibwrapper.c:1259:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateReset2’: ./zstd_zlibwrapper.c:1271:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateSetDictionary’: ./zstd_zlibwrapper.c:1284:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflate’: ./zstd_zlibwrapper.c:1295:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateEnd’: ./zstd_zlibwrapper.c:1306:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateSync’: ./zstd_zlibwrapper.c:1317:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateCopy’: ./zstd_zlibwrapper.c:1329:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateTune’: ./zstd_zlibwrapper.c:1344:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflatePending’: ./zstd_zlibwrapper.c:1357:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflatePrime’: ./zstd_zlibwrapper.c:1370:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘deflateSetHeader’: ./zstd_zlibwrapper.c:1382:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateGetDictionary’: ./zstd_zlibwrapper.c:1395:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateCopy’: ./zstd_zlibwrapper.c:1407:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateMark’: ./zstd_zlibwrapper.c:1418:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflatePrime’: ./zstd_zlibwrapper.c:1431:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateGetHeader’: ./zstd_zlibwrapper.c:1443:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateBackInit_’: ./zstd_zlibwrapper.c:1457:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateBack’: ./zstd_zlibwrapper.c:1470:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘inflateBackEnd’: ./zstd_zlibwrapper.c:1481:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘zlibCompileFlags’: ./zstd_zlibwrapper.c:1492:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘compress’: ./zstd_zlibwrapper.c:1504:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘compress2’: ./zstd_zlibwrapper.c:1517:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘compressBound’: ./zstd_zlibwrapper.c:1528:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘uncompress’: ./zstd_zlibwrapper.c:1540:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘adler32’: ./zstd_zlibwrapper.c:1551:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘crc32’: ./zstd_zlibwrapper.c:1562:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /usr/include/zlib.h: In function ‘get_crc_table’: ./zstd_zlibwrapper.c:1595:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [zstd_zlibwrapper.o] Error 1