xorg-server-1.5.1fails to compile with linux-libc-headers-2.6.11.2and gcc 3.4.3

Angel Tsankov fn42551 at fmi.uni-sofia.bg
Thu Jan 15 06:22:29 PST 2009


Angel Tsankov wrote:
> Compiling xorg-server-1.5.1 (from xorg 7.4) with GCC 3.4.3 produces
> the following error message:
>
> In file included from linuxPci.c:271:
> /usr/include/linux/pci.h:454: error: parse error before "pci_power_t"
> linuxPci.c:553: warning: no previous prototype for 'xf86AccResFromOS'
>
Some investigation reveals that the error is due to macro __bitwise being 
undefined at "/usr/include/linux/pci.h:454".  The reason for this is that 
"linuxPci.h" includes (indirectly) "sys/kd.h" which suppresses the inclusion 
of "linux/types.h" where the macro is defined. Then linuxPci.h includes 
"linux/pci.h" which uses __bitwise to typedef pci_power_t.

Any ideas why this happens? Could it be linux-libc-headers or glibc being 
too old to build xorg-server 1.5.1 or is it something else?

Regards,
Angel 






More information about the xorg mailing list