[GRASSLIST:3300] regarding configure Problem with glBegin and Mesa

Michael Salisbury michaelsalisbury at comcast.net
Wed Apr 28 14:30:29 EDT 2004


Hi,
I emailed the list about a problem with the configure script for 5.0.3.
I have the latest Mesa library(6.0 something) and when I run the configure script 
I get the message that it can't find the openGL library. In particular, it can't
find glBegin.  I checked libGL.so.1 and it does have glBegin (using nm -d the/library | 
grep glBegin). I took Glynn's advice and looked at the config.log and this is what
the last couple of lines were:
 
configure:9400: gcc -E  -I/usr/X11R6/include/  conftest.c >/dev/null 2>conftest.out
configure:9392: checking for GL/glu.h
configure:9400: gcc -E  -I/usr/X11R6/include/  conftest.c >/dev/null 2>conftest.out
configure:9434: checking for location of OpenGL library
configure:9461: checking for glBegin in -lGL
configure:9478: gcc -o conftest -g -O2    -L/usr/lib  conftest.c -lGL  -L/usr/X11R6/lib  -lSM -lICE -lX11  -lm   1>&5
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
configure: failed program was:
#line 9467 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char glBegin();

int main() {
glBegin()
; return 0; }
configure:9497: checking for glBegin in -lGL
configure:9514: gcc -o conftest -g -O2    -L/usr/lib  conftest.c -lGL  -L/usr/X11R6/lib  -lSM -lICE -lX11  -lm -lpthread  1>&5
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
configure: failed program was:
#line 9503 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char glBegin();

int main() {
glBegin()
; return 0; }
int main() {
glBegin()
; return 0; }
configure:9497: checking for glBegin in -lGL
configure:9514: gcc -o conftest -g -O2    -L/usr/lib  conftest.c -lGL  -L/usr/X11R6/lib  -lSM -lICE -lX11  -lm -lpthread  1>&5
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
configure: failed program was:
#line 9503 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char glBegin();

int main() {
glBegin()
; return 0; }

I don't understand what  is the problem accept that the configure
script isn't finding the libGL.so.1.  Does "confdefs.h" have anything to do with my
problem or is the latest Mesa library too new?  Should I go for an older version of Mesa?

Thanks for your help.

Mike




More information about the grass-user mailing list