[PATCH] xcb build failure fix

Andres Salomon dilinger at debian.org
Wed Sep 13 10:38:43 PDT 2006


Hi,

Building xcb from git fails with the following error:

 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -pedantic -Wpointer-arith
-Wstrict-prototypes -Wmissing-declarations -Wnested-externs -g
-I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2
-MT xcb_xlib.lo -MD -MP -MF .deps/xcb_xlib.Tpo -c xcb_xlib.c  -fPIC
-DPIC -o .libs/xcb_xlib.o
In file included from xcb_xlib.c:26:
xcbxlib.h:35: warning: no previous declaration for
'XCBGetQueuedRequestRead'
xcbxlib.h: In function 'XCBGetQueuedRequestRead':
xcbxlib.h:35: error: expected declaration specifiers before 'deprecated'
In file included from xcb_xlib.c:27:
xcbint.h:42: warning: empty declaration
xcbint.h:50: error: storage class specified for parameter
'XCBListFreeFunc'
xcbint.h:52: error: storage class specified for parameter '_xcb_map'
xcbint.h:54: error: expected declaration specifiers before '_xcb_map'
xcbint.h:55: error: expected ')' before '*' token
xcbint.h:56: error: expected ')' before '*' token
xcbint.h:57: error: expected ')' before '*' token
xcbint.h:74: error: storage class specified for parameter '_xcb_out'
xcbint.h:76: error: expected ')' before '*' token
xcbint.h:77: error: expected ')' before '*' token
xcbint.h:98: error: expected specifier-qualifier-list before '_xcb_map'
xcbint.h:105: error: storage class specified for parameter '_xcb_in'
xcbint.h:107: error: expected ')' before '*' token
xcbint.h:108: error: expected ')' before '*' token
xcbint.h:124: error: storage class specified for parameter '_xcb_xid'
xcbint.h:136: error: storage class specified for parameter '_xcb_ext'
xcbint.h:151: error: expected specifier-qualifier-list before '_xcb_in'
xcbint.h:157: warning: empty declaration


The issue is that the 'deprecated' attribute is used in xcbxlib.h,
without gcc's __attribute__(()) syntax.  The attached patch has it use
Xfuncproto.h's _X_DEPRECATED instead (which does the right thing
depending upon whether gcc is used).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xcb.patch
Type: text/x-patch
Size: 755 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20060913/325514a7/attachment.bin>


More information about the xorg mailing list