Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697724 - x11-misc/bbkeys-0.9.1-r1 : (.text+<snip>): undefined reference to XftFontClose
Summary: x11-misc/bbkeys-0.9.1-r1 : (.text+<snip>): undefined reference to XftFontClose
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 726612 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-10-14 18:13 UTC by Toralf Förster
Modified: 2021-03-30 12:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.13 KB, text/plain)
2019-10-14 18:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,152.03 KB, text/plain)
2019-10-14 18:13 UTC, Toralf Förster
Details
environment (environment,14.93 KB, text/plain)
2019-10-14 18:13 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.43 KB, application/x-bzip)
2019-10-14 18:13 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.83 KB, application/x-bzip)
2019-10-14 18:13 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,8.71 KB, application/x-bzip)
2019-10-14 18:13 UTC, Toralf Förster
Details
x11-misc:bbkeys-0.9.1-r1:20191014-035704.log (x11-misc:bbkeys-0.9.1-r1:20191014-035704.log,18.71 KB, text/plain)
2019-10-14 18:13 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-10-14 18:13:32 UTC
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
Comment 1 Toralf Förster gentoo-dev 2019-10-14 18:13:35 UTC
Created attachment 592696 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-10-14 18:13:37 UTC
Created attachment 592698 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-10-14 18:13:40 UTC
Created attachment 592700 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-10-14 18:13:43 UTC
Created attachment 592702 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-10-14 18:13:46 UTC
Created attachment 592704 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-10-14 18:13:49 UTC
Created attachment 592706 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-10-14 18:13:51 UTC
Created attachment 592708 [details]
x11-misc:bbkeys-0.9.1-r1:20191014-035704.log
Comment 8 Toralf Förster gentoo-dev 2020-07-09 18:35:08 UTC
*** Bug 726612 has been marked as a duplicate of this bug. ***
Comment 9 Petr Pisar 2020-07-09 18:50:50 UTC
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.
Comment 10 Larry the Git Cow gentoo-dev 2021-03-30 12:28:47 UTC
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(+)