Operating System - HP-UX
1832335 Members
2406 Online
110041 Solutions
New Discussion

Problems Build GNU Ghostscript 8.50 on 11.11 w/ GCC or CC

 
Alzhy
Honored Contributor

Problems Build GNU Ghostscript 8.50 on 11.11 w/ GCC or CC

Anyone successfully built GS from sources on an 11.11 environment with aCC (1.3x) or GCC (3.x/4.x)? I've followed the build instructions -- using make or gmake and the compile always bombs out at:

gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DSYS_TYPES_HAS_STDINT_TYPES -DGX_COLOR_INDEX_TYPE="unsigned long long" -I./src -I./obj -I./obj -I./src -Ijasper/src/libjasper/include -DJAS_CONFIGURE -o ./obj/zfjpx.o -c ./src/zfjpx.c
In file included from jasper/src/libjasper/include/jasper/jasper.h:66,
from ./src/sjpx.h:27,
from ./src/zfjpx.c:34:
jasper/src/libjasper/include/jasper/jas_types.h:167: error: conflicting types for 'int_fast8_t'
/usr/include/sys/_inttypes.h:133: error: previous declaration of 'int_fast8_t' was here
jasper/src/libjasper/include/jasper/jas_types.h:173: error: conflicting types for 'uint_fast8_t'
/usr/include/sys/_inttypes.h:136: error: previous declaration of 'uint_fast8_t' was here
jasper/src/libjasper/include/jasper/jas_types.h:178: error: conflicting types for 'int_fast16_t'
/usr/include/sys/_inttypes.h:145: error: previous declaration of 'int_fast16_t' was here
jasper/src/libjasper/include/jasper/jas_types.h:184: error: conflicting types for 'uint_fast16_t'
/usr/include/sys/_inttypes.h:148: error: previous declaration of 'uint_fast16_t' was here
*** Error exit code 1



Any ideas how to fix?

Hakuna Matata.
1 REPLY 1
Arunvijai_4
Honored Contributor

Re: Problems Build GNU Ghostscript 8.50 on 11.11 w/ GCC or CC

Hi Nelson,

You may try modifying /usr/include/sys/_inttypes.h to reflect the changes or, you can edit jasper/src/libjasper/include/jasper/jas_types.h to rectify type conflicts.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"