I am building ghostscript version 8.70 on an HP rx2660 running HP-UX 11.31. I have the HP C/aCC++ Developer's Bundle installed (version C.11.31.04.2). I am getting 4 errors detected when compiling ./base/gxpcolor.h aCC -DHAVE_MKSTEMP -DHAVE_HYPOT -O -Ae +DD64 -DSOCKS -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -Ae -O -I./obj -I./base -o ./obj/gxblend1.o -c ./base/gxblend1.c "./base/gxpcolor.h", line 139: error #2092: identifier-list parameters may only be used in a function definition extern dev_color_proc_save_dc(gx_dc_pattern_save_dc); ^ "./base/gxpcolor.h", line 140: error #2092: identifier-list parameters may only be used in a function definition extern dev_color_proc_write(gx_dc_pattern_write); ^ "./base/gxpcolor.h", line 141: error #2092: identifier-list parameters may only be used in a function definition extern dev_color_proc_read(gx_dc_pattern_read); ^ "./base/gxpcolor.h", line 147: error #2092: identifier-list parameters may only be used in a function definition extern dev_color_proc_get_nonzero_comps(gx_dc_pattern_get_nonzero_comps); ^ "./base/gxpcolor.h", line 171: warning #2815-D: type qualifier on return type is meaningless const void (* pat_trans_fill)(int xmin, int ymin, int xmax, int ymax, int px, int py, const gx_color_tile *ptile, ^ 4 errors detected in the compilation of "./base/gxblend1.c". *** Error exit code 2 Stop.
Since HP has discontinued guest accounts, there are 2 ways to fix this: 1. you give a gs developer an ssh access to the affected box 2. you fix it on your own and submit a patch.
You could also try installing GCC and building with that.
Grabbing a Ralph's bugs.
Please try the patch set and instruction in http://bugs.ghostscript.com/show_bug.cgi?id=688184#c15 and do "./configure && make" with ghostscript 8.71 to see if it works. (and not "ln -s base/unix-gcc.mak make; make " or anything that involves dealing with base/*.mak) I am suspecting that you have some bad include files in "/usr/local/include" which has the same name but the wrong content compared to those in gs or /usr/include. This section of CFLAGS is added by you: "-O -Ae +DD64 -DSOCKS -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
Looks related to or same as bug 690883 (the error locations are identical, and error messages related, and both with non-gcc compilers and around the same time of reporting), and likely fixed by same commit (r10260). Please retest.
Since another user is filing runtime issue on HP-UX with the 9.0 release (Bug 691853), it would appear that building on HP-UX is no longer a problem.