﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
3237	MesaLib Demos can not find GL/gl.h	Marcel van den Boer	Wayne Blaszczyk	"Compilation of MesaLib fails with:

{{{
make[1]: Entering directory `/sources/Mesa-7.9/xdemos'
gcc -L../lib -lGL -o glxinfo glxinfo.c
glxinfo.c:41:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make[1]: *** [glxinfo] Error 1
make[1]: Leaving directory `/sources/Mesa-7.9/xdemos'
make: *** [default] Error 1
}}}

A similar error occurs when not applying the same solution to glxgears:

{{{
make[1]: Entering directory `/sources/Mesa-7.9/xdemos'
gcc -I../include -L../lib -lGL -o glxinfo glxinfo.c
gcc -L../lib -lGL -o glxgears glxgears.c
glxgears.c:36:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make[1]: *** [glxgears] Error 1
make[1]: Leaving directory `/sources/Mesa-7.9/xdemos'
make: *** [default] Error 1
}}}

The solution: Add {{{-I$(TOP)/include}}} to the list of arguments for both glxinfo and glxgears in xdemos/Makefile.

My system: LFS-6.8, BLFS svn-20110326 (revision 8876)

Unless I am the only one who has this problem, the attached patch can be used to replace the one currently used in BLFS to solve this."	defect	closed	normal		BOOK	SVN	medium	fixed	mesalib mesademos mesa gl.h	
