Opened 15 years ago
Closed 14 years ago
#24875 closed defect (worksforme)
ghostscript can't find jpeg
Reported by: | garbagec@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | ghostscript graphviz png | Cc: | takanori@…, ryandesign (Ryan Carsten Schmidt) |
Port: | ghostscript |
Description
I am trying to build graphviz and the dependency ghostscript, does not compile. the ghostscript port seems to have multiple problems actually. This is what I get on a clean install of ghostscript
Wormhole:~ Gabe$ sudo port install ghostscript ---> Computing dependencies for ghostscript ---> Fetching ghostscript ---> Verifying checksum(s) for ghostscript ---> Extracting ghostscript ---> Applying patches to ghostscript ---> Configuring ghostscript Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.71" && ./configure --prefix=/opt/local --disable-compile-inits --disable-cups --disable-gtk " returned error 1 Command output: checking sys/window.h presence... no checking for sys/window.h... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking for struct stat.st_blocks... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking size of unsigned long int... 8 checking for pkg-config... /opt/local/bin/pkg-config checking for fontconfig with pkg-config... yes checking for cos in -lm... yes checking for pthread_create in -lpthread... yes checking for iconv_open... no checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no checking for systempapername in -lpaper... no configure: WARNING: disabling support for libpaper checking for dlopen in -ldl... yes checking for local jpeg library source... no checking for jpeg_set_defaults in -ljpeg... no configure: error: I wasn't able to find a copy of the jpeg library. This is required for compiling ghostscript. Please download a copy of the source, e.g. from http://www.ijg.org/, unpack it at the top level of the gs source tree, and rename the directory to 'jpeg'. Error: Status 1 encountered during processing. Before reporting a bug, first run the command again with the -d flag to get complete output.
At this point I manually rename the folder jpeg_local to jpeg in the source location
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.71
and this is what I get
Wormhole:~ Gabe$ sudo port install ghostscript ---> Computing dependencies for ghostscript ---> Configuring ghostscript Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.71" && ./configure --prefix=/opt/local --disable-compile-inits --disable-cups --disable-gtk " returned error 1 Command output: checking sys/window.h presence... no checking for sys/window.h... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking for struct stat.st_blocks... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking size of unsigned long int... 8 checking for pkg-config... /opt/local/bin/pkg-config checking for fontconfig with pkg-config... yes checking for cos in -lm... yes checking for pthread_create in -lpthread... yes checking for iconv_open... no checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no checking for systempapername in -lpaper... no configure: WARNING: disabling support for libpaper checking for dlopen in -ldl... yes checking for local jpeg library source... jpeg checking for jmemsys.h... yes checking for local zlib source... no checking for deflate in -lz... no configure: error: I did not find a copy of zlib on your system. Please either install it, or unpack a copy of the source in a local directory named 'zlib'. See http://www.gzip.org/zlib/ for more information. Error: Status 1 encountered during processing. Before reporting a bug, first run the command again with the -d flag to get complete output. Wormhole:~ Gabe$
So now I repeat the same thing for zlib and I get
Wormhole:~ Gabe$ sudo port install ghostscript ---> Computing dependencies for ghostscript ---> Configuring ghostscript ---> Building ghostscript Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.71" && /usr/bin/make so " returned error 2 Command output: ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdxtext -include ./obj/../soobj/fcopy ./obj/../soobj/psf ./obj/../soobj/echogs -e .dev -w- -l-obj ./obj/../soobj/pdtext -include ./obj/../soobj/pdxtext ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-obj ./obj/../soobj/pdfwrite ./obj/../soobj/gdevpdf.o ./obj/../soobj/gdevpdfb.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/gdevpdfc.o ./obj/../soobj/gdevpdfd.o ./obj/../soobj/gdevpdfe.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/gdevpdfg.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/gdevpdfi.o ./obj/../soobj/gdevpdfj.o ./obj/../soobj/gdevpdfk.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/gdevpdfm.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/gdevpdfo.o ./obj/../soobj/gdevpdfp.o ./obj/../soobj/gdevpdft.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/gdevpdfr.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/gdevpdfu.o ./obj/../soobj/gdevpdfv.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/ConvertUTF.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/gsflip.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite ./obj/../soobj/scantab.o ./obj/../soobj/sfilter2.o ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite -ps gs_pdfwr ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite -include ./obj/../soobj/cmyklib ./obj/../soobj/cfe ./obj/../soobj/lzwe ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite -include ./obj/../soobj/rle ./obj/../soobj/sdcte ./obj/../soobj/sdeparam ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite -include ./obj/../soobj/smd5 ./obj/../soobj/szlibe ./obj/../soobj/sarc4.dev ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite -include ./obj/../soobj/psdf ./obj/../soobj/echogs -e .dev -a- ./obj/../soobj/pdfwrite -include ./obj/../soobj/pdtext ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/../soobj/page -l-obj ./obj/../soobj/pgm ./obj/../soobj/gdevpbm.o ./obj/../soobj/gdevppla.o ./obj/../soobj/gdevmpla.o ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/../soobj/page -l-obj ./obj/../soobj/pgmraw ./obj/../soobj/gdevpbm.o ./obj/../soobj/gdevppla.o ./obj/../soobj/gdevmpla.o ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/../soobj/page -l-obj ./obj/../soobj/pgnm ./obj/../soobj/gdevpbm.o ./obj/../soobj/gdevppla.o ./obj/../soobj/gdevmpla.o ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/../soobj/page -l-obj ./obj/../soobj/pgnmraw ./obj/../soobj/gdevpbm.o ./obj/../soobj/gdevppla.o ./obj/../soobj/gdevmpla.o ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/../soobj/page -l-obj ./obj/../soobj/pkm ./obj/../soobj/gdevpbm.o ./obj/../soobj/gdevppla.o ./obj/../soobj/gdevmpla.o ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/../soobj/page -l-obj ./obj/../soobj/pkmraw ./obj/../soobj/gdevpbm.o ./obj/../soobj/gdevppla.o ./obj/../soobj/gdevmpla.o ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/../soobj/page -l-obj ./obj/../soobj/pksm ./obj/../soobj/gdevpbm.o ./obj/../soobj/gdevppla.o ./obj/../soobj/gdevmpla.o ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/../soobj/page -l-obj ./obj/../soobj/pksmraw ./obj/../soobj/gdevpbm.o ./obj/../soobj/gdevppla.o ./obj/../soobj/gdevmpla.o ./obj/../soobj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/../soobj/page -l-obj ./obj/../soobj/plan9bm ./obj/../soobj/gdevpbm.o ./obj/../soobj/gdevppla.o ./obj/../soobj/gdevmpla.o make[1]: *** No rule to make target `src/png.c', needed by `obj/../soobj/png.o'. Stop. make: *** [so] Error 2 Error: Status 1 encountered during processing. Before reporting a bug, first run the command again with the -d flag to get complete output. Wormhole:~ Gabe$
Somehow, ghostscript now bails on libpng and I am not quite sure how to proceed. To summarize here are my problems:
- trying to build graphviz which depends on ghostscript
- ghostscript does not recognize its own version of libjpeg (it should be using the MacPort version)
- ghostscript does not recognize its own version of zlib (it should be using the MacPort version)
- ghostscript fails on libpng
Change History (3)
comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | takanori@… ryandesign@… added |
---|---|
Priority: | High → Normal |
Summary: | Graphviz dependency ghostscript does not compile for any architecture → ghostscript can't find jpeg |
comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Can you provide any of the information I requested above?
comment:3 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
No response; closing.
Note: See
TracTickets for help on using
tickets.
High priority is for use by the MacPorts team only.
Remember to Cc port maintainers.
ghostscript has always built fine for me. What OS are you on? Leopard? Snow Leopard? If Snow Leopard, did you upgrade from Leopard? If so, did you already have MacPorts installed under Leopard? If so, did you follow the Migration instructions?