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

Carlos Eduardo Rodrigues Diógenes cerdiogenes at yahoo.com.br
Mon May 22 08:31:44 PDT 2006


On Thu, 2006-05-18 at 00:43 +0200, Enrico Weigelt wrote:
> * 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 ?

#include <linux/types.h>

struct agp_version {
	__u16 major; <== this is the line 55
	__u16 minor;
};

Everything appear to be correct in this file. The problem appear to be
in some included file.

I update my system to ubuntu dapper, like other member of the community
appointed me to solve this problem, because the kernel headers in 5.10
were broken, and know I successfully compiled the xserver.

> 
<snip>
> 
> 
> cu

Thanks.
-- 
Carlos Eduardo Rodrigues Diógenes




More information about the xorg mailing list