Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
media-libs/mesa can't find -lX11 [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
AeroIllini
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2004
Posts: 94

PostPosted: Sat Feb 17, 2007 8:03 pm    Post subject: media-libs/mesa can't find -lX11 [solved] Reply with quote

I'm trying to install media-libs/mesa as part of a fresh install, and I get the following error:
Code:
mklib: Making Linux shared library:  libGL.so.1.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../libX11.so when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../libX11.a when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libX11.a when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
mklib: Installing libGL.so.1.2 libGL.so.1 libGL.so in ../../../lib64
mv: cannot stat `libGL.so.1.2': No such file or directory
make[3]: *** [../../../lib64/libGL.so] Error 1
make[3]: Leaving directory `/build/portage/media-libs/mesa-6.5.1-r1/work/Mesa-6.5.1/src/glx/x11'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/build/portage/media-libs/mesa-6.5.1-r1/work/Mesa-6.5.1/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/build/portage/media-libs/mesa-6.5.1-r1/work/Mesa-6.5.1'
make: *** [linux-dri-x86] Error 2

!!! ERROR: media-libs/mesa-6.5.1-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3378:   Called src_compile
  mesa-6.5.1-r1.ebuild, line 215:   Called die

!!! Build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/build/portage/media-libs/mesa-6.5.1-r1/temp/build.log'.


I don't understand why mesa is trying to build linux-dri-x86, everything in my system is supposed to be amd64.

Code:
# emerge --info
Portage 2.1.2-r9 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 17 Feb 2007 18:20:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -Wall"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon64 -pipe -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ "
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/build"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X aac aalib aim alsa amd64 berkdb bitmap-fonts bluetooth bonobo cairo cdparanoia cdr cli cracklib crypt cups dbus directfb dlloader doc dri dvd dvdr dvdread eds emboss encode fam ffmpeg firefox flac fortran ftp gdbm gif gimp gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv imagemagick ipv6 isdnlog jabber java jpeg jpeg2k ldap libg++ mad matroska midi mikmod mng mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl oscar oss pam pcre pdflib perl php png ppds pppd python qt3 qt4 quicktime readline reflection rtc scanner sdl session sockets speex spell spl ssl svg svgalib tcpd tga theora tidy tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis wmf xine xinerama xlib xml xml2 xorg xosd xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I saw several other posts in the forums with this same problem, but all the fixes seem to be disabling the "motif" and "x86" USE variables, which I don't have enabled, or re-emerging libX11, which I already tried.

Help!


Last edited by AeroIllini on Sat Feb 17, 2007 9:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
blubb
Retired Dev
Retired Dev


Joined: 16 Feb 2004
Posts: 51
Location: Switzerland

PostPosted: Sat Feb 17, 2007 9:44 pm    Post subject: Reply with quote

That was a glitch I introduced when fixing some bug. It's corrected again.
Back to top
View user's profile Send private message
AeroIllini
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2004
Posts: 94

PostPosted: Sat Feb 17, 2007 9:51 pm    Post subject: Reply with quote

That fixed it!

Thanks, blubb.
Back to top
View user's profile Send private message
fumoffu
Apprentice
Apprentice


Joined: 25 Dec 2005
Posts: 179
Location: Somewhere between heaven and hell...

PostPosted: Sat Feb 17, 2007 10:12 pm    Post subject: Reply with quote

blubb wrote:
That was a glitch I introduced when fixing some bug. It's corrected again.


Excuse me, but I don't get it :o . I'm having the same problem. Should I just wait, sync tomorrow and try again? I'm still getting this error.
_________________
"People said I should accept the world. Bullshit! I don't accept the world!"
- Richard Stallman

http://www.lastfm.de/user/penguin-guy
Back to top
View user's profile Send private message
AeroIllini
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2004
Posts: 94

PostPosted: Sun Feb 18, 2007 6:06 am    Post subject: Reply with quote

The fix should be in the Portage tree already. Sync and it should fix it.

If not, run the following:
Code:
# sed -i -e 's/-eq/==/' /usr/portage/media-libs/mesa/mesa-6.5.1-r1.ebuild
# equery /usr/portage/media-libs/mesa/mesa-6.5.1-r1.ebuild digest
# emerge -av mesa
Back to top
View user's profile Send private message
sadler121
n00b
n00b


Joined: 01 May 2004
Posts: 18
Location: Galesburg,IL

PostPosted: Sun Feb 18, 2007 8:11 am    Post subject: Reply with quote

I am still getting the following error after doing an emerge --sync:

Code:

mklib: Making Linux shared library:  libGL.so.1.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: s
kipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../libX11.so w
hen searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: s
kipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../libX11.a wh
en searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: s
kipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: s
kipping incompatible /usr/lib/libX11.a when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: c
annot find -lX11
collect2: ld returned 1 exit status
mklib: Installing libGL.so.1.2 libGL.so.1 libGL.so in ../../../lib64
mv: cannot stat `libGL.so.1.2': No such file or directory
make[3]: *** [../../../lib64/libGL.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2/work/Mesa-6.5
.2/src/glx/x11'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2/work/Mesa-6.5
.2/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2/work/Mesa-6.5
.2'
make: *** [linux-dri-x86] Error 2

!!! ERROR: media-libs/mesa-6.5.2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3374:   Called src_compile
  mesa-6.5.2.ebuild, line 221:   Called die
Back to top
View user's profile Send private message
fumoffu
Apprentice
Apprentice


Joined: 25 Dec 2005
Posts: 179
Location: Somewhere between heaven and hell...

PostPosted: Sun Feb 18, 2007 8:26 am    Post subject: Reply with quote

Solved indeed. After syncing again, Mesa compiles fine now. Thanks!

@sadler121: Did you notice you are trying to compile the unstable versionof Mesa (6.5.2)? Maybe you should try the latest stable version once again (6.5.1-r1).
_________________
"People said I should accept the world. Bullshit! I don't accept the world!"
- Richard Stallman

http://www.lastfm.de/user/penguin-guy
Back to top
View user's profile Send private message
microto
n00b
n00b


Joined: 18 Feb 2007
Posts: 1

PostPosted: Sun Feb 18, 2007 1:11 pm    Post subject: Reply with quote

I had the same problem, just emerge --sync, and its fixed ( version 6.5.2)
Back to top
View user's profile Send private message
sadler121
n00b
n00b


Joined: 01 May 2004
Posts: 18
Location: Galesburg,IL

PostPosted: Sun Feb 18, 2007 5:48 pm    Post subject: Reply with quote

yep, emerge --sync worked this time.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Feb 19, 2007 5:51 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Desktop Environments.
Not about installing gentoo, so moved here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
polyglot
n00b
n00b


Joined: 10 Mar 2004
Posts: 55

PostPosted: Thu Jul 24, 2008 2:21 pm    Post subject: still not working Reply with quote

Hey guys,

I know it's an old thread, but I'm having this very problem. Occurs with mesa-6.5.2 and 7.0.3... I'd try with 6.5.1 but that has since disappeared from the portage tree! I have a freshly synced tree as of today (20080724). I have built a fresh libX11-1.1.4

I'm also having a similar issue with nvidia-drivers attempting to install the 32-bit version on my 64-bit machine. Not sure if they're related.

(I'm moving from ATI to nvidia, hence the rebuilding of X).
Back to top
View user's profile Send private message
mbentley
n00b
n00b


Joined: 25 Jul 2008
Posts: 10
Location: indianapolis, indiana

PostPosted: Fri Jul 25, 2008 10:54 am    Post subject: Re: still not working Reply with quote

polyglot wrote:
Hey guys,

I know it's an old thread, but I'm having this very problem. Occurs with mesa-6.5.2 and 7.0.3... I'd try with 6.5.1 but that has since disappeared from the portage tree! I have a freshly synced tree as of today (20080724). I have built a fresh libX11-1.1.4

I'm also having a similar issue with nvidia-drivers attempting to install the 32-bit version on my 64-bit machine. Not sure if they're related.

(I'm moving from ATI to nvidia, hence the rebuilding of X).


i am having a similar problem too on a new amd64 build i just started yesterday. i just ran "emerge gnome" and here is what i get when i come to mesa:

Code:

*SNIP*

mklib: Making Linux shared library:  libGL.so.1.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../libX11.so when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../libX11.a when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libX11.a when searching for -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
mklib: Installing libGL.so.1.2 libGL.so.1 libGL.so in ../../../lib64
mv: cannot stat `libGL.so.1.2': No such file or directory
make[3]: *** [../../../lib64/libGL.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2-r1/work/Mesa-6.5.2/src/glx/x11'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2-r1/work/Mesa-6.5.2/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2-r1/work/Mesa-6.5.2'
make: *** [linux-dri-x86] Error 2
 *
 * ERROR: media-libs/mesa-6.5.2-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2491:  Called die
 * The specific snippet of code:
 *       emake -j1 ${CONFIG} || die "Build failed"
 *  The die message:
 *   Build failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-libs/mesa-6.5.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-6.5.2-r1/temp/environment'.
 *

 * Messages for package media-libs/mesa-6.5.2-r1:

 *
 * ERROR: media-libs/mesa-6.5.2-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2491:  Called die
 * The specific snippet of code:
 *       emake -j1 ${CONFIG} || die "Build failed"
 *  The die message:
 *   Build failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-libs/mesa-6.5.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-6.5.2-r1/temp/environment'.


i already ran revdep-rebuild to make sure i wasn't missing a dependency but i got nothing.

anyone have any clues?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum