Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 77347

Summary: giblib 1.2.4: imlib-x-test.c depends on X; compile fails
Product: Gentoo Linux Reporter: Tobias Sager <moixa>
Component: [OLD] LibraryAssignee: SpanKY <vapier>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tobias Sager 2005-01-10 00:40:21 UTC
I have no X installed and want to install giblib 1.2.4.
This gives me the following error:

<snip>
>>> Unpacking giblib-1.2.4.tar.gz to /var/tmp/portage/giblib-1.2.4/work
>>> Source unpacked.
/usr/portage/media-libs/giblib/files/imlib-x-test.c:1:22: X11/Xlib.h: No such file or directory
In file included from /usr/portage/media-libs/giblib/files/imlib-x-test.c:2:
/usr/include/Imlib2.h:107: error: syntax error before '*' token
/usr/include/Imlib2.h:108: error: syntax error before '*' token
/usr/include/Imlib2.h:109: error: syntax error before "colormap"
/usr/include/Imlib2.h:110: error: syntax error before "drawable"
/usr/include/Imlib2.h:111: error: syntax error before "mask"
/usr/include/Imlib2.h:136: error: syntax error before '*' token
/usr/include/Imlib2.h:137: error: syntax error before '*' token
/usr/include/Imlib2.h:138: error: syntax error before "imlib_context_get_colormap"
/usr/include/Imlib2.h:139: error: syntax error before "imlib_context_get_drawable"
/usr/include/Imlib2.h:140: error: syntax error before "imlib_context_get_mask"
/usr/include/Imlib2.h:169: error: syntax error before '*' token
/usr/include/Imlib2.h:170: error: syntax error before '*' token
/usr/include/Imlib2.h:170: error: syntax error before '*' token
/usr/include/Imlib2.h:208: error: syntax error before '*' token
/usr/include/Imlib2.h:210: error: syntax error before '*' token
/usr/include/Imlib2.h:213: error: syntax error before "pixmap"
/usr/include/Imlib2.h:239: error: syntax error before "mask"
/usr/include/Imlib2.h:242: error: syntax error before '*' token
/usr/include/Imlib2.h:245: error: syntax error before "mask"
/usr/include/Imlib2.h:255: error: syntax error before "mask"

!!! ERROR: media-libs/giblib-1.2.4 failed.
!!! Function src_compile, Line 21, Exitcode 1
!!! You need to re-emerge Imlib2 with USE=X
!!! If you need support, post the topmost build error, NOT this status message.
</snip>

I have imlib 1.2.0 installed.
System information follows:

<snip>
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control /var/www/localhost/cgi-bin /var/www/localhost/htdocs /var/www/toe.ch/htdocs"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 acpi adns apache2 avi berkdb crypt cups directfb fbcon gdbm gif gpm imagemagick imap ipv6 java jpeg libwww maildir mbox mmx mpeg mysql ncurses nls pam pdflib perl png python readline samba sasl slang socks5 sse ssl usb xml xml2 zlib"
</snip>


The test should not depend on X since X is not a have-to-dependency for imlib2.
(Is it?)
Comment 1 SpanKY gentoo-dev 2005-01-10 06:08:58 UTC
read the error message next time:
!!! You need to re-emerge Imlib2 with USE=X
Comment 2 Tobias Sager 2005-01-10 06:27:05 UTC
Oh. Overlooked it, sorry.
Wouldn't a einfo (or such) be more appropriate?