Possible compiler issue with mesa from git

Jon Arne Jørgensen jonjon.arnearne at gmail.com
Mon Feb 27 07:30:00 PST 2012

Not sure if this is the right place.

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
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 :)


More information about the xorg mailing list