As title said, pound does not compile if static-libs is enabled and nanomsg is compiled with it enabled. I would like to thank also Dakon for pointing me out about that on hppa (but I have confirmed it on amd64 too). Snippet of error: : && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=znver1 -fdiagnostics-color=always -frecord-gcc-switches -Wno-unused-result -Wno-cast-qual -Wno-discarded-qualifiers -D_GNU_SOURCE -O2 -O2 -pipe -march=znver1 -fdiagnostics-color=always -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--as-needed -rdynamic CMakeFiles/pound.dir/src/backend.c.o CMakeFiles/pound.dir/src/config.c.o CMakeFiles/pound.dir/src/hpack.c.o CMakeFiles/pound.dir/src/http.c.o CMakeFiles/pound.dir/src/http2.c.o CMakeFiles/pound.dir/src/pound.c.o CMakeFiles/pound.dir/src/util.c.o -o pound -lyaml -lnanomsg -lpthread -lmbedcrypto -lmbedx509 -lmbedtls -lpcreposix -pthread && : /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libnanomsg.a(dns.c.o): in function `nn_dns_shutdown': (.text+0x7d): undefined reference to `gai_cancel' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libnanomsg.a(dns.c.o): in function `nn_dns_notify': (.text+0x2a5): undefined reference to `gai_error' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libnanomsg.a(dns.c.o): in function `nn_dns_start': (.text+0x6e4): undefined reference to `getaddrinfo_a' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6fc25df6d6dbd01ac72e529057126730af4942f commit d6fc25df6d6dbd01ac72e529057126730af4942f Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2021-06-11 06:35:40 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2021-06-11 06:36:08 +0000 dev-libs/nanomsg: drop static-libs - none of the rdeps of this lib require it, and they are broken if it's enabled. Closes: https://bugs.gentoo.org/795228 Closes: https://github.com/gentoo/gentoo/pull/21187 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-libs/nanomsg/nanomsg-1.1.5.ebuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)