fail compiling linx_agp.c [was: Re: build modular Xorg failed: 'EBADF' undeclared]

Enrico Weigelt weigelt at metux.de
Wed May 17 15:43:52 PDT 2006


* Carlos Eduardo Rodrigues Di?genes <cerdiogenes at yahoo.com.br> schrieb:

<snip>

> In file included from lnx_agp.c:24:
> /usr/include/linux/agpgart.h:55: error: syntax error before '__u16'
> /usr/include/linux/agpgart.h:60: error: field 'version' has incomplete
> type
> /usr/include/linux/agpgart.h:61: error: syntax error before '__u32'
> /usr/include/linux/agpgart.h:68: error: syntax error before '}' token
> /usr/include/linux/agpgart.h:71: error: syntax error before '__u32'
> /usr/include/linux/agpgart.h:92: error: syntax error before '__u32'
> /usr/include/linux/agpgart.h:106: error: syntax error before '__u32'

hmm, probably its still broken or not matching to your libc headers.
What code is exactly at the error positions ?

I remember such problems from several crosscompiling experiences,
where stupid buildfiles (mostly autoshitted) pass broken include 
directories to the compiler (ie. absolute dirs w/o sysroot 
prefix, etc) and things got mixed up.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	rsync://sources.metux.de/metux-patches
---------------------------------------------------------------------



More information about the xorg mailing list