Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53268 - libtool refuse to link libGL.la from xorg-x11
Summary: libtool refuse to link libGL.la from xorg-x11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: High blocker
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-07 18:43 UTC by Victor Tseng
Modified: 2004-06-08 12:10 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Tseng 2004-06-07 18:43:20 UTC
while I compiling several opengl-enabled programs, such as blender, mplayer (with "opengl" in USE), xmms (with "opengl" in USE, too), libtool complained:
=== cut here ===
libtool: link: `/usr/lib/libGL.la' is not a valid libtool archive
=== cut here ===

I've done a google search and noticed there's a same problem in the previus nvidia-glx, the reason was because libtool greps for "^# Generated by .*libtool" before using .la files. And the workout was to replace the line in /usr/lib/libGL.la:
=== cut here ===
# Generated by nvidia-installer: 1.0.5
=== cut here ===
with
=== cut here ===
# Generated by nvidia-installer: 1.0.5 (for use by libtool)
=== cut here ===
but while I try to less that libGL.la, it actually looks like a binary file and there's nothing like "# Generated by" in that file.

I'm using the only version of xorg-x11 (which is xorg-x11-6.7.0) in the portage tree, and libtool-1.5.2-r5.

---
and... btw, is everyone using a nvidia/ati/matrox card!? why no one got this problem before...!?
or just no one does 3D with a i830 notebook? :P
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-06-07 18:45:09 UTC
Reopen with output from emerge --info please.
Comment 2 Victor Tseng 2004-06-08 10:01:08 UTC
# emerge info
Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1-palatis)
=================================================================
System uname: 2.6.5-gentoo-r1-palatis i686 Intel(R) Pentium(R) III Mobile CPU      1000MHz
Gentoo Base System version 1.4.16
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -mcpu=pentium3 -march=pentium3 -mfpmath=sse,387 -mmmx -msse -fforce-addr -fomit-frame-pointer -finline-functions -freorder-blocks -frename-registers -pipe -fpic -fPIC"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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="-Os -mcpu=pentium3 -march=pentium3 -mfpmath=sse,387 -mmmx -msse -fforce-addr -fomit-frame-pointer -finline-functions -freorder-blocks -frename-registers -pipe -fpic -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.nsysu.edu.tw/Linux/Gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/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="3ds X X509 Xaw3d aalib accessibility acpi activefilter ada alsa antlr apm atm avi bcel berkdb bidi bonobo brltty bsh caps cdr chroot cjk client crypt cscope cups dedicated dga directfb divx4linux djbfft doc dvb dvd dvdr emacs encode esd f77 fbcon fmod foomaticdb gcj gdbm ggi gif gimpprint glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idea imlib ipv6 jack jack-tmpfs java javamail jbig jdepend jikes joystick jpeg jsch junit jython lcms ldap leim libcaca libg++ libwww lirc live log4j mad mailwrapper matroska md5sum mikmod mmap mmx mng motif mozcalendar mozilla mozxmlterm mpeg nas ncurses nls nptl objc odbc offensive oggvorbis openal opengl optional-tasks oro oss pam parse-clocks pcmcia pdflib perl pic png pnp ppds pwdb python quicktime readline regexp rhino ruby sasl sdk sdl server silc skey slang slp smartcard spell sse ssl svga tcltk tcpd tetex theora threads tiff truetype trusted unicode usb v4l v4l2 video_cards_i830 vim-with-x wmf wsconvert x86 xalan xerces xgetdefault xinerama xml xml2 xmms xosd xv xvid zlib"
Comment 3 Victor Tseng 2004-06-08 11:00:33 UTC
I've emerged nvidia-glx with --nodeps and switched GL to nvidia by using opengl-update nvidia, then blender/mplayer/xmms/etc emerges fine.
But when I wanna switch GL back to xorg-x11 with opengl-update, it just stuck there and not continueing. This is the last line of "bash -x /usr/sbin/opengl-update xorg-x11":
=== cut here ===
+ CURDIR=/root
+ ce /usr/lib
++ grep -l /usr/lib/opengl libAiksaurus.la libAiksaurusGTK.la ... (skip cuz really long, all lib*.la) ... libzvt-2.0.la libzvt.la
+ sed -i 's:/usr/lib/opengl/[^/]*/lib/libGL\.la:/usr/lib/libGL.la:'
=== cut here ===

I manually ln-ed the following libs:
=== cut here ===
# ln -sf /usr/lib/opengl/xorg-x11/lib/libGL.la /usr/lib/libGL.la
# ln -sf /usr/lib/opengl/xorg-x11/lib/libGL.so /usr/lib/libGL.so.1.2
# ln -sf /usr/lib/opengl/xorg-x11/lib/libGL.so.1 /usr/lib/libGL.so.1.2
# ln -sf /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2 /usr/lib/libGL.so.1.2
# ln -sf /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2 /usr/X11R6/lib/libMesaGL.so
# ln -sf /usr/lib/opengl/xorg-x11/extensions/libglx.a /usr/X11R6/lib/modules/extensions/libglx.a
# rm /usr/X11R6/lib/modules/extensions/libglx.so
# for x in gl.h glx.h glxtokens.h; do; if [ -e /usr/X11R6/include/GL/${x} ]; then; rm -f /usr/X11R6/include/GL/${x}; fi; ln -sf /usr/lib/opengl/${GL_IMPLEM}/include/${x}                         /usr/X11R6/include/GL/${x}; done
=== cut here ===
then restarted X, after that everything (glxgears, blender, etc) works fine.
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-08 12:10:13 UTC
Try opengl-update 1.7.1.