Missing GL/gl.h

Bug #29435 reported by Theo van Klaveren
32
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Fix Released
Medium
Adam Conrad

Bug Description

I'm missing GL/gl.h on my Dapper system, updated as of yesterday. I'm guessing it should be in libgl1-mesa-dev, but I'm not sure! Did I miss a package this file could be in, or is something wrong here? I have installed:

libgl1-mesa and libgl1-mesa-dev 6.4.1-0ubuntu3
xorg-driver-fglrx and -dev 6.9.0-8.20.8+2.6.15.4-3

Revision history for this message
Michael Poole (ubuntu-mdpoole) wrote :

It should be in mesa-common-dev. I saw the same missing header on a system that I upgraded from Breezy to Dapper today, but not one that has been running Dapper for a while. "dpkg -r --force-depends mesa-common-dev" followed by "apt-get install mesa-common-dev" restored it on the system with problems, but I do not know what caused it.

The only clue I found is that "dpkg -L mesa-common-dev" for the problematic package was missing all the /usr/include/GL/*.h files, even though it listed the directory. The package with it showed gl.h, glext.h, gl_mangle.h and osmesa.h in that directory.

Revision history for this message
Theo van Klaveren (t-vanklaveren) wrote :

I had already copied the gl.h and gl_ext.h files from another pc running Breezy, so I don't know if this workaround worked. But it's still an upgrade bug, methinks.

Revision history for this message
Matt Zimmerman (mdz) wrote :

Another package must have replaced those files and then removed them in a later version.

Changed in mesa:
status: Unconfirmed → Confirmed
Changed in mesa:
assignee: nobody → adconrad
Revision history for this message
Emanuel Steen (kozz) wrote :

Had the same problem after an update from Breezy to Dapper, apt-get install --reinstall mesa-common-dev fixed it.

Revision history for this message
Soewono Effendi (seffendi) wrote :

GL/xmesa.h is also missing.

Revision history for this message
Adam Conrad (adconrad) wrote :

Oh great. This is a bug in breezy that will be a pain try to work around. Basically, we have this in breezy:

libgl1-mesa-dev contains the headers
libgl1-mesa-dev has an unversioned Replaces on mesa-common-dev

And in dapper:

libgl1-mesa-dev depends on mesa-common-dev
mesa-common-dev ships the headers

So, on upgrade, mesa-common-dev is installed first, the forward Replaces lets libgl1-mesa-dev continue to own the files, then the new libgl1-mesa-dev is installed, which no longer contains the files.

I'll go ponder how to solve this sanely.

Revision history for this message
Stefano Costa (steko) wrote :

none of the various dpkg/apt related workarounds works for me right now.

Revision history for this message
Stefano Costa (steko) wrote :

I was wrong. Sorry. Bad use of locate betrayed me! The workarounds FIX it.

Revision history for this message
Bill Coffman (bill-coffman) wrote :

I'm running Dapper.

Not sure if this is related. I was missing GL/glu.h and ultimately found the correct package, libglu1-mesa-dev-6.4.1-0ubuntu8. This was on the distribution list, and what apt-get tried to install.

It had a dependency, libglu1-mesa-6.4.1-0ubuntu8, which is totally normal and expected. However, I had already installed libglu1-mesa-6.4.1-0ubuntu7 (note the last character difference). You might think an apt-get install libglu1-mesa would give me the latest, but it did not (yes, I did apt-get update). To fix, I downloaded *ubuntu8 from the web site, and dpkg -i'd it.

My sources file is pretty normal, I think from the regular ubuntu source. If it would help, I could find it for you, but that will have to wait a few hours.

Revision history for this message
Paul Sladen (sladen) wrote :

Hi Bill, doing:

  sudo apt-get install libglu-dev

will install the development library for you. To make sure that 'apt' knows about the latest versions of each package available, you will need to do:

  sudo apt-get update

first.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 29435] Re: Missing GL/gl.h

Bill, completely different problem and not visible on my system. Please
do an apt-get update.

Revision history for this message
Marc Hartmann (marc-71) wrote :

It is also a problem on edgy.

>> "dpkg -r --force-depends mesa-common-dev" followed by "apt-get install mesa-common-dev" restored it on the system with problems, but I do not know what caused it.

from Michael will fix it.
Hmm but what happened.

Marc

Revision history for this message
Marc Hartmann (marc-71) wrote :

>> install mesa-common-dev"
this did not install gl.h, don't know why.

A solution can be to extract the nvidia driver and put all the headers
from include into the /usr/include/GL. After programms and programming
against opengl works fine.

Greetings Marc

Marc Hartmann schrieb:
> It is also a problem on edgy.
>
>
>>> "dpkg -r --force-depends mesa-common-dev" followed by "apt-get
>>>
> install mesa-common-dev" restored it on the system with problems, but I
> do not know what caused it.
>
> from Michael will fix it.
> Hmm but what happened.
>
> Marc
>
>

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Adam: maybe we can close this one now?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

closing the bug, mesa-common-dev in Feisty has GL/gl.h.

Changed in mesa:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.