[MacPorts] #21049: Ghostscript fails to build on Snow Leopard (again)
MacPorts
noreply at macports.org
Thu Sep 3 04:38:34 PDT 2009
#21049: Ghostscript fails to build on Snow Leopard (again)
---------------------------------+------------------------------------------
Reporter: davidw@… | Owner: takanori@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: | Port:
---------------------------------+------------------------------------------
Changes (by snc@…):
* owner: macports-tickets@… => takanori@…
Old description:
> This appears to be a re-ccurance of bug20935
> 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
New description:
This appears to be a re-ccurance 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
--
--
Ticket URL: <http://trac.macports.org/ticket/21049#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list