Summary: | Imlib2 can't seem to find X (imlib2-1.2.0.004) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | jason wohlgemuth <stonent> |
Component: | [OLD] Library | Assignee: | SpanKY <vapier> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | d3vlin, david.morgan, heiko.baums, iyosifov, mail, news, rhill, teidakankan |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
The config log.
config.log generated by the ebuild on the 10th of Apr.05 on my machine imlib2-libX11.patch |
Description
jason wohlgemuth
2005-04-09 22:47:58 UTC
Created attachment 55832 [details]
The config log.
Aurora ~ # locate Xlib.h /usr/lib/perl5/vendor_perl/5.8.2/i686-linux/Tk/pTk/Xlib.h /usr/include/X11/Xlib.h /usr/include/firefox-0.9/widget/nsIDragSessionXlib.h After viewing the log I think the problem was caused by something else failing. I think I will close the bug myself because it now looks like a configuration issue on my behalf. I'll mark invalid because it probably isn't a bug. config.log says that configure cant seem to find 'libX.so' ... Hmm. I don't seem to have libX.so. I'll investigate, but I'm guessing it isn't an imlib issue. I'm getting the same error message on two different boxes. I would appreciate it if you could post any solution you come up with here. Thanks. This version of Imlib2 just made it into x86 and I am getting by exactly the same problem but my system is mainly x86 with few ~x86 packages. I suspect that it is the result of changes in xorg 6.8.2. Definitely a bug and definitely not invalid in my opinion. Probably need to be fixed upstream though. I'll attach my own config.log after this message. Here is my emerge info: Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 21:17:04)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=athlon-xp -fomit-frame-pointer -pipe -fsigned-char -frename-registers -fno-strict-aliasing" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=athlon-xp -fomit-frame-pointer -pipe -fsigned-char -frename-registers -fno-strict-aliasing" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo http://gentoo.eliteitminds.com" 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 3dnow 3dnowex X a52 aac aalib alsa apm arts avi berkdb bidi bitmap-fonts bootsplash cdf cdparanoia cdr crypt cups curl curlwrappers dga divx4linux dvd dvdr dvdread edl emboss emul-linux encode esd exif fam fastcgi fb fbcon fftw flac font-server foomaticdb fortran fpx gdbm ggi gif gimpprint gpm graphviz gtk gtk2 hdf icc imagemagick imlib imlib2 ipv6 jack java jbig joystick jpeg jpeg2k kde lcms ldap libg++ libwww live lzw-tiff mad matroska mikmod mime mmx mmx2 motif mp3 mpeg mysql ncurses netcdf network nlsnptl ogg oggvorbis openal openexr opengl oss pam pdflib perl png portaudio posix python qt quicktime readline real sdl slang spell sse ssl svg svga tcltk tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts unicode usb vidix wmf xanim xine xml xml2 xmms xpm xsl xv xvid xvmc zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS ================== Created attachment 55835 [details]
config.log generated by the ebuild on the 10th of Apr.05 on my machine
Since I'm not the only one. I'll reopen. With a symbolic link "ln -s libX11.so /usr/lib/libX.so" it compiles fine. emerge -v "<media-libs/imlib2-1.2.0.004" installs imlib2-1.2.0-r2, which compiles without the symbolic link. Same here. checking for freetype-config... /usr/bin/freetype-config 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. Created attachment 55850 [details, diff]
imlib2-libX11.patch
it should be using -lX11 rather than -lX.
dirtyepic ~/work $ cat test.c
#include <X11/Xlib.h>
main () {
}
dirtyepic ~/work $ gcc -o test test.c -lX
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lX
collect2: ld returned 1 exit status
dirtyepic ~/work $ gcc -o test test.c -lX11
dirtyepic ~/work $
this patches configure to use the right library. built and tested.
Just patching the Sources and it works. cheers I run everything from cvs, and if I recall correctly, this is caused by the configure script not following the symlink to /usr/X11R6. It is fixed in CVS. put the patch in the files dir of imlib2 and added src_compile() { epatch ${FILESDIR}/imlib2-libX11.patch patched and compiled fine.... thanks Ryan patching is not needed --x-include and --x-library can be passed threw econf. added patch to portage ... it's already been fixed in upstream cvs |