Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#12079 closed defect (duplicate)

BUG: Ghostscript-8.54_0 build incompatibility when japser 1.701.0_0 already installed

Reported by: julien.palmas@… Owned by: digdog@…
Priority: High Milestone:
Component: ports Version: 1.4.40
Keywords: japser ghostscript Cc: julien.palmas@…, digdog@…, ryandesign (Ryan Carsten Schmidt)
Port:

Description

sudo port install ghostscript
returned the following error (among others) on my MacBook Pro :

jasper/src/libjasper/base/jas_cm.c:748: error: 'JAS_ERR_UNEQUAL_PARMS_IN_JAS_CMPXFORMSEQ_APPENDCNVT' undeclared (first use in this function)

The build command was the following :

gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -O2 -I/opt/local/include -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -O2 -I/opt/local/include -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -I./obj/ -Ijasper/src/libjasper/include -DJAS_CONFIGURE -DEXCLUDE_BMP_SUPPORT=1 -DEXCLUDE_JPG_SUPPORT=1 -DEXCLUDE_MIF_SUPPORT=1 -DEXCLUDE_PGX_SUPPORT=1 -DEXCLUDE_PNM_SUPPORT=1 -DEXCLUDE_RAS_SUPPORT=1 -DEXCLUDE_PNG_SUPPORT=1 -o ./obj/jas_cm.o -c jasper/src/libjasper/base/jas_cm.c

The constant JAS_ERR_UNEQUAL_PARMS_IN_JAS_CMPXFORMSEQ_APPENDCNVT is declared in jasper/jas_debug.h, but 2 occurencies existed on different directories specified by -I :

  • one in /opt/local/include (this file was there because jasper had been installed before hand by macports)
  • one in jasper/src/libjasper/include (this file is the good one, and in the src dir of ghostscript)

The problem is that -I/opt/local/include is specified before -Ijasper/src/libjasper/include, which makes the bad jas_debug.h be included.

A simple workaround was to deactivate japser to allow ghostscript to build, and then reactivate it.

Change History (3)

comment:1 Changed 17 years ago by markd@…

Summary: Ghostscript 8.54_0 build incompatibility when japser 1.701.0_0 already installedBUG: Ghostscript-8.54_0 build incompatibility when japser 1.701.0_0 already installed

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: julien.palmas@… digdog@… ryandesign@… added
Resolution: duplicate
Status: newclosed

This should have been fixed in #11901 by r25413 / r25441.

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.