rampageX / firmware-mod-kit

Automatically exported from code.google.com/p/firmware-mod-kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to build Zlib

opened this issue · 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

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