Bug #1994

CtrlCore: Xinerama library dependency required for "GUI .NOGTK" on FreeBSD

Added by Sender Ghost almost 4 years ago. Updated over 3 years ago.

Status:RejectedStart date:10/16/2019
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:


Category:CtrlCoreSpent time:-
Target version:-


There is following linking error, if build examples/AddressBook package with using "GUI .NOGTK" main package configuration on FreeBSD operating system:

<...>/CtrlCore/CLANG.Gui.Nogtk.Shared/CtrlCore.a(X11App.o): In function `Upp::FindScreensResolutions()':
<..>/uppsrc/CtrlCore/X11App.cpp:(.text._ZN3Upp22FindScreensResolutionsEv+0x2c): undefined reference to `XineramaQueryExtension'
<..>/uppsrc/CtrlCore/X11App.cpp:(.text._ZN3Upp22FindScreensResolutionsEv+0x40): undefined reference to `XineramaIsActive'
<..>/uppsrc/CtrlCore/X11App.cpp:(.text._ZN3Upp22FindScreensResolutionsEv+0x5f): undefined reference to `XineramaQueryScreens'
c++: error: linker command failed with exit code 1 (use -v to see invocation)

With following (filtered) ldd output for AddressBook executable (after applied patch):

% ldd -a AddressBook | sed 's/ (.*)$// ; s|^/.*/||' | head -22
    libX11.so.6 => /usr/local/lib/libX11.so.6
    libXau.so.6 => /usr/local/lib/libXau.so.6
    libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6
    libXft.so.2 => /usr/local/lib/libXft.so.2
    libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1
    libXrender.so.1 => /usr/local/lib/libXrender.so.1
    libfreetype.so.6 => /usr/local/lib/libfreetype.so.6
    libexpat.so.1 => /usr/local/lib/libexpat.so.1
    libxcb.so.1 => /usr/local/lib/libxcb.so.1
    libXinerama.so.1 => /usr/local/lib/libXinerama.so.1
    libthr.so.3 => /lib/libthr.so.3
    librt.so.1 => /usr/lib/librt.so.1
    libexecinfo.so.1 => /usr/lib/libexecinfo.so.1
    libz.so.6 => /lib/libz.so.6
    libpng16.so.16 => /usr/local/lib/libpng16.so.16
    libc++.so.1 => /usr/lib/libc++.so.1
    libcxxrt.so.1 => /lib/libcxxrt.so.1
    libm.so.5 => /lib/libm.so.5
    libgcc_s.so.1 => /lib/libgcc_s.so.1
    libc.so.7 => /lib/libc.so.7

Patch attached. But I guess, possible to simplify many Xinerama library dependency cases for uppsrc/CtrlCore package.

uppsrc_CtrlCore.diff Magnifier - Proposed patch for uppsrc/CtrlCore (since 13647 revision) (375 Bytes) Sender Ghost, 10/16/2019 08:28 PM


#1 Updated by Sender Ghost almost 4 years ago

  • Status changed from New to Patch ready
  • Assignee set to Miroslav Fidler

#2 Updated by Sender Ghost almost 4 years ago

  • Description updated (diff)

#3 Updated by Sender Ghost over 3 years ago

  • Status changed from Patch ready to Rejected

This issue was rejected/closed, because of changes in 13917 svn revision, related to pkg-config usage for xinerama case.

Also available in: Atom PDF