Bug 12310

Summary: Change the include order in the generated Makefile
Product: xorg Reporter: Jaime Torres <jtorres>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: trivial    
Priority: low    
Version: 7.2 (2007.02)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Jaime Torres 2007-09-07 03:24:29 UTC
When compiling the xorg-server-1.4, the configure script generated the following include sequence:
-I/usr/X11R6/include -I/usr/X11R6/include/xorg -I/usr/X11R6/include/pixman-1 -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb

Unfortunately, when you have previous versions of server xorg installed, 1.2 in my case, there are .h files in /usr/X11R6/include/xorg incompatibles with the current version.

Changing the order to:
-I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb -I/usr/X11R6/include -I/usr/X11R6/include/xorg -I/usr/X11R6/include/pixman-1 -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   
(i.e., including first the local directories and then the global directories)
fixes the compilation problems.

Best Regards and many thanks for such an incredible server.
Comment 1 Adam Jackson 2018-06-11 19:25:16 UTC
This hasn't been a problem in a while.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.