firmware-mod-kit icon indicating copy to clipboard operation
firmware-mod-kit copied to clipboard

Unable to build Zlib

Open ghost opened this issue 4 years ago • 1 comments

ERROR:

ZLib.cpp:183:31: error: expected initializer before ‘OF’
  183 | ZEXTERN int ZEXPORT compress2 OF((Bytef *dest,   uLongf *destLen,
      |                               ^~
ZLib.cpp:246:32: error: expected initializer before ‘OF’
  246 | ZEXTERN int ZEXPORT uncompress OF((Bytef *dest,   uLongf *destLen,
      |                                ^~
make[2]: *** [makefile:34: ZLib.o] Error 1
make[1]: *** [Makefile:13: mksquashfs-lzma] Error 2
make: *** [Makefile:11: all] Error 2
Tools build failed! Check pre-requisites. Quitting...

It was first time running extract_firmware.sh so I had to build all the stuff. Any fix available?

My system:

OS: Gentoo Linux Kernel Version: 5.4.28-gentoo-x86_64 GCC Version: 9.3.0

ghost avatar Apr 23 '20 09:04 ghost

Replace all occurrences of that macro with _Z_OF, or find method declaration and replace there _Z_OF with OF.

reavertm avatar Nov 17 '22 22:11 reavertm