[Mesa-dev] Possible compiler issue with mesa from git
Michel Dänzer
michel at daenzer.net
Mon Feb 27 23:46:11 PST 2012
On Mon, 2012-02-27 at 16:30 +0100, Jon Arne Jørgensen wrote:
> Hi,
> Not sure if this is the right place.
It wasn't, redirecting to the mesa-dev mailing list.
> I've been running mesa from git for a couple of months,
> but I've been lazy, and haven't updated my git clone in a while.
> Today I did, and I had some trouble compiling.
>
> The compile went fine until "src/mesa/drivers/dri/common/dri_util.c"
> here, I got lots of errors about constants that wasn't defined.
>
> The constants was of type "__DRI_CTX_ATTRIB_FLAGS",
> and similar __DRI_CTX_[...], __DRI_API_[...] defines.
>
> I realized that all these defines are defined in
> "include/GL/internal/dri_interface.h"
> I then checked "src/mesa/drivers/dri/common/dri_util.h", and saw that this has
> a statement to include "<GL/internal/dri_interface.h>".
>
> This made me realize that the compiler is actually reading the
> header-file from my install directory "/opt/xorg/include".
> So, the solution was to delete the "/opt/xorg/include" folder, and recompile.
> Now, everything went smooth, and I'm writing this from my new-compiled
> mesa-driver :)
>
> Now, my question:
> Why did I have to delete my include directory?
> Should not "dri_util.h" include the "dri_interface.h" from withing the
> source tree?
>
> I'll gladly write a bug report on this; if this is a bug.
> If this is expected behavior, just tell me, and I'll leave you alone :)
>
>
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer
More information about the mesa-dev
mailing list