Compile Xournal with libxcb-shm1.11.1-49.1
Brought to you by:
andreasb123,
auroux
I try to compile the acutal git-Version and get the following error on 'make'
/usr/lib64/libxcb-shm.so.0: undefined reference to 'xcb_get_reply_fds'
/usr/lib64/libxcb-shm.so.0: undefined reference to 'xcb_send_fd'
I back-date the libxcb-shm (an dall the related stuff) to 1.9.1-3.1.2 and it works fine.
But what was going wrong?
Bests,
Dominik
Xournal doesn't directly use libxcb or its dependencies, so I'd say this
is a problem with incorrectly packaged system libraries. Though I'm
hazy on the new style of X11 with xcb replacing Xlib and whether it's an
issue with xournal's build files.
As a possible fix, perhaps edit src/Makefile.am to add -lxcb to the line
xournal_LDADD=... that mentions -lX11 explicitly for linking. This is
not a clean fix since many linux distributions do not have a
libxcb-based libX11, but worth investigating (don't know if it helps or
not, I don't have the issue on Fedora 22). Requiring -lxcb linker flag
for programs that -lX11 would be a serious backwards compatibility
issue, so I don't think it should be required for applications to change
their build commands for the xcb transition (and the issue being
confined to one version of libxcb seems to suggest that this version got
packaged improperly in your distribution). But I might be wrong.
Denis
Dear Denis,
I have tested the fix, but it does not help :-(
Bests,
Dominik
Am 28.09.2015 um 19:57 schrieb Denis Auroux:
From a google search this seems to have been an issue with libxcb, possibly with packages including outdated versions of the library. I will close this bug now, please reopen if the issue persists with an up-to-date libxcb. (and without packages shipping with built-in outdated libxcb such as certain versions of Steam).