x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -I/usr/include/bt -I/usr/include/freetype2 -I/usr/include/uuid -Wl,-O1 -Wl,--as-needed -lSM -lICE -o bbkeys actions.o Config.o FileTokenizer.o KeyClient.o KeyGrabber.o keytree.o main.o Netclient.o ScreenHandler.o window.o WindowlistMenu.o -lX11 -lXext -lbt -lX11 -lXext -lbt /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/libbt.a(Font.o): in function `bt::FontCache::clear(bool)': (.text+0x44): undefined reference to `XftFontClose' /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/libbt.a(Font.o): in function `bt::FontCache::FontCache(bt::Display const&)': (.text+0x3c2): undefined reference to `XftInit' /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x3e1): undefined reference to `XftInitFtLibrary' ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome_systemd-20191010-171512 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * clang: clang version 9.0.0 (tags/RELEASE_900/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/9/bin llvm: 9.0.0 Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) [3] jython2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.13.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Mon, 14 Oct 2019 02:30:32 +0000 emerge -qpvO x11-misc/bbkeys [ebuild N ] x11-misc/bbkeys-0.9.1-r1
Created attachment 592696 [details] emerge-info.txt
Created attachment 592698 [details] emerge-history.txt
Created attachment 592700 [details] environment
Created attachment 592702 [details] etc.portage.tbz2
Created attachment 592704 [details] logs.tbz2
Created attachment 592706 [details] temp.tbz2
Created attachment 592708 [details] x11-misc:bbkeys-0.9.1-r1:20191014-035704.log
*** Bug 726612 has been marked as a duplicate of this bug. ***
I encountered a similar failure: x86_64-pc-linux-gnu-g++ -march=nocona -O2 -pipe -I/usr/include/bt -I/usr/include/uuid -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -lSM -lICE -o bbkeys actions.o Config.o FileTokenizer.o KeyClient.o KeyGrabber.o keytree.o main.o Netclient.o ScreenHandler.o window.o WindowlistMenu.o -lX11 -lXext -lbt -lX11 -lXext -lbt /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../lib64/libbt.a(Font.o): in function `bt::FontCache::clear(bool)': Font.cc:(.text+0x45): undefined reference to `XftFontClose' The cause is that x11-wm/blackbox-0.76 is missing /usr/lib64/libbt.so symlink: $ ls -l /usr/lib64/libbt* -rw-r--r-- 1 root root 406888 9. čec 20.43 /usr/lib64/libbt.a -r-xr-xr-x 1 root root 87480 7. pro 2019 /usr/lib64/libbtparse.so lrwxrwxrwx 1 root root 14 6. pro 2017 /usr/lib64/libbt.so.0 -> libbt.so.0.0.0 -rwxr-xr-x 1 root root 209960 6. pro 2017 /usr/lib64/libbt.so.0.0.0 As a result, the linker uses a static /usr/lib64/libbt.a library that of course requires more linker flags than the dynamic library: $ pkg-config --libs libbt -lbt $ pkg-config --static --libs libbt -lbt -lXft -lXrender -lX11 -lpthread -lxcb -lXau -lXdmcp -lfontconfig -luuid -lexpat -lfreetype -lbz2 -lpng16 -lz There is a <https://sourceforge.net/p/blackboxwm/patches/119/> patch for x11-wm/blackbox that adds the additional libraries to "pkg-config --libs libbt" output, but in my opinion it's a wrong fix. A correct fix is creating /usr/lib64/libbt.so symlink to /usr/lib64/libbt.so.0.0.0.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78404444302dc73432cc1f4192f828c0c4f7d241 commit 78404444302dc73432cc1f4192f828c0c4f7d241 Author: Ben Kohler <bkohler@gentoo.org> AuthorDate: 2021-03-30 12:12:05 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2021-03-30 12:28:35 +0000 x11-wm/blackbox: re-enable shared libs, add missing dep Closes: https://bugs.gentoo.org/697498 Closes: https://bugs.gentoo.org/697516 Closes: https://bugs.gentoo.org/697724 Closes: https://bugs.gentoo.org/724976 Closes: https://bugs.gentoo.org/726404 Closes: https://bugs.gentoo.org/745159 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Ben Kohler <bkohler@gentoo.org> x11-wm/blackbox/blackbox-0.76-r1.ebuild | 54 +++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+)