[gs-bugs] [Bug 691540] New: third party build fails

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Aug 9 04:46:05 UTC 2010


           Summary: third party build fails
           Product: MuPDF
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P4
         Component: mupdf
        AssignedTo: tor.andersson at artifex.com
        ReportedBy: henry.stiles at artifex.com
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0

cc -o build/debug/opj_bio.o -c thirdparty/openjpeg/libopenjpeg/bio.c -Ifitz
-Imupdf -Wall -pipe -g -I/usr/X11R6/include -m32 -Ithirdparty/jbig2dec
-Ithirdparty/openjpeg/libopenjpeg -Ithirdparty/jpeg -Ithirdparty/zlib
-Ithirdparty/freetype/include  -DOPJ_STATIC
In file included from thirdparty/openjpeg/libopenjpeg/opj_includes.h:104,
                 from thirdparty/openjpeg/libopenjpeg/bio.c:32:
thirdparty/openjpeg/libopenjpeg/opj_malloc.h:84:25: error: malloc.h: No such
file or directory
make: *** [build/debug/opj_bio.o] Error 1

uname -a
Darwin henry-stiles2s-macbook-pro.local 9.8.0 Darwin Kernel Version 9.8.0: Wed
Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

the header file malloc.h which can't be found is in /usr/include/malloc/ - note
the Makefile.osx makefile distributed with openjpeg compiles the code okay.  

I temporarily patched the code a follows, after which all was well on my mac

diff -r ./libopenjpeg/opj_malloc.h
< /* #define HAVE_MEMALIGN */
<             #include <malloc/malloc.h>        
> 			#define HAVE_MEMALIGN
> 			#include <malloc.h>		

but that's a hack for my machine, generally the third party zip should be
integrated better with mupdf.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list