Bug 51335 - Compile Error: GL/gl.h: No such file or directory
Summary: Compile Error: GL/gl.h: No such file or directory
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: All Linux (All)
: medium critical
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-22 08:06 UTC by U. Artie Eoff
Modified: 2012-06-23 11:17 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
bisect/compile log (115.31 KB, text/plain)
2012-06-22 08:11 UTC, U. Artie Eoff
Details
Possible fix (1.08 KB, patch)
2012-06-22 08:19 UTC, Laurent carlier
Details | Splinter Review
proper patch (1.08 KB, patch)
2012-06-22 09:41 UTC, Laurent carlier
Details | Splinter Review
fix space problem (1.08 KB, patch)
2012-06-22 10:37 UTC, Laurent carlier
Details | Splinter Review

Description U. Artie Eoff 2012-06-22 08:06:34 UTC
Bisect bad commit result:

http://cgit.freedesktop.org/mesa/mesa/commit/?id=95836b46e77abfe5411922eb7cf71a18c028f42a

Issue Summary:

Mesa master (d988ea5e810868244eb1a1e7ede32295c9ed9ad4) does not compile... the following error occurs:

In file included from ../x86/gen_matypes.c:40:0:
../../../src/mesa/main/glheader.h:53:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.

Steps:

1. clone mesa master
2. ensure mesa-GL-devel package is not installed on your system.
3. ./autogen.sh --enable-gles2 --disable-gallium-egl --with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi
4. make -j4

Result:

make -j4 fails with the aforementioned error.
Comment 1 U. Artie Eoff 2012-06-22 08:11:05 UTC
Created attachment 63349 [details]
bisect/compile log
Comment 2 Laurent carlier 2012-06-22 08:19:35 UTC
Created attachment 63350 [details] [review]
Possible fix

Possible fix, see http://lists.freedesktop.org/archives/mesa-dev/2012-June/023158.html
Comment 3 Laurent carlier 2012-06-22 09:41:56 UTC
Created attachment 63353 [details] [review]
proper patch
Comment 4 Laurent carlier 2012-06-22 10:37:25 UTC
Created attachment 63354 [details] [review]
fix space problem
Comment 5 Brian Paul 2012-06-22 16:26:35 UTC
Committed as 78ac9af58021b7cc649c35fda112f61c98b31766.  Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.