Bug 72426 - libcaca trouble with /usr/X11R6/lib move
Bug#: 72426 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: media-video@gentoo.org Reported By: swtaylor@gentoo.org
Component: Ebuilds
URL: 
Summary: libcaca trouble with /usr/X11R6/lib move
Keywords:  
Status Whiteboard: 
Opened: 2004-11-25 00:54 0000
Description:   Opened: 2004-11-25 00:54 0000
Currently, with xorg-x11-6.8.0-r4's move of the libraries, libcaca does not
find
the proper libraries. Basically the same issue as 69400 which was for 
libxklavier instead. So far though, these are the only two packages i've 
come across that have this problem:

checking for X... libraries , headers /usr/X11R6/include
checking for XOpenDisplay in -lX11... no
checking X11/XKBlib.h usability... yes
checking X11/XKBlib.h presence... yes
checking for X11/XKBlib.h... yes
configure: error: cannot find X11 development files

!!! ERROR: media-libs/libcaca-0.9-r1 failed.



Adding *either* of the following to the econf call makes it work:
-x-libraries=/usr/lib \

-x-libraries=/usr/X11R6/lib \

however it's autodetection doesn't do so well.

------- Comment #1 From Donnie Berkholz 2004-11-25 11:48:45 0000 -------
Wanna attach config.log?

------- Comment #2 From Scott Taylor (RETIRED) 2004-11-25 12:16:31 0000 -------
Created an attachment (id=44735) [details]
config.log

same thing happens on multiple machines here, each with xorg 6.8.0-r4

------- Comment #3 From Donnie Berkholz 2004-11-25 12:19:45 0000 -------
Try making a patch like the one in comment #4 on bug #72124.

------- Comment #4 From Donnie Berkholz 2004-11-25 12:23:22 0000 -------
You can clearly see what happens here:

configure:21036: checking for XOpenDisplay in -lX11
configure:21066: i686-pc-linux-gnu-gcc -o conftest -O2 -march=athlon-tbird -funit-at-a-time -mno-sse -mno-sse2 -mno-sse3  -DOPTIMISE_SLANG_PALETTE=1  conftest.c -lX11 -lXt -L  >&5
i686-pc-linux-gnu-gcc: argument to `-L' is missing

It assumes that a -L/path/to/X/stuff will be required, so when it finds X in /usr/lib, it gets confused and just does -L.

------- Comment #5 From Daniel Rose 2005-01-03 04:41:44 0000 -------
I can confirm this error. By the way: Why do I need libcaca all of a sudden?
Since I dif emerge sync this day it seems to be required.

------- Comment #6 From Zac Medico 2005-01-03 10:53:57 0000 -------
# $Header: /var/cvsroot/gentoo-x86/media-libs/xine-lib/ChangeLog,v 1.182
2005/01/03 03:26:58 chriswhite Exp $

  03 Jan 2005; Chris White <chriswhite@gentoo.org> xine-lib-1.0.ebuild:
  Quick fix. Removed libcaca USE flag but forgot to remove the conditional dep
  as it appears xine-lib doesn't play nice if you don't have it.

------- Comment #7 From Kenyon Ralph 2005-01-03 15:37:44 0000 -------
This has been fixed according to the duplicate Bug 76517.

------- Comment #8 From Donnie Berkholz 2005-01-03 15:56:54 0000 -------
Scott, can you confirm?

------- Comment #9 From David Klempner 2005-01-03 16:28:54 0000 -------
I'll say that it works for me, now, and it did not work before.

------- Comment #10 From Tony Harmelink 2005-01-03 16:29:21 0000 -------
same problem with xorg-x11-6.8.1.901

------- Comment #11 From Kenyon Ralph 2005-01-03 16:37:04 0000 -------
Worked for me now too, but didn't before. ~x86

------- Comment #12 From Tony Harmelink 2005-01-03 16:44:03 0000 -------
works here now too

------- Comment #13 From Chris White (RETIRED) 2005-01-03 17:12:05 0000 -------
Ok then, closing this jolly ole bug :P.

------- Comment #14 From Tobias Sager 2005-01-05 03:59:07 0000 -------
0.9-r1 does not work for me with xorg-x111-6.8.0-r3.
Will attach config.log.

------- Comment #15 From Tobias Sager 2005-01-05 04:00:03 0000 -------
Created an attachment (id=47693) [details]
config.log

------- Comment #16 From Tobias Sager 2005-01-07 23:07:50 0000 -------
Am I the only one still having this problem?

<snip>
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.2.5-r2,glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 i686)
=================================================================
System uname: 2.6.9-gentoo-r9 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
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.18,sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks moo sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirror.icd.hu/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage.local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aalib acl acpi alsa apm avi berkdb bitmap-fonts bonobo cdr chroot crypt cups dga dillo directfb divx4linux dvd encode esd ethereal fam fbcon flac foomaticdb fortran freetds gdbm ggi gif gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java javascript jce jpeg junit libg++ libwww mad maildir mbox mikmod motif mpeg mysql ncurses nls offensive oggvorbis opengl oss pam pcmcia pda pdflib perl php png pnp python qt quicktime readline samba sdl slang speex spell sse ssl svga tcltk tcpd tetex tiff truetype trusted unicode usb xface xfs xml xml2 xmms xv xvid zlib"
</snip>

------- Comment #17 From Tobias Sager 2005-01-10 13:36:08 0000 -------
Thank's Chris. It works now.
Nit: a short notice would have been helpful though..

------- Comment #18 From Jan Brinkmann (RETIRED) 2005-03-12 17:29:36 0000 -------
*** Bug 77804 has been marked as a duplicate of this bug. ***