Menu

#163 Compile Xournal with libxcb-shm1.11.1-49.1

v1.0_(example)
closed
nobody
None
5
2017-07-20
2015-09-28
No

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

Discussion

  • Denis Auroux

    Denis Auroux - 2015-09-28

    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

     
    • Dominik Brands

      Dominik Brands - 2015-11-04

      Dear Denis,

      I have tested the fix, but it does not help :-(

      Bests,
      Dominik

      Am 28.09.2015 um 19:57 schrieb Denis Auroux:

      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


      [bugs:#163] http://sourceforge.net/p/xournal/bugs/163/ Compile
      Xournal with libxcb-shm1.11.1-49.1

      Status: open
      Group: v1.0_(example)
      Created: Mon Sep 28, 2015 11:07 AM UTC by Dominik Brands
      Last Updated: Mon Sep 28, 2015 11:07 AM UTC
      Owner: nobody

      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


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/xournal/bugs/163/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Denis Auroux

    Denis Auroux - 2017-07-20
    • status: open --> closed
     
  • Denis Auroux

    Denis Auroux - 2017-07-20

    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).

     

Log in to post a comment.