app-text/ghostscript-gpl-8.60 and -8.60-r1 fail to build on gentoo FreeBSD The problem is caused by --enable-dynamic which is set in the ebuild. This might be a bug in ghostscript itself. -------------------------------------------- tail of build.log: i686-gentoo-freebsd6.2-gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FONTCONFIG -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -mtune=i686 -pipe -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/8.60\" -fPIC -shared -I./obj -I./src -o ./obj/gdevxalt.o -c ./src/gdevxalt.c In file included from ./src/gdevxalt.c:19: ./src/x_.h:132:24: error: X11/Xlib.h: No such file or directory ./src/x_.h:133:26: error: X11/Xproto.h: No such file or directory ./src/x_.h:134:25: error: X11/Xatom.h: No such file or directory ./src/x_.h:135:25: error: X11/Xutil.h: No such file or directory ./src/x_.h:136:29: error: X11/Intrinsic.h: No such file or directory ./src/x_.h:137:30: error: X11/StringDefs.h: No such file or directory ./src/x_.h:138:25: error: X11/Shell.h: No such file or directory In file included from ./src/gdevx.h:25, from ./src/gdevxalt.c:25: ./src/gdevxcmp.h:37: error: expected specifier-qualifier-list before 'XColor' In file included from ./src/gdevxalt.c:25: ./src/gdevx.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdev_x_resources' ./src/gdevx.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdev_x_fallback_resources' ./src/gdevx.h:67: error: expected specifier-qualifier-list before 'XImage' ./src/gdevx.h:243: error: expected declaration specifiers or '...' before 'Atom' ./src/gdevx.h:248: error: expected ')' before '*' token ./src/gdevxalt.c:851: warning: no previous prototype for 'gs_shared_init' ./src/gdevxalt.c: In function 'gs_shared_init': ./src/gdevxalt.c:852: warning: passing argument 1 of 'gs_lib_register_device' from incompatible pointer type ./src/gdevxalt.c:853: warning: passing argument 1 of 'gs_lib_register_device' from incompatible pointer type ./src/gdevxalt.c:854: warning: passing argument 1 of 'gs_lib_register_device' from incompatible pointer type ./src/gdevxalt.c:855: warning: passing argument 1 of 'gs_lib_register_device' from incompatible pointer type ./src/gdevxalt.c:856: warning: passing argument 1 of 'gs_lib_register_device' from incompatible pointer type ./src/gdevxalt.c:857: warning: passing argument 1 of 'gs_lib_register_device' from incompatible pointer type ./src/gdevxalt.c:858: warning: passing argument 1 of 'gs_lib_register_device' from incompatible pointer type ./src/gdevxalt.c:859: warning: passing argument 1 of 'gs_lib_register_device' from incompatible pointer type ./src/gdevxalt.c:860: warning: passing argument 1 of 'gs_lib_register_device' from incompatible pointer type gmake: *** [obj/gdevxalt.o] Error 1 -------------------------------------------- emerge info: Portage 2.1.3.18 (default-bsd/fbsd/6.2/x86, gcc-4.1.2, freebsd-lib-6.2-r3, 6.2-RELEASE i386) ================================================================= System uname: 6.2-RELEASE i386 i386 Timestamp of tree: Tue, 06 Nov 2007 11:30:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r3 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0_rc6 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.10 sys-devel/binutils: 2.17-r2 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 6.2-r3 ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd" CBUILD="i686-gentoo-freebsd6.2" CFLAGS="-O2 -mtune=i686 -pipe" CHOST="i686-gentoo-freebsd6.2" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mtune=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ " PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb cli cracklib crypt cups dri gdbm iconv java5 midi ncurses nls oss pam pcre perl ppds python readline reflection session slang spl ssl tcpd unicode x86-fbsd xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="BSD" VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis tga trident tseng vga via vmware" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Reproducible: Always Steps to Reproduce: 1. emerge -Ca libX11 (if i am right and it would build with that installed) 2. emerge -av1 =app-text/ghostscript-gpl-8.60-r1 Actual Results: fails to build, see build.log from description Expected Results: the package gets installed This patch to configure.ac solves the problem but i dont know whether we still get all the features we need. But since this is simply copied from the Linux case it should be ok. @@ -854,7 +854,11 @@ ;; *BSD) DYNAMIC_CFLAGS="-fPIC" - DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" + if test "x$X_DEVS" != x; then + DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" + else + DYNAMIC_DEVS="" + fi DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" DYNAMIC_LDFLAGS="-fPIC -shared" DYNAMIC_LIBS=""
I was unable to reproduce the error here. I had 8.60 installed and just updated to 8.60-r1 without problem. In steps to reproduce libX11 is uninstalled and then the build fails with missing X headers . . . Portage 2.1.4_rc9 (default-bsd/fbsd/6.2/x86, gcc-4.1.2, freebsd-lib-6.2-r3, 6.2-RELEASE i386) ================================================================= System uname: 6.2-RELEASE i386 i386 Timestamp of tree: Mon, 10 Dec 2007 16:00:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r6, 2.5.1-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0_rc6 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r2 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 6.2-r3 ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd" CBUILD="i686-gentoo-freebsd6.2" CFLAGS="-march=pentium-m -O2 -pipe" CHOST="i686-gentoo-freebsd6.2" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium-m -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks metadata-transfer sfperms strict test unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LINGUAS="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/ndansmith/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac berkdb branding cdr cli cracklib crypt cups dbus dri dvd dvdr flac gdbm gif gtk hal iconv java5 jpeg mad midi mozbranding mp3 ncurses nls objc ogg opengl oss pam pcre perl png ppds python readline reflection session spell spl ssl tcpd test theora tiff unicode vorbis x86-fbsd xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="BSD" VIDEO_CARDS="i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Closing since it's obviously not a ghostscript problem, feel free to reopen if recent versions still fail for you in the same way.