Re: Cannot compile mupdf

Marc Boxerman via Fink-beginners <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>
Yes, I do.

cs50.h
libwpd-0.9
pcre2.h
pcre2posix.h

cs50 is a computer science class from Harvard.  Taking the class required installing its own light weight development environment that included a few C libraries.
I assume libwpd-0.9 is from a WordPerfect to Word Document converter.  It’s been years since I’ve used one.
I’m not familiar with the pcre files.

Marc


> On May 1, 2021, at 1:05 AM, Daniel Macks <[email protected]> wrote:
> 
> It sounds like your compiler is picking up an unexpected head from libz. It should be pulling /usr/include/zlib.h, which in turn pulls /usr/include/zlib.h. Do you have anything in /usr/local/include ?
> 
> dan
> 
> On 4/30/21, 3:57 PM, "Marc Boxerman" <[email protected]> wrote:
> 
>    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.