[3379] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: building Mesa libs

daemon@ATHENA.MIT.EDU (Mark Hamstra)
Fri Nov 8 10:49:03 1996

From: Mark Hamstra <mhamstra@sullivan.bentley.com>
Date: Fri, 8 Nov 1996 10:50:43 -0500 (EST)
To: redhat-list@redhat.com
In-Reply-To: <Pine.GSO.3.95.961108023824.11120A-100000@eddie>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

John Doe <g5ulczek@cdf.toronto.edu> wrote:
> I was wondering if anyone has tried to build the Mesa libraries under
> Red Hat 4.0. I'm getting errors when trying to compile the package. It
> seems to die when it tries to compile the demos, the message I get is;
> 
> make[2]: Entering directory `/usr/local/Mesa-1.2.7/demos'
> gcc -I../include -pedantic -fPIC -funroll-loops -O2 -mieee-fp -DSHM
> bounce.c -L../lib -lMesaaux -lMesatk -lMesaGLU -lMesaGL -lm
> -L/usr/X11/lib
> -lX11 -lXext -o bounce
> ld: cannot open -lieee: No such file or directory
> make[2]: *** [bounce] Error 1
> make[2]: Leaving directory `/usr/local/Mesa-1.2.7/demos'
> make[1]: *** [linux-elf] Error 2
> make[1]: Leaving directory `/usr/local/Mesa-1.2.7/demos'
> make: *** [linux-elf] Error 2
> 
> 
> I don't really understand what the problem is. I had no problem
> compiling
> it under slackware. Is Red Hat missing some libraries?

First, get the Mesa 2.0 sources.  Yes, I know there's no RPM, but you
can almost drop the 2.0 sources into the existing SRPM file without
changing it (o.k., there are a couple of changes in the SPEC, but they
are obvious and trivial...).

Second, the functionality of libieee is now built into libm, so you
don't really need to link -lieee separately anymore.  There are two
basic solutions: 1) Go through the Mesa makefiles and find where the
requirement for libieee is coming from and delete it (making sure that
libm is linked); 2) Link  /usr/lib/libieee.so --> /lib/libm.so.5 (e.g.,
ln -s /lib/libm.so.5 /usr/lib/libieee).  

I used this second approach because I was thinking about uploading my
Mesa-2.0-1.src.rpm to ftp.redhat.com/Incoming a while ago, and I wanted
it to build correctly on Picasso machines (which have, and apparently
need, libieee.a).  The only reason I didn't upload it is because I
didn't (and don't) have a machine running rpm-2.0.x and because I wanted
to find a solution that didn't require Picasso++ users to manually link
libieee --> libm.  If y'all want what I got, give me a holler and I'll
find the time to put it up later today.

Mark Hamstra
Bentley Systems, Inc.


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post