Bug #1994
CtrlCore: Xinerama library dependency required for "GUI .NOGTK" on FreeBSD
Status: | Rejected | Start date: | 10/16/2019 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Miroslav Fidler | % Done: | 0% | |
Category: | CtrlCore | Spent time: | - | |
Target version: | - |
Description
There is following linking error, if build examples/AddressBook package with using "GUI .NOGTK" main package configuration on FreeBSD operating system:
Linking... <...>/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 AddressBook: 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 libX11.so.6:
Patch attached. But I guess, possible to simplify many Xinerama library dependency cases for uppsrc/CtrlCore package.
History
#1 Updated by Sender Ghost almost 5 years ago
- Status changed from New to Patch ready
- Assignee set to Miroslav Fidler
#2 Updated by Sender Ghost almost 5 years ago
- Description updated (diff)
#3 Updated by Sender Ghost over 4 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.