Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 333

Summary: XFree86-4.2.0-r4 is missing libGL.la/libGLU.la
Product: Gentoo Linux Reporter: Lars S. Jensen <larssj>
Component: Current packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 251    

Description Lars S. Jensen 2002-01-25 14:47:45 UTC
XFree86-4.2.0-r4 looks good but it have a problem: no libGLU.la 
It can't build things that uses libtool to find libs: gnome-python

/bin/sh ./libtool --mode=link gcc  -mcpu=i686 -march=i686 -O3 -pipe   -o
_gtkglmodule.la -rpath /usr/lib/python2.2/site-packages -module -avoid-version
gtkglmodule.lo -lgtkgl  -lGLU -lGL -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk
-rdynamic -lgmodule -lgthread -lglib -lpthread -ldl -lXi -lXext -lX11 -lm 
grep: /usr/lib/libGLU.la: No such file or directory
sed: can't read /usr/lib/libGLU.la: No such file or directory
libtool: link: `/usr/lib/libGLU.la' is not a valid libtool archive

Add libGL.la/libGLU.la to XFree86-4.2.0-r4  installation!
Comment 1 Bill Giannikos 2002-01-27 05:52:42 UTC
Files are provided by media-libs/mesa-3.5 and media-libs/mesa-glu-3.5
Comment 2 Bill Giannikos 2002-01-27 06:09:01 UTC
Small correction. media-libs/mesa-glu-3.5 is required, doesn't look like
media-libs/mesa-3.5 is.  Might be a good idea to install it anyway.

Also I don't think there is such a thing as libGL.la, just libGLU.la

The NVIDIA drivers (from NVIDIA's site, not the gentoo ones) actually removes
the libGLU.la file when you install it.  Is this what you did?

Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-01-27 06:49:21 UTC
Hmm .. i commited xfree-4.2.0-r5 hours ago ... it have libGLU and the .la
libtool files.  The files from mesa cannot be used for xfree's libs unchanged
afiak, so merge -r5, or cp the files in files/4.2.0-r5/lib/ to /usr/X11R6/lib

It works here with reported failures.
Comment 4 Lars S. Jensen 2002-01-27 07:05:50 UTC
First: XFree86-4.2.0-r4 and up have Mesa GL/GLU build included!
With he new XFree86-4.2.0-r5 you only need to install media-gfx/nvidia to get
GL and GLU!

I will build it now.

To Bill:
The problems start with Mesa 3.5 because it is building GLU against MesaOS that
depend on the Mesa version of libGL.so 

See http://bugs.gentoo.org/show_bug.cgi?id=245
-- the rest is related to this bug:

NVIDIA can't use the libGLU.la from Mesa >=3.5 and the gl.h from nvidia don't
define GLAPI and GLAPIENTRY that is needed for Mesa glu.h >= 3.5!
Comment 5 Lars S. Jensen 2002-01-27 09:14:54 UTC
I have install XFree-4.2.0-r5
It also require a rebuild of all libs that use libtool and libGL*
I don't use media-lib/mesa(-glu) with XFree-4.2.0-r5 :-)

I found a bug in /usr/X11R6/lib/libGLU.la:
dependency_libs=' -L/usr/X11R6/lib /usr/X11R6/libGL.la -lSM -lICE -lXmu -lXt
-lXext -lXi -lX11 -lpthread 

libGL.la is not install in /usr/X11R6/libGL.la  but in /usr/X11R6/lib/libGL.la
do a 'sed s#/usr/X11R6/libGL.la#/usr/X11R6/lib/libGL.la#' on 
/usr/X11R6/lib/libGLU.la 

This will not help nvidia libGL.la because it is in /usr/lib/

We need a symlink from /usr/lib/libGL.* to /usr/X11R6/lib/libGL.*  in the nvidia
ebuild, so that libtool can find /usr/X11R6/lib/libGL.{so,la}.

Comment 6 Lars S. Jensen 2002-01-27 10:20:54 UTC
Now it works --- the last fix of libGLU.la cvs v1.3 is OK :-).

You can close the bug with XFree-4.2.0-r5.