Re: Cannot compile mupdf
Marc Boxerman via Fink-beginners <[email protected]>
| Newsgroups | gmane.os.apple.fink.beginners |
|---|---|
| Message-ID | <[email protected]> |
Daniel, I’m pursuing option 2 before I move the directories in /usr/local out of the way. Unfortunately, I do not have a directory named src.build There is a directory called src under sw but there are no build directories within it, just zipped tar files. Marc > On May 2, 2021, at 4:38 PM, Daniel Macks <[email protected]> wrote: > > Apple's compiler automatically looks in /usr/local/{include,lib}, so things there can mask files expected to be found as part of the base OS X system. I don't see anything in mupdf that would access any of those, but couldn't hurt to rename those directories out-of-the-way. There's red-herring here: the the actual compiler command whose error you see is actually a few lines before what you quoted (notice mismatch of the .c filenames). Try cd'ing into the build directory, which I think would be /sw/src.build/mupdf-1.18.0-2/mupdf-1.18.0-source for you. Then run 'make' and see if you get the same error, but matched filenames in the command that is run. Assuming so, try to run that command manually (beginning with 'flag-sort cc'), but replace "-MMD" with "-MD". It should still fail the same way. But now source/fitz/compress.d will tell us the actual paths of all headers that the compiler loaded, so we can see what is unexpected. > > dan > > On 5/1/21, 10:55 AM, "Marc Boxerman" <[email protected]> wrote: > > 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