Summary: | USE="-X" app-text/ghostscript-esp-8.15.1 wants X11 headers | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Harm Geerts <gentoo+bugs> |
Component: | [OLD] Printing | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | will.briggs |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Harm Geerts
2006-02-05 15:48:17 UTC
Can you please try to remove "--with-omni" from the ebuild? I suspect that has caused the problem. The offending flag is "--enable-dynamic", which is probably not dynamic enough :) It builds fine with --with-omni, but I already had libxml2 installed. I just committed a little diff, I hope it helps: --- ghostscript-esp-8.15.1.ebuild.orig 2006-02-06 07:18:31.000000000 +0100 +++ ghostscript-esp-8.15.1.ebuild 2006-02-06 07:21:20.000000000 +0100 @@ -16,7 +16,7 @@ LICENSE="GPL-2 LGPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="X cups cjk emacs gtk threads" +IUSE="X cups cjk emacs gtk threads xml" DEP="virtual/libc >=media-libs/jpeg-6b @@ -26,6 +26,7 @@ X? ( || ( x11-libs/libXt virtual/x11 ) ) gtk? ( >=x11-libs/gtk+-2.0 ) cups? ( >=net-print/cups-1.1.20 ) + xml? ( >=dev-libs/libxml2-2.6.8 ) !virtual/ghostscript" RDEPEND="${DEP} @@ -73,7 +74,7 @@ src_compile() { local myconf - myconf="--enable-dynamic --with-ijs --with-omni --with-jbig2dec" + myconf="--with-ijs --with-jbig2dec" # gs -DPARANOIDSAFER out.ps myconf="${myconf} --with-fontconfig --with-fontpath=/usr/share/fonts:/usr/share/fonts/ttf/zh_TW:/usr/share/fonts/ttf/zh_CN:/usr/share/fonts/arphicfonts:/usr/share/fonts/ttf/korean/baekmuk:/usr/share/fonts/baekmuk-fonts:/usr/X11R6/lib/X11/fonts/truetype:/usr/share/fonts/kochi-substitute" @@ -81,6 +82,8 @@ econf $(use_with X x) \ $(use_enable cups) \ $(use_enable threads) \ + $(use_enable X dynamic) \ + $(use_with xml omni) \ ${myconf} || die "econf failed" emake -j1 || die "make failed" emake so -j1 || die "make failed" Even though it should, it doesn't fix it. It seems the --*-dynamic flag is broken. with --enable-dynamic, it wants the X11 headers with --disable-dynamic, it also wants the X11 headers Not sure what to make of it, but without $(use_enable X dynamic) ghostscript-esp emerges fine. Upstream also has a bugreport concerning this issue http://www.cups.org/espgs/str.php?L1351+P0+S-2+C0+I0+E0+Q Also found here with slightly different output to original poster: My use flags are for ghostscript-esp: USE="cups -X -cjk -emacs -gtk -threads% -xml%" 0 kB i686-pc-linux-gnu-gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O22 -march=athlon -ftracer -pipe -fomit-frame-pointer -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/8.15\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_JPEGLIB_H=1 -DDONT_HAVE_JMEMSYS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_PNG_H=1 -DX_DISPLAY_MISSING=1 -DHAVE_MKSTEMP=1 -DHAVE_HYPOT=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MKFIFO=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SETENV=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -fPIC -shared -I./obj -I./src -o ./obj/gdevxalt.o -c ./src/gdevxalt.c In file included from ./src/gdevxalt.c:22: ./src/x_.h:135:24: X11/Xlib.h: No such file or directory ./src/x_.h:136:26: X11/Xproto.h: No such file or directory ./src/x_.h:137:25: X11/Xatom.h: No such file or directory ./src/x_.h:138:25: X11/Xutil.h: No such file or directory ./src/x_.h:139:29: X11/Intrinsic.h: No such file or directory ./src/x_.h:140:30: X11/StringDefs.h: No such file or directory ./src/x_.h:141:25: X11/Shell.h: No such file or directory distcc[1610] ERROR: compile ./src/gdevxalt.c on 192.168.0.248/1 failed make: *** [obj/gdevxalt.o] Error 1 !!! ERROR: app-text/ghostscript-esp-8.15.1 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. I removed the dynamic line completely, that should fix it. |