#20935 closed defect (worksforme)
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 tobypeterson)
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 (2)
Change History (11)
comment:1 Changed 15 years ago by tobypeterson
Description: | modified (diff) |
---|---|
Keywords: | snow leopard fail install removed |
Milestone: | MacPorts 1.8.1 |
Version: | 1.8.0 |
comment:2 Changed 15 years ago by tobypeterson
Summary: | Ghostscript failes to build on Snow Leopard → Ghostscript fails to build on Snow Leopard |
---|
comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)
Owner: | changed from macports-tickets@… to takanori@… |
---|
comment:4 Changed 15 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
comment:5 Changed 15 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.
comment:6 Changed 15 years ago by mf2k (Frank Schima)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Changed 15 years ago by akimd (Akim Demaille)
Attachment: | buildlog.2.txt added |
---|
Failure to build ghostscript 8.70 on 10.6
comment:7 Changed 15 years ago by akimd (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.
comment:8 Changed 15 years ago by akimd (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.
This built successfully for me.