[MacPorts] #24875: Graphviz dependency ghostscript does not compile for any architecture

MacPorts noreply at macports.org
Thu May 13 03:38:13 PDT 2010


#24875: Graphviz dependency ghostscript does not compile for any architecture
--------------------------------------+-------------------------------------
 Reporter:  garbagec@…                |       Owner:  macports-tickets@…                   
     Type:  defect                    |      Status:  new                                  
 Priority:  High                      |   Milestone:                                       
Component:  ports                     |     Version:  1.8.2                                
 Keywords:  ghostscript graphviz png  |        Port:  ghostscript                          
--------------------------------------+-------------------------------------
 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:[[BR]]

 * trying to build graphviz which depends on ghostscript[[BR]]

 * ghostscript does not recognize its own version of libjpeg (it should be
 using the MacPort version)[[BR]]

 * ghostscript does not recognize its own version of zlib (it should be
 using the MacPort version)[[BR]]

 * ghostscript fails on libpng [[BR]]

-- 
Ticket URL: <http://trac.macports.org/ticket/24875>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list