diff -uNr ghostscript-9.14/base/gsicc.c ghostscript-9.14.fink/base/gsicc.c --- ghostscript-9.14/base/gsicc.c 2014-03-26 08:53:47.000000000 -0400 +++ ghostscript-9.14.fink/base/gsicc.c 2014-04-17 19:15:57.000000000 -0400 @@ -468,6 +468,8 @@ cmm_dev_profile_t *dev_profile; code = dev_proc(dev, get_profile)(dev, &dev_profile); + if (dev_profile == NULL) + return gs_throw(gs_error_Fatal, "Attempting to do ICC remap with no profile"); num_des_comps = gsicc_get_device_profile_comps(dev_profile); rendering_params.black_point_comp = pis->blackptcomp; rendering_params.graphics_type_tag = dev->graphics_type_tag; diff -uNr ghostscript-9.14/base/gxpcolor.h ghostscript-9.14.fink/base/gxpcolor.h --- ghostscript-9.14/base/gxpcolor.h 2014-03-26 08:53:47.000000000 -0400 +++ ghostscript-9.14.fink/base/gxpcolor.h 2014-04-17 19:14:54.000000000 -0400 @@ -20,6 +20,7 @@ #ifndef gxpcolor_INCLUDED # define gxpcolor_INCLUDED +#include "gxdcolor.h" #include "gspcolor.h" #include "gxcspace.h" #include "gxdevice.h" diff -uNr ghostscript-9.14/base/mkromfs.c ghostscript-9.14.fink/base/mkromfs.c --- ghostscript-9.14/base/mkromfs.c 2014-03-26 08:53:47.000000000 -0400 +++ ghostscript-9.14.fink/base/mkromfs.c 2014-04-17 19:14:54.000000000 -0400 @@ -2302,7 +2302,7 @@ #endif fprintf(out,"\n#include \"stdint_.h\"\n"); fprintf(out,"\n#include \"time_.h\"\n\n"); - fprintf(out," time_t gs_romfs_buildtime = %ld;\n\n", time(NULL)); + fprintf(out," time_t gs_romfs_buildtime = %lld;\n\n", (long long)time(NULL)); /* process the remaining arguments (options interspersed with paths) */ for (; atarg < argc; atarg++) { diff -uNr ghostscript-9.14/configure ghostscript-9.14.fink/configure --- ghostscript-9.14/configure 2014-03-26 08:53:47.000000000 -0400 +++ ghostscript-9.14.fink/configure 2014-04-17 19:15:50.000000000 -0400 @@ -842,6 +842,7 @@ LIBS CPPFLAGS CPP +CPPFLAGS XMKMF' @@ -6254,7 +6255,7 @@ $as_echo_n "checking for local zlib source... " >&6; } # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR) # this seems a harmless default -ZLIBDIR=src +ZLIBDIR=$oldincludedir AUX_SHARED_ZLIB= if test -d $srcdir/zlib; then diff -uNr ghostscript-9.14/configure.ac ghostscript-9.14.fink/configure.ac --- ghostscript-9.14/configure.ac 2014-03-26 08:53:48.000000000 -0400 +++ ghostscript-9.14.fink/configure.ac 2014-04-17 19:15:50.000000000 -0400 @@ -854,7 +854,7 @@ dnl zlib is needed for language level 3, and libpng # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR) # this seems a harmless default -ZLIBDIR=src +ZLIBDIR=$oldincludedir AUX_SHARED_ZLIB= if test -d $srcdir/zlib; then diff -uNr ghostscript-9.14/devices/gdevpng.c ghostscript-9.14.fink/devices/gdevpng.c --- ghostscript-9.14/devices/gdevpng.c 2014-03-26 08:53:47.000000000 -0400 +++ ghostscript-9.14.fink/devices/gdevpng.c 2014-04-17 19:14:54.000000000 -0400 @@ -721,6 +721,7 @@ #if PNG_LIBPNG_VER_MINOR < 5 +#if 0 /* not required in 1.5 */ /* * Patch around a static reference to a never-used procedure. * This could be avoided if we were willing to edit pngconf.h to @@ -741,6 +742,7 @@ } #endif #endif +#endif static int pngalpha_open(gx_device * pdev) diff -uNr ghostscript-9.14/psi/imainarg.c ghostscript-9.14.fink/psi/imainarg.c --- ghostscript-9.14/psi/imainarg.c 2014-03-26 08:53:47.000000000 -0400 +++ ghostscript-9.14.fink/psi/imainarg.c 2014-04-17 19:14:54.000000000 -0400 @@ -217,6 +217,11 @@ #endif } } + + code = gs_main_init1(minst); + if (code < 0) + return code; + while ((arg = arg_next(&args, &code, minst->heap)) != 0) { switch (*arg) { case '-':