gcc error: ============================================================= 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 ============================================= HP cc compiler error messages: ============================================= cc -DHAVE_MKSTEMP -DHAVE_HYPOT -O -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 cpp: "jasper/src/libjasper/include/jasper/jas_config_ac.h", line 153: warning 2001: Redefinition of macro inline. cpp: "/usr/include/stdbool.h", line 10: warning 2001: Redefinition of macro true. cpp: "/usr/include/stdbool.h", line 11: warning 2001: Redefinition of macro false. cc: "jasper/src/libjasper/include/jasper/jas_types.h", line 167: error 1584: Inconsistent type declaration: "int_fast8_t". cc: "jasper/src/libjasper/include/jasper/jas_types.h", line 173: error 1584: Inconsistent type declaration: "uint_fast8_t". cc: "jasper/src/libjasper/include/jasper/jas_types.h", line 178: error 1584: Inconsistent type declaration: "int_fast16_t". cc: "jasper/src/libjasper/include/jasper/jas_types.h", line 184: error 1584: Inconsistent type declaration: "uint_fast16_t". cc: "jasper/src/libjasper/include/jasper/jas_types.h", line 189: error 1713: Illegal redeclaration for identifier "int_fast32_t". cc: "jasper/src/libjasper/include/jasper/jas_types.h", line 195: error 1713: Illegal redeclaration for identifier "uint_fast32_t". cc: "jasper/src/libjasper/include/jasper/jas_types.h", line 200: error 1713: Illegal redeclaration for identifier "int_fast64_t". cc: "jasper/src/libjasper/include/jasper/jas_types.h", line 206: error 1713: Illegal redeclaration for identifier "uint_fast64_t". *** Error exit code 1 Stop. =============================================
This is a spin-off of Bug 687360 , see http://bugs.ghostscript.com/show_bug.cgi?id=687360#c16 Ralph: how about making this bountiable and let Alex do it? See bug 687360 comment 30.
Created attachment 1497 [details] /usr/include/sys/_inttypes.h on an HP-UX box /usr/include/sys/_inttypes.h on an HP-UX box, for reference and where the clashes is.
*** Bug 688197 has been marked as a duplicate of this bug. ***
tried cvs 2005-07-26 mid-day, and the problem is still there. (I read elsewhere that there are some compilation change/improvement beyond 8.51, but apparently not related).
Hin-Tak, do you still have access to an HP-UX machine? I've made the bug bountiable in case someone wants to track down a fix.
Could try; but is rather busy lately, so anybody who feels like having a crack at it, feel free to do so.
Created attachment 5271 [details] jas_types.h Hi, this allows the build to succeed on my HP (HP-UX 11.11, PA-RISC), patch to follow.
Created attachment 5272 [details] jas_types.h.patch Patch to create jas_types.h, against gs ver 8.64
*** Bug 690369 has been marked as a duplicate of this bug. ***
Grabbing a Ralph's bugs.
There are other patches trying to fix this problem elsewhere: http://hpux.connect.org.uk/hppd/cgi-bin/wwwtar?/hpux/PostScript/ghostscript-8.62.0/ghostscript-8.62.0-src-11.11.tar.gz+ghostscript-8.62.0/HPUX.Install+text http://hpux.connect.org.uk/hppd/cgi-bin/wwwtar?/hpux/Development/Libraries/jasper-1.900.1/jasper-1.900.1-src-11.11.tar.gz+jasper-1.900.1/HPUX.Install+text http://hpux.connect.org.uk/hppd/hpux/PostScript/ghostscript-8.62.0/ http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/jasper-1.900.1/
Reviewed all the patches and committed r11237 (fixes jasper issue detailed here) , r11238 (jbig2dec issue), r11239 (HP cc compiler quirk workaround for opvp), r11240 (fix for non-GNU make on Tru64/HP-UX) r11240 is not needed if GNU make is used instead of HP make; r11239 is possibly not needed if a recent GCC is used instead of HP cc. To build ghostscript 8.71 on HP-UX, r11240 is irrelevant because it fixes a problem introduced after 8.71; r10826 and r10827 (both issues against AIX's CC) are also needed for HP cc. r11237 is equivalent to (and better than) attachment 5272 [details] - which may break other systems; there are some extraneous changes from the hpux.connect which were not needed on the system I tested but may be relevant to other HP hardware/compiler combo so I'll attach them here for reference. # uname -a HP-UX vital50 B.11.23 U ia64 0997504964 unlimited-user license # cc --version cc: HP C/aC++ B3910B A.06.15 [May 16 2007] # ld -V ld: 92453-07 linker ld HP Itanium(R) B.12.42 IPF/IPF
Created attachment 6282 [details] uncommitted changes from hp.connect ghostscript 8.62 diff I don't find these changes necessary, but may be useful for other hardware/compiler combo than the one I used.
Created attachment 6283 [details] uncommitted change from hp.connect jaser 1.900.1 diff I don't find these changes necessary - attached here for reference.
Created attachment 6284 [details] tgz of the 6 patches mentioned here. 0001-Fixes-part-of-691149-void-function-returning-value-t.patch r10826 0001-First-half-of-patch-from-John-Wehle-for-bug-691149-v.patch r10827 0001-fix-conflicting-types-against-HP-UX-system-header-in.patch r11237 0002-uint8_t-type-located-in-usual-header-on-HP-UX-needed.patch r11238 0003-HP-compiler-quirk-apparently-the-same-workaround-is-.patch r11239 0004-remove-one-extra-tab-introduced-in-r10994-non-GNU-Ma.patch r11240 To patch against 8.71, only the first 5 are needed. These will require GNU patch (HP patch doesn't take unified diff's), of which HP binaries can be downloaded from: http://hpux.connect.org.uk/hppd/hpux/Sysadmin/patch-2.6.1/