Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#11901 closed defect (fixed)

Bug: ghostscript fails to build if jasper port is installed

Reported by: jbacon@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.4.42
Keywords: Cc: jbacon@… digdog@… takanori@…
Port:

Description

The ghostscript port (not the gpl version) fails to build if the jasper port is currently installed. If jasper is uninstalled, ghostscript will install without incident. I've replicated the problem on several systems, including one where all ports were installed on a clean slate, from the same snapshot, following:

port -f uninstall installed port -d selfupdate

I then installed a number of ports, including netpbm, which installs jasper as a dependency. Here's what follows:

<<<ROOT@heron>>> /Users/bacon/MacPorts/MacPorts/science/mritools 1010 # port install ghostscript ---> Fetching ghostscript ---> Verifying checksum(s) for ghostscript ---> Extracting ghostscript ---> Configuring ghostscript ---> Building ghostscript Error: Target com.apple.build returned: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_print_ghostscript/work/ghostscript-8.54" && make " returned error 2 Command output: jbig2dec/jbig2_text.c:115: warning: 'SBSYMCODES' may be used uninitialized in this function jbig2dec/jbig2_text.c:109: warning: 'y' may be used uninitialized in this function jbig2dec/jbig2_text.c:109: warning: 'x' may be used uninitialized in this function 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 -Ijbig2dec -o ./obj/jbig2_metadata.o -c jbig2dec/jbig2_metadata.c

jbig2dec/jbig2_metadata.c: In function 'jbig2_parse_comment_ascii': jbig2dec/jbig2_metadata.c:113: warning: cast discards qualifiers from pointer target type jbig2dec/jbig2_metadata.c:114: warning: cast discards qualifiers from pointer target type ./obj/echogs -e .dev -w- -l-obj ./obj/jbig2dec_0 ./obj/jbig2.o ./obj/jbig2_arith.o ./obj/jbig2_arith_iaid.o ./obj/jbig2_arith_int.o ./obj/jbig2_generic.o ./obj/jbig2_refinement.o ./obj/jbig2_huffman.o ./obj/jbig2_image.o ./obj/jbig2_mmr.o ./obj/echogs -e .dev -a- ./obj/jbig2dec_0 ./obj/jbig2_page.o ./obj/jbig2_segment.o ./obj/jbig2_symbol_dict.o ./obj/jbig2_text.o ./obj/jbig2_metadata.o cp ./obj/jbig2dec_0.dev ./obj/jbig2dec.dev 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 -I./obj -I./src -Ijbig2dec -o ./obj/sjbig2.o -c ./src/sjbig2.c

./obj/echogs -e .dev -w- -l-obj ./obj/sjbig2_jbig2dec ./obj/sjbig2.o ./obj/echogs -e .dev -a- ./obj/sjbig2_jbig2dec -include ./obj/jbig2dec.dev cp ./obj/sjbig2_jbig2dec.dev ./obj/sjbig2.dev ./obj/echogs -e .dev -w- -l-obj ./obj/jbig2 ./obj/zfjbig2_jbig2dec.o ./obj/echogs -e .dev -a- ./obj/jbig2 -include ./obj/sjbig2 ./obj/echogs -e .dev -a- ./obj/jbig2 -oper zfjbig2 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 -I./src -I./obj -I./obj -I./src -Ijasper/src/libjasper/include -DJAS_CONFIGURE -o ./obj/zfjpx.o \

-c ./src/zfjpx.c

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 -DEXC LUDE_RAS_SUPPORT=1 -DEXCLUDE_PNG_SUPPORT=1 -o ./obj/jas_cm.o -c jasper/src/libjasper/base/jas_cm.c jasper/src/libjasper/base/jas_cm.c: In function 'jas_cmpxformseq_appendcnvt': jasper/src/libjasper/base/jas_cm.c:748: warning: implicit declaration of function 'jas_error' jasper/src/libjasper/base/jas_cm.c:748: error: 'JAS_ERR_UNEQUAL_PARMS_IN_JAS_CMPXFORMSEQ_APPENDCNVT' undeclared (first use in this function) jasper/src/libjasper/base/jas_cm.c:748: error: (Each undeclared identifier is reported only once jasper/src/libjasper/base/jas_cm.c:748: error: for each function it appears in.) jasper/src/libjasper/base/jas_cm.c: In function 'icctoclrspc': jasper/src/libjasper/base/jas_cm.c:1158: error: 'JAS_ERR_CLR_SPACE_UNKNOWN_IN_ICCTOCLRSPC' undeclared (first use in this function) jasper/src/libjasper/base/jas_cm.c: In function 'jas_clrspc_numchans': jasper/src/libjasper/base/jas_cm.c:1364: error: 'JAS_ERR_UNSUPPORTED_COLOR_SPACE_IN_JAS_CLRSPC_NUMCHANS' undeclared (first use in this function) make: * [obj/jas_cm.o] Error 1

Error: Status 1 encountered during processing.

<<<ROOT@heron>>> /Users/bacon/MacPorts/MacPorts/science/mritools 1011 # port -f uninstall jasper ---> Unable to uninstall jasper 1.701.0_0, the following ports depend on it: ---> netpbm Warning: Uninstall forced. Proceeding despite dependencies. ---> Deactivating jasper 1.701.0_0 ---> Uninstalling jasper 1.701.0_0

<<<ROOT@heron>>> /Users/bacon/MacPorts/MacPorts/science/mritools 1013 # port clean ghostscript ---> Cleaning ghostscript

<<<ROOT@heron>>> /Users/bacon/MacPorts/MacPorts/science/mritools 1014 # port install ghostscript ---> Fetching ghostscript ---> Verifying checksum(s) for ghostscript ---> Extracting ghostscript ---> Configuring ghostscript ---> Building ghostscript ---> Staging ghostscript into destroot ---> Installing ghostscript 8.54_0 ---> Activating ghostscript 8.54_0 ---> Cleaning ghostscript

<<<ROOT@heron>>> /Users/bacon/MacPorts/MacPorts/science/mritools 1015 # port install jasper ---> Fetching jasper ---> Verifying checksum(s) for jasper ---> Extracting jasper ---> Applying patches to jasper ---> Configuring jasper ---> Building jasper with target all ---> Staging jasper into destroot ---> Installing jasper 1.701.0_0 ---> Activating jasper 1.701.0_0 ---> Cleaning jasper

Now I can continue on my merry way...

Attachments (1)

Portfile.patch (627 bytes) - added by takanori@… 14 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by takanori@…

Cc: jbacon@… added
Milestone: Port Bugs
Version: 1.4.42

MacPorts 1.4.1 or higher adds -I${prefix}/include and -L${prefix}/lib flags to the configure by default. It seems that this is a negative side effect of that change.

Here is a workaround to avoid this issue.

Changed 14 years ago by takanori@…

Attachment: Portfile.patch added

comment:2 Changed 14 years ago by digdog@…

Resolution: fixed
Status: newclosed

thanks, commit at [25413]

comment:3 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.