Cannot build libxcb from git
Beso
givemesugarr at gmail.com
Sat Nov 1 07:11:08 PDT 2008
2008/11/1 Julien Cristau <jcristau at debian.org>:
> On Sat, Nov 1, 2008 at 12:25:05 +0200, Nikos Chantziaras wrote:
>
>> Trying to build git master of libxcb, I get this:
>>
>> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wall -pedantic
>> -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
>> -Wnested-externs -march=core2 -O2 -fomit-frame-pointer -pipe -MT
>> xcb_out.lo -MD -MP -MF .deps/xcb_out.Tpo -c xcb_out.c -fPIC -DPIC -o
>> .libs/xcb_out.o
>> xcb_out.c: In function 'get_socket_back':
>
> You're not building git master, that function doesn't exist there. This
> sounds like you're mixing xcb_out.c from the handoff branch and xcbint.h
> from master.
this is the reply i got some days ago about this problem (building git
from gentoo x11 live overlay):
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
--
dott. ing. beso
More information about the xorg
mailing list