Esse tipo de exercício acabou sendo incomum. O pacote não foi gperftools-dev
ou gperftools-devel
. Existe um pacote gperftools-libs
, mas não é instalado em /lib
ou /lib64
:
$ dnf repoquery -l gperftools-libs
Fedora 28 - x86_64 - Updates 9.6 MB/s | 23 MB 00:02
Last metadata expiration check: 0:00:13 ago on Fri 31 Aug 2018 12:40:20 AM EDT.
/usr/lib/.build-id
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/f4daa98151a84c8d1bc754e67a2858dd2007f7
/usr/lib/.build-id/56
/usr/lib/.build-id/56/fbe67cd746e213211226bc753dc3924e53d883
/usr/lib/.build-id/59
/usr/lib/.build-id/59/4af3ce60de4d29e773f783c434786d87e0431a
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/26545cd8d2417e42085614cecfb11bfcbbef58
/usr/lib/.build-id/66
/usr/lib/.build-id/66/bc072ca02ea7494c5f61d62c5d4f8abb83a37c
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/eedf93824216ffecac806dd60e3b4d23a7d8d1
/usr/lib64/libprofiler.so.0
/usr/lib64/libprofiler.so.0.4.16
/usr/lib64/libtcmalloc.so.4
/usr/lib64/libtcmalloc.so.4.5.1
/usr/lib64/libtcmalloc_and_profiler.so.4
/usr/lib64/libtcmalloc_and_profiler.so.4.5.1
/usr/lib64/libtcmalloc_debug.so.4
/usr/lib64/libtcmalloc_debug.so.4.5.1
/usr/lib64/libtcmalloc_minimal.so.4
/usr/lib64/libtcmalloc_minimal.so.4.5.1
/usr/lib64/libtcmalloc_minimal_debug.so.4
/usr/lib64/libtcmalloc_minimal_debug.so.4.5.1
/usr/lib/.build-id
/usr/lib/.build-id/70
/usr/lib/.build-id/70/532fbec5f8efae416a3d93452a41f40e866256
/usr/lib/.build-id/73
/usr/lib/.build-id/73/b36a618c8b93ffc6fb8bb6ac29932446b38c9f
/usr/lib/.build-id/73/ce1d567d60ea7a3fc84d6439e7e969465f6eb0
/usr/lib/.build-id/98
/usr/lib/.build-id/98/0ba2c89b28afdcec32e60fbba456fe9185e631
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/eb05e4484712cb7986c9e809d40d2869e3ab1f
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/be0e43fcc0d1fda1c56672f550046cc37ac9e8
/usr/lib/libprofiler.so.0
/usr/lib/libprofiler.so.0.4.16
/usr/lib/libtcmalloc.so.4
/usr/lib/libtcmalloc.so.4.5.1
/usr/lib/libtcmalloc_and_profiler.so.4
/usr/lib/libtcmalloc_and_profiler.so.4.5.1
/usr/lib/libtcmalloc_debug.so.4
/usr/lib/libtcmalloc_debug.so.4.5.1
/usr/lib/libtcmalloc_minimal.so.4
/usr/lib/libtcmalloc_minimal.so.4.5.1
/usr/lib/libtcmalloc_minimal_debug.so.4
/usr/lib/libtcmalloc_minimal_debug.so.4.5.1
Eu acho que isso explica porque o -ltcmalloc
falha ao link no Fedora. Aparentemente, o linker não usa /usr/lib
ou /usr/lib64
.