Bug 687160

Summary: Ghostscript fails to compile jbig2dec on Solaris 9
Product: jbig2dec Reporter: Mario Antonio F. <orion07>
Component: Build ProcessAssignee: Ralph Giles <ralph.giles>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: Sun   
OS: Solaris   
Customer: Word Size: ---

Description Mario Antonio F. 2003-11-21 15:50:49 UTC
After unpacking the sources (gunzip -c ~/Download/ghostscript-8.11.tar.gz | 
tar -xvf -) while configuring the build environment (cd ghostscript-
8.11; ./configure), a warning appears with the following message:
Comment 1 Mario Antonio F. 2003-11-21 15:52:39 UTC
configure: WARNING: JBIG2 support requires stdint types which do not seem to be 
available.

The compilation breaks while processing jbig2dec. The fix consists of appending 
the following lines to file os_types.h:

#ifdef __sun__
#include <inttypes.h>
#endif
Comment 2 Mario Antonio F. 2003-11-21 16:00:55 UTC
By the way, the version of ghostscript is 8.11
Comment 3 Ralph Giles 2003-11-21 18:08:54 UTC
note that you can 'configure --without-jbig2dec' as a work-around.

*** This bug has been marked as a duplicate of 687007 ***