Opened 15 years ago

Closed 15 years ago

#21049 closed defect (invalid)

Ghostscript fails to build on Snow Leopard (again)

Reported by: davidw@… Owned by: takanori@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port:

Description (last modified by nerdling (Jeremy Lavergne))

This appears to be a recurrence of #20935 I have also had this error. The initial error message was:

The machine with the problem has been upgraded from 10.5.8 to 10.6 and MacPorts-1.8.0-10.6-SnowLeopard.dmg installed

sudo port install ghostscript
Warning: Skipping upgrade since ncursesw 5.7_0 >= ncursesw 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
Warning: Skipping upgrade since ncurses 5.7_0 >= ncurses 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
--->  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.70" && ./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'.

Further examination shows that there are 3 _local directories that contain the jpeg libpng and zlib files that are required

Symlinking as follows:

ln -s jpeg_local/ jpeg
ln -s libpng_local/ libpng
ln -s zlib_local/ zlib

This proceeds for much longer before producing the error:

 port install ghostscript
Warning: Skipping upgrade since ncursesw 5.7_0 >= ncursesw 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
Warning: Skipping upgrade since ncurses 5.7_0 >= ncurses 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
--->  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.70" && /usr/bin/make so " returned error 2
Command output:   "_cairo_ps_surface_set_eps", referenced from:
      _devcairo_open_device in gdevcairo.o
  "_FcInitLoadConfigAndFonts", referenced from:
      _gp_enumerate_fonts_init in gp_unix.o
  "_cairo_set_line_join", referenced from:
      _devcairo_setlinejoin in gdevcairo.o
  "_cairo_line_to", referenced from:
      _devcairo_lineto in gdevcairo.o
  "_cairo_save", referenced from:
      _devcairo_open_device in gdevcairo.o
  "_cairo_set_miter_limit", referenced from:
      _devcairo_setmiterlimit in gdevcairo.o
  "_cairo_new_path", referenced from:
      _devcairo_endpath in gdevcairo.o
      _devcairo_beginpath in gdevcairo.o
  "_cairo_pattern_reference", referenced from:
      _devcairo_open_device in gdevcairo.o
      _devcairo_open_device in gdevcairo.o
  "_cairo_fill_preserve", referenced from:
      _devcairo_endpath in gdevcairo.o
  "_cairo_surface_destroy", referenced from:
      _devcairo_open_device in gdevcairo.o
  "_cairo_clip_preserve", referenced from:
      _devcairo_endpath in gdevcairo.o
  "_cairo_surface_status", referenced from:
      _devcairo_check_status in gdevcairo.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [bin/../sobin/libgs.8.70.dylib] Error 1
make: *** [so] Error 2

Error: Status 1 encountered during processing.

I have attached a debug build however doing a port clean removes the symlinks so the debug is immediately after the above steps

Attachments (1)

buildlog.txt (71.4 KB) - added by davidw@… 15 years ago.
BuildLog

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by davidw@…

Attachment: buildlog.txt added

BuildLog

comment:1 Changed 15 years ago by davidw@…

Update:

This site:http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard suggests an extra step:

$ sudo port selfupdate $ sudo port sync $ sudo port upgrade --force installed

Doing these steps allows ghostscript to install without the need to symlink or anything else

comment:2 Changed 15 years ago by nerdling (Jeremy Lavergne)

Description: modified (diff)
Owner: changed from macports-tickets@… to takanori@…

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

Description: modified (diff)

comment:4 in reply to:  1 Changed 15 years ago by nerdling (Jeremy Lavergne)

Resolution: invalid
Status: newclosed

Replying to davidw@…:

This site … suggests an extra step:

$ sudo port selfupdate

$ sudo port upgrade --force installed

Doing these steps allows ghostscript to install without the need to symlink or anything else

That's actually standard practice. See Migration.

Note: See TracTickets for help on using tickets.