GNOME Bugzilla – Bug 341914
Should not force -I/opt/fdo/include
Last modified: 2006-07-21 00:01:00 UTC
Why is -I/opt/fdo/include being added to my compiler commands? It's clearly not because a needed support library was found there, as I have no such directory. Looks like it's from configure.in: DEPS_CFLAGS="-I /opt/fdo/include $DEPS_CFLAGS" But looking at configure, I see that -I is also added to CFLAGS as a intentional effect of a test for the various X11 extensions (XDAMAGE, etc). Why? If there's something needed, look for it; if it's sometimes not in a place that is usually searched, add it to the places that are searched. Blinding adding paths, especially "high" in the CFLAGS -I list, is a bad idea. On another system, I have a shadow OS installed there with non-standard versions of libraries installed, and I certainly don't want to use them.
I really think that this can be a mistake. By the way, attached is a patch that remove these /opt/fdo/include
Created attachment 69255 [details] [review] Does not force -I/opt/fdo/include
This was a hack to support the old freedesktop.org x server. It's no longer needed (though it would indeed be harmless on most configurations).
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.