Google
  Web www.spinics.net

Possible compiler issue with mesa from git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi,
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
"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 :)


-- 
Jonarne
http://jonarne.no
_______________________________________________
xorg@xxxxxxxxxxx: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: list-xorg@xxxxxxxxxxx


[X Forum]     [Nouveau Driver]     [Devices]     [XFree86]     [XFree86 Newbie]     [Site Home]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]     [Linux Resources]

Powered by Linux