Created attachment 9359 [details] Add path to 'gdevdsp' to successfully compile 'psi/dxmain' Hello, compilation of ghostscript on my Linux box: Archlinux x86_64 kernel: 3.8.3 gcc: 4.7.2 zlib: 1.2.7 freetype: 2.4.11 jasper: 1.900.1 libpng: 1.5.14 expat: 2.1.0 tiff: 4.0.3 lcms: 1.19 jpeg (libjpeg-turbo): 1.2.1 stops on 'psi/dxmain' saying: ---------------------------- 8< ------------------------------ gcc -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -DHAVE_BSWAP32 -DHAVE_BYTESWAP_H -DHAVE_STRERROR -fPIC -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long int" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DUSE_LIBPAPER -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/9.08\" -I./soobj -I./base -DWHICH_CMS="lcms2" -g -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng15 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o ./sobin/gsx ./psi/dxmain.c \ -L./sobin -lgs -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 ./psi/dxmain.c:39:21: fatal error: gdevdsp.h: No such file or directory compilation terminated. make[3]: *** [sobin/gsx] Error 1 make[3]: Leaving directory `/home/vladimir/buildpkg/ghostscript/src/gs-build/gs' make[2]: *** [so-subtarget] Error 2 make[2]: Leaving directory `/home/vladimir/buildpkg/ghostscript/src/gs-build/gs' make[1]: *** [install-so] Error 2 make[1]: Leaving directory `/home/vladimir/buildpkg/ghostscript/src/gs-build/gs' make: *** [soinstall] Error 2 ---------------------------- 8< ------------------------------ Configuration options: --prefix=/usr \ --enable-dynamic \ --with-ijs \ --with-jbig2dec \ --with-x \ --with-drivers=ALL \ --with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \ --with-install-cups \ --enable-fontconfig \ --enable-freetype \ --enable-dbus \ --without-luratech \ --with-system-libtiff \ --disable-compile-inits # needed for linking with system-zlib Build 'script': https://github.com/vp1981/pkgbuild/blob/master/ghostscript/PKGBUILD According to git history the reason is in commit f1488c5aff54f37ee67759827d4298592af5dbc8 Author: Chris Liddell <chris.liddell@artifex.com> Date: Tue Feb 26 18:01:40 2013 +0000 Move output devices to their own directory. ... I made simple patch which allows me to successfully compile ghostscript.
Thanks for the report. I opted for a slightly different solution, which I felt was a bit more consistent with the rest of the build: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=fe7e1a32
Thanks, now ghostscript compiles fine. As for my patch, it was a rude approach from the beginning :)