Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93300 - imlib2-1.2.0.007 can't find Xorg libs
Summary: imlib2-1.2.0.007 can't find Xorg libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 93308 93384 93431 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-20 00:16 UTC by Ryan Hill (RETIRED)
Modified: 2005-05-21 08:37 UTC (History)
18 users (show)

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


Attachments
imlib2-libX11.patch (imlib2-libX11.patch,346 bytes, patch)
2005-05-20 08:47 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2005-05-20 00:16:44 UTC
checking for X... no
configure: error: no X support found.  Use --x-includes and --x-libraries to specify the X
path on your system, or --without-x to disable X support.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/imlib2-1.2.0.007/work/imlib2-1.2.0.007/config.log

!!! ERROR: media-libs/imlib2-1.2.0.007 failed.


see bug #88546.
Comment 1 Phil Richards 2005-05-20 00:59:13 UTC
Yep, same problem as referenced bug (though personally I think the patch should
apply to both configure and configure.in  :-)

Phil


Comment 2 Ryan Hill (RETIRED) gentoo-dev 2005-05-20 01:14:26 UTC
if i remember correctly there was no equivalent line in configure.in (or more
likely i just couldn't find it). ;)
Comment 3 Phil Richards 2005-05-20 01:17:23 UTC
It's probably the line:

AC_PATH_X([X], [X11/Xlib.h], [XOpenDisplay(NULL)])

but my autoconf memory is a bit weak at the moment, so that might be rubbish :-)

Phil
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-05-20 02:27:44 UTC
*** Bug 93308 has been marked as a duplicate of this bug. ***
Comment 5 Jonathan Smith (RETIRED) gentoo-dev 2005-05-20 05:23:19 UTC
same problem with imlib-1.9.14-r3



Portage 2.0.51.22-r1 (default-linux/x86, gcc-3.4.3-20050110, glibc-2.3.5-r0,
2.6.12-rc4 i686)
=================================================================
System uname: 2.6.12-rc4 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs digest distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi aim alsa apache2 avi bitmap-fonts cdr crypt cups dba
divx4linux dvd encode esd flac fluxbox font-server ftp gd gd-external gif gnome
gtk gtk2 icq idea imap imlib java jikes jpeg mad mmx mozilla mp3 mpeg ncurses
nptl nptlonly ogg oggvorbis opengl pam pcmcia php pic png posix python samba sdl
spell sse sse2 ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb
vim vorbis xmms xprint xv xvid userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 6 Jonathan Smith (RETIRED) gentoo-dev 2005-05-20 05:37:01 UTC
s/imlib-1.9.14-r3/imlib-1.2.0.007

sorry, wrong emerge -pv :-P
Comment 7 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-05-20 06:24:22 UTC
The same:

configure: error: no X support found.  Use --x-includes and --x-libraries to
specify the X
path on your system, or --without-x to disable X support.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/imlib2-1.2.0.007/work/imlib2-1.2.0.007/config.log

!!! ERROR: media-libs/imlib2-1.2.0.007 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


emerge info:
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-ck8 i686)
=================================================================
System uname: 2.6.11-ck8 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/
ftp://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm avi bash-completion berkdb bitmap-fonts bzip2 cdr
crypt dvd emboss extras foomaticdb fortran gtk gtk2 iconv imlib java jpeg
kdeenablefinal libg++ libwww mad mmx mmx2 mozilla mp3 mpeg ncurses nls
no-old-linux nptl offensive ogg oggvorbis opengl pam perl png postgres python qt
quicktime readline samba sse sse2 ssl svg tcpd tiff truetype truetype-fonts
type1-fonts vorbis xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 8 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-05-20 06:27:20 UTC
Related part of config.log:

configure:20107: checking for X
configure:20213: i686-pc-linux-gnu-gcc -E  conftest.c
configure:20219: $? = 0
configure:20269: i686-pc-linux-gnu-gcc -o conftest -march=pentium4 -O2 -mmmx
-msse -msse2 -mfpmath=sse -pipe   conftest.c -lX  >&5
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lX
collect2: ld returned 1 exit status
configure:20275: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "imlib2"
| #define VERSION "1.2.0.007"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define PACKAGE_BIN_DIR "/usr/bin"
| #define PACKAGE_LIB_DIR "/usr/lib"
| #define PACKAGE_DATA_DIR "/usr/share/imlib2"
| #define PACKAGE_SOURCE_DIR
"/var/tmp/portage/imlib2-1.2.0.007/work/imlib2-1.2.0.007"
| #define DO_MMX_ASM 1
| /* end confdefs.h.  */
| #include <X11/Xlib.h>
| int
| main ()
| {
| XOpenDisplay(NULL)
|   ;
|   return 0;
| }
configure:20327: result: no
configure:20350: error: no X support found.  Use --x-includes and --x-libraries
to specify the X
path on your system, or --without-x to disable X support.
Comment 9 merwan kashouty 2005-05-20 08:38:09 UTC
same here.... adding this patch makes it workie.... https://svn.uludag.org.tr/paketler/trunk/media-libs/
imlib2/files/imlib2-1.2.0.004-x-lib.patch
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2005-05-20 08:47:18 UTC
Created attachment 59385 [details, diff]
imlib2-libX11.patch

according to #88546 this was supposed to be fixed upstream, but it doesn't look
like it was.  configure.in should ultimately be fixed but i need to read up on
autotools first ;P.  this will work in the meantime.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2005-05-20 08:49:56 UTC
maybe i should also include what needs to be added to the ebuild in case
anyone's unfamiliar with them:

src_unpack() {
	unpack ${A}
	cd ${S}

	epatch ${FILESDIR}/imlib2-libX11.patch
}
Comment 12 Nathan Toone 2005-05-20 09:49:35 UTC
I can verify that this patch works...fixed the problem for me! 
Comment 13 Howard B. Golden 2005-05-20 12:10:21 UTC
Ryan's patch in comment #10 and application in comment #11 work for me.

Thanks, Ryan!
Comment 14 Olivier Castan 2005-05-20 13:49:46 UTC
configure.in seems to be correct. I've modified the ebuild with :
cd ${S}
autoreconf
libtoolize --copy --force

before export "MY_ECONF[...]"
and imlib2 is building fine
Comment 15 SpanKY gentoo-dev 2005-05-20 14:47:49 UTC
fixed in portage
Comment 16 Damien Thébault 2005-05-20 16:17:06 UTC
*** Bug 93384 has been marked as a duplicate of this bug. ***
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2005-05-21 08:37:27 UTC
*** Bug 93431 has been marked as a duplicate of this bug. ***