[Xcb] Compilation error...
Shakaa
shakaa at wanadoo.fr
Tue Jul 25 14:48:35 PDT 2006
Hi,
I'm trying to build xcb, i got with git, but the compilation ends with :
...
xcb_out.c:261: error: dereferencing pointer to incomplete type
make[2]: *** [xcb_out.lo] Erreur 1
make[2]: quittant le répertoire « /tmp/xorg-build/xcb/xcb/src »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /tmp/xorg-build/xcb/xcb/src »
make: *** [all-recursive] Erreur 1
i tried to build it from last tarballs of libX11 etc, git..., it's
always the same error
The error begins with :
...
In file included from xcb_out.c:33:
xcb.h:40: error: syntax error before 'BYTE'
xcb.h:40: warning: type defaults to 'int' in declaration of 'BYTE'
xcb.h:40: warning: data definition has no type or storage class
xcb.h:41: error: syntax error before 'BOOL'
...
Is there a problem with "generated" xcb.h ?
I don't know how to fix this...
The begining of xcb.h is :
#ifndef __XCB_H__
#define __XCB_H__
#include <sys/types.h>
#if HAVE_STDINT_H
#include <stdint.h>
#elif HAVE_INTTYPES_H
#include <inttypes.h>
#endif
/* FIXME: these names conflict with those defined in Xmd.h. */
#ifndef XMD_H
typedef uint8_t BYTE;
typedef uint8_t BOOL;
typedef uint8_t CARD8;
typedef uint16_t CARD16;
typedef uint32_t CARD32;
typedef int8_t INT8;
typedef int16_t INT16;
typedef int32_t INT32;
#endif /* XMD_H */
Thanks.
More information about the Xcb
mailing list