Cannot compile mupdf

Marc Boxerman via Fink-beginners <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>
I get an error when I try to update mupdf, an unidentified identifier error and an expected expression error:


 -I/sw/include/openjpeg-2.1
mkdir -p build/release/source/fitz/ ; flag-sort cc -ffunction-sections -fdata-sections -Wsign-compare -pipe -O2 -DNDEBUG -fomit-frame-pointer  -Iinclude -MMD -MP -o build/release/source/fitz/crypt-sha2.o -c source/fitz/crypt-sha2.c -Wall -Wdeclaration-after-statement  -I/sw/include/freetype2 -I/sw/include -I/sw/include/harfbuzz -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include -I/sw/include -DSHARE_JPEG -I/sw/include -DHAVE_LCMS2MT    -I/sw/include/openjpeg-2.1
source/fitz/compress.c:26:20: error: use of undeclared identifier 'z_const'; did
      you mean 'const'?
        stream.next_in = (z_const Bytef *)source;
                          ^~~~~~~
                          const
source/fitz/compress.c:26:20: error: expected expression
2 errors generated.
make: *** [Makefile:108: build/release/source/fitz/compress.o] Error 1
make: *** Waiting for unfinished jobs....
### execution of make failed, exit code 2
### execution of /tmp/fink.FHW5k failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-mupdf-1.18.0-2
(Reading database ... 325384 files and directories currently installed.)
Removing fink-buildlock-mupdf-1.18.0-2 ...
Failed: phase compiling: mupdf-1.18.0-2 failed


I’m running OS X 10.11.6.

I appreciate any help one can provide

Thanks,

Marc



_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.