Re: Cannot compile mupdf

Alexander Hansen <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>

> On May 3, 2021, at 19:21, Marc Boxerman via Fink-beginners <[email protected]> wrote:
> 
> The directory is where Alex indicated.
> Running make from within the directory produces the following output:
> 
>   CC build/release/source/fitz/compress.o
> 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
> 
> I am not sure what command you want me to run manually.  Make again?
> 
> Marc

Run the command just before the failure from your build output, but with -MMD replaced by -MD, i.e. 

flag-sort cc -ffunction-sections -fdata-sections -Wsign-compare -pipe -O2 -DNDEBUG -fomit-frame-pointer  -Iinclude -MD -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.1flag-sort cc -ffunction-sections -fdata-sections -Wsign-compare -pipe -O2 -DNDEBUG -fomit-frame-pointer  -Iinclude -MD -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

_______________________________________________
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.