Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27169 - imlib2 fails to compile with USE="-X"
Summary: imlib2 fails to compile with USE="-X"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-23 03:30 UTC by Brandy Westcott (RETIRED)
Modified: 2003-11-08 11:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge log (emerge.log,23.71 KB, text/plain)
2003-08-23 03:34 UTC, Brandy Westcott (RETIRED)
Details
config log (config.log,33.15 KB, text/plain)
2003-08-23 03:35 UTC, Brandy Westcott (RETIRED)
Details
imlib2-1.1.0.ebuild.diff (imlib2-1.1.0.ebuild.diff,341 bytes, patch)
2003-10-31 06:10 UTC, Mamoru KOMACHI (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brandy Westcott (RETIRED) gentoo-dev 2003-08-23 03:30:03 UTC
Both imlib2-1.0.6.20030220-r1 and imlib2-1.0.7.20030629 fail to compile when 
USE="-X" is set. The configure script shows: 
 
	checking for X... disabled 
	configure: WARNING: Xlib support is disabled. 
 
However Xlib seems to be needed for compiling parts of the api.c and font.c source. 

Reproducible: Always
Steps to Reproduce:
1. USE="-X" emerge imlib2 
 
Actual Results:  
 

Expected Results:  
 

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) 
================================================================= 
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz 
GENTOO_MIRRORS="ftp://ftp.citylink.co.nz/gentoo http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif gpm jpeg gnome libg++ 
mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms 
xv zlib gtkhtml gdbm berkdb slang readline arts bonobo svga java X sdl tcpd pam 
libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl 3dfx cdr doc dvd 
sse tcltk tetex -3dnow" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Brandy Westcott (RETIRED) gentoo-dev 2003-08-23 03:34:04 UTC
Created attachment 16495 [details]
emerge log
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-08-23 03:35:19 UTC
Created attachment 16496 [details]
config log
Comment 3 Thomas Capricelli 2003-08-24 14:08:56 UTC
hello. i confirm this behaviour. For some reason imlib2 is needed on my x-less 
server. (-x -X in USE). and imlib2 can't compile. tried with 
imlib2-1.0.7.20030629.ebuild and imlib2-1.0.6.20030220-r1.ebuild. 
 
the error is the following : 
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I../loaders -I../libltdl 
-I/usr/X11R6/include -I/usr/include -I/usr/include -march=i586 -O3 -pipe -c 
api.c -MT api.lo -MD -MP -MF .deps/api.TPlo  -fPIC -DPIC -o .libs/api.lo 
In file included from api.c:34: 
font.h:119: parse error before "XFontSet" 
 
reason is that this XFontSet is declared on none of the .h on the system.. 
 
XFontSet is declared in /usr/include/X11/Xlib.h: which of course is not 
included if xfree is not installed. 
Comment 4 Brandy Westcott (RETIRED) gentoo-dev 2003-08-24 18:28:13 UTC
Quote from the Imlib2 homepage 
(http://www.enlightenment.org/pages/imlib2.html) : 
 
	Imlib 2 can run without a display, so it can be easily used for 
	background image processing for web sites or servers - it only 
	requires the X libraries to be installed - that is all - it does not 
	require an XServer to run unless you wish to display images 
 
Comment 5 SpanKY gentoo-dev 2003-08-25 20:49:36 UTC
thanks brandy, i've added virtual/x11 to DEPEND in all the imlib2 ebuilds
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2003-08-25 21:22:51 UTC
actually, this bug serves as a reminder of what all needs to change when xfree-libs becomes a separate package
Comment 7 Jens Gassmann 2003-09-10 07:20:15 UTC
i speak with the author of imlib2 and hi help me to create a version without X. Her corrected this in the cvs of imlib2. Simply remove all #include <X11/*> from the source and try to compile with --without-x an all runs fine. Hth
Comment 8 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-10-31 06:10:23 UTC
Created attachment 20012 [details, diff]
imlib2-1.1.0.ebuild.diff
Comment 9 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-10-31 06:12:49 UTC
As for imlib2-1.1.0.ebuild, it can be compiled with USE="-X" without
virtual/x11 dependency. Please apply a patch attached above.
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-01 13:53:31 UTC
Should be fixed in 1.1.0-r1.  Reopen if there are still issues.
Comment 11 SpanKY gentoo-dev 2003-11-01 21:47:44 UTC
bleh
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-02 07:25:16 UTC
Ok, really fixed.  Mike, not that we have to elibtoolize it, else the loaders
and filters have invalid paths in thier .la's ...
Comment 13 SpanKY gentoo-dev 2003-11-03 13:51:19 UTC
umm i dunno who you talked to about imlib2 but it hasnt been 'corrected'
in cvs ... all the files still explicitly require the X11 header files ...

i'll talk to raster (the primary dev of E) and see whats up
Comment 14 SpanKY gentoo-dev 2003-11-08 11:30:19 UTC
ok, i removed the imlib2-1.1.0-rX ebuilds and added in a cvs snapshot

i also pushed 1.1.0 to stable ...
so if you want to build imlib2 w/out X you have to use the snapshot ... i'm
not going to patch imlib2-1.1.0