XCB compilation failure with socket handoff patch (was Re: compilation failure)

Magnus Kessler Magnus.Kessler at gmx.net
Sun Oct 26 13:36:40 PDT 2008


On Thursday 23 October 2008, Beso wrote:
> i also have the following error on libxcb:
[...]
> xcb_out.c: In function 'get_socket_back':
> xcb_out.c:61: error: '_xcb_out' has no member named 'return_socket'
> xcb_out.c:61: error: '_xcb_out' has no member named 'socket_moving'
> xcb_out.c:62: error: '_xcb_out' has no member named 'socket_cond'
> xcb_out.c:63: error: '_xcb_out' has no member named 'return_socket'
> xcb_out.c:66: error: '_xcb_out' has no member named 'socket_moving'
> xcb_out.c:68: error: '_xcb_out' has no member named 'return_socket'
> xcb_out.c:68: error: '_xcb_out' has no member named 'socket_closure'
> xcb_out.c:70: error: '_xcb_out' has no member named 'socket_moving'
> xcb_out.c:72: error: '_xcb_out' has no member named 'socket_cond'
> xcb_out.c:73: error: '_xcb_out' has no member named 'return_socket'
> xcb_out.c:74: error: '_xcb_out' has no member named 'socket_closure'
> xcb_out.c: In function 'xcb_take_socket':
> xcb_out.c:270: error: '_xcb_out' has no member named 'return_socket'
> xcb_out.c:271: error: '_xcb_out' has no member named 'socket_closure'
> xcb_out.c: In function '_xcb_out_init':
> xcb_out.c:308: error: '_xcb_out' has no member named 'socket_cond'
> xcb_out.c:310: error: '_xcb_out' has no member named 'return_socket'
> xcb_out.c:311: error: '_xcb_out' has no member named 'socket_closure'
> xcb_out.c:312: error: '_xcb_out' has no member named 'socket_moving'
> make[2]: *** [xcb_out.lo] Error 1

Hi Beso,

you seem to be using the Gentoo x11 overlay, which is applying a version of 
the socket handoff patch.

Since commit cebd582a (allow compile-time setting for XCB queue buffer size) 
the patch that adds the missing members to _xcb_out is applied in the wrong 
place, namely the _xcb_in structure. You can fix this by changing a line in 
xcb-0004-Support-handing-off-socket-write-permission-to-exter.patch. Look 
for 

char queue[4096];

and change to

char queue[XCB_QUEUE_BUFFER_SIZE];

I'm cross-posting this to the xcb mailing list as well as the issue affects 
the recently posted version 3 of the patchset as well.

Cheers,

Magnus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20081026/fc2e19c8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.x.org/archives/xorg/attachments/20081026/fc2e19c8/attachment.pgp>


More information about the xorg mailing list