Bug 691049 - Build fails compiling ./base/gxpcolor.h
Summary: Build fails compiling ./base/gxpcolor.h
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 8.70
Hardware: HP HP-UX
: P4 normal
Assignee: Hin-Tak Leung
URL:
Keywords:
Depends on: 690883
Blocks:
  Show dependency tree
 
Reported: 2010-01-07 09:00 UTC by Fergus Hayne
Modified: 2010-12-27 21:50 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fergus Hayne 2010-01-07 09:00:26 UTC
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.
Comment 1 Alex Cherepanov 2010-01-07 16:55:58 UTC
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.
Comment 2 Ralph Giles 2010-01-07 16:59:35 UTC
You could also try installing GCC and building with that.
Comment 3 Hin-Tak Leung 2010-05-02 03:12:31 UTC
Grabbing a Ralph's bugs.
Comment 4 Hin-Tak Leung 2010-05-14 08:27:39 UTC
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"
Comment 5 Hin-Tak Leung 2010-06-27 01:02:40 UTC
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.
Comment 6 Hin-Tak Leung 2010-12-27 21:50:59 UTC
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.