New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20935 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

Ghostscript fails to build on Snow Leopard

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

Description (last modified by toby@…) (diff)

Upgraded to Snow Leopard, uninstalled all Ports, uninstalled MacPorts.

Installed MacPorts from .dmg (1.8.0 for Snow Leopard).

Installed Ports (most worked), but Ghostscript fails with the following error:

--->  Computing dependencies for 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: /usr/bin/make LDFLAGS='-L/opt/local/lib -L/usr/X11/lib -dynamiclib -install_name /opt/local/lib/libgs.8.70.dylib' GS_XE=./bin/../sobin/libgs.8.70.dylib STDIO_IMPLEMENTATION=c DISPLAY_DEV=./obj/../soobj/display.dev BINDIR=./bin/../sobin GLGENDIR=./obj/../soobj GLOBJDIR=./obj/../soobj PSGENDIR=./obj/../soobj PSOBJDIR=./obj/../soobj CFLAGS='-O2  -isystem/opt/local/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -O2 -arch x86_64 -DUSE_LIBICONV_GNU ' prefix=/opt/local ./bin/../sobin/gsc ./bin/../sobin/gsx
make[1]: *** No rule to make target `src/png.c', needed by `obj/../soobj/png.o'.  Stop.
make: *** [so] Error 2

All dependencies are installed.

Attachments

buildlog.txt Download (0.9 MB) - added by mwalz@… 2 years ago.
Build Log
buildlog.2.txt Download (421.1 KB) - added by akim.demaille@… 2 years ago.
Failure to build ghostscript 8.70 on 10.6

Change History

Changed 2 years ago by toby@…

  • keywords snow leopard, fail, install removed
  • version 1.8.0 deleted
  • description modified (diff)
  • milestone MacPorts 1.8.1 deleted

Changed 2 years ago by toby@…

  • summary changed from Ghostscript failes to build on Snow Leopard to Ghostscript fails to build on Snow Leopard

Changed 2 years ago by snc@…

  • owner changed from macports-tickets@… to takanori@…

This built successfully for me.

Changed 2 years ago by takanori@…

I couldn't reproduce your problem. Anyway, please submit the debug output.

You can obtain the debug output like the following, FYI.

$ sudo port clean ghostscript
$ sudo port -d install ghostscript > buildlog.txt 2>&1

Changed 2 years ago by mwalz@…

Build Log

Changed 2 years ago by mwalz@…

I've attached the build log. It appears to work now. Nothing has changed since that first report of the problem (no reboot, or other software installed on the target machine). It may be that the clean helped, but I am not sure.

Thank you for the assistance. MacPorts is awesome, as is the team supporting it.

Changed 2 years ago by macsforever2000@…

  • status changed from new to closed
  • resolution set to worksforme

Changed 2 years ago by akim.demaille@…

Failure to build ghostscript 8.70 on 10.6

Changed 2 years ago by akim.demaille@…

I have the same problem, and the problem did not disappear magically. See the attached log.

For what it's worth, I don't see any src/png.c around there.

$ cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.70"
$ sudo make so
make LDFLAGS='-L/opt/local/lib  -dynamiclib -install_name /opt/local/lib/libgs.8.70.dylib' GS_XE=./bin/../sobin/libgs.8.70.dylib STDIO_IMPLEMENTATION=c DISPLAY_DEV=./obj/../soobj/display.dev BINDIR=./bin/../sobin GLGENDIR=./obj/../soobj GLOBJDIR=./obj/../soobj PSGENDIR=./obj/../soobj PSOBJDIR=./obj/../soobj CFLAGS='-O2  -isystem/opt/local/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -O2 -arch x86_64 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER ' prefix=/opt/local ./bin/../sobin/gsc ./bin/../sobin/gsx
make[1]: *** No rule to make target `src/png.c', needed by `obj/../soobj/png.o'.  Stop.
make: *** [so] Error 2

$ find . -name png.c
./libpng_local/png.c

I don't know how to proceed.

Changed 2 years ago by akim.demaille@…

I have solved my problem by reinstalling cairo and libpng (sudo port uninstall -f and then port install), which dated from my 10.5. Then everything works as expected.

Changed 2 years ago by jabial@…

Same solution worked for me.

Note: See TracTickets for help on using tickets.