Building net-dns/bind-9.18.29-r2 or net-dns/bind-9.18.31 on prefix fails at command: ``` /data/gentoo64/bin/bash ../../libtool --tag=CC --mode=link aarch64-unknown-linux-gnu-gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -Werror=vla -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -O2 -pipe -pthread -Wl,--export-dynamic -Wl,-O1 -Wl,--as-needed -o rndc rndc.o util.o ../../lib/isc/libisc.la ../../lib/dns/libdns.la ../../lib/isccc/libisccc.la ../../lib/isccfg/libisccfg.la ../../lib/bind9/libbind9.la -lpthread ``` with output: ``` libtool: link: aarch64-unknown-linux-gnu-gcc -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -Werror=vla -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -O2 -pipe -Wl,--export-dynamic -Wl,-O1 -Wl,--as-needed -o .libs/rndc rndc.o util.o ../../lib/isc/.libs/libisc.so ../../lib/dns/.libs/libdns.so ../../lib/isccc/.libs/libisccc.so ../../lib/isccfg/.libs/libisccfg.so ../../lib/bind9/.libs/libbind9.so -lpthread -pthread -Wl,-rpath -Wl,/data/gentoo64/usr/lib64 /data/gentoo64/usr/lib/gcc/aarch64-unknown-linux-gnu/14/../../../../aarch64-unknown-linux-gnu/bin/ld: warning: libns-9.18.31.so, needed by ../../lib/bind9/.libs/libbind9.so, not found (try using -rpath or -rpath-link) /data/gentoo64/usr/lib/gcc/aarch64-unknown-linux-gnu/14/../../../../aarch64-unknown-linux-gnu/bin/ld: ../../lib/bind9/.libs/libbind9.so: undefined reference to `ns_plugin_check' /data/gentoo64/usr/lib/gcc/aarch64-unknown-linux-gnu/14/../../../../aarch64-unknown-linux-gnu/bin/ld: ../../lib/bind9/.libs/libbind9.so: undefined reference to `ns_plugin_expandpath' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:560: rndc] Error 1 make[3]: Leaving directory '/data/gentoo64/var/tmp/portage/net-dns/bind-9.18.31-r1/work/bind-9.18.31/bin/rndc' make[2]: *** [Makefile:446: all-recursive] Error 1 make[2]: Leaving directory '/data/gentoo64/var/tmp/portage/net-dns/bind-9.18.31-r1/work/bind-9.18.31/bin' make[1]: *** [Makefile:629: all-recursive] Error 1 make[1]: Leaving directory '/data/gentoo64/var/tmp/portage/net-dns/bind-9.18.31-r1/work/bind-9.18.31' make: *** [Makefile:535: all] Error 2 ``` There is a related upstream issue where the same thing happens on cross-compilation: https://gitlab.isc.org/isc-projects/bind9/-/issues/4840 The failing command succeeds when `../../lib/ns/libns.la` is added after `../../lib/bind9/libbind9.la`. I could not test if the upstream patch fixes the issue because I get /data/gentoo64/var/tmp/portage/net-dns/bind-9.18.31-r1/work/bind-9.18.31/missing: line 81: automake-1.16: command not found with that patch applied (installed automake version is 1.17-r1). The upstream issue mentions that this could be an issue with libtool. I tested all available versions (2.4.7-r4, 2.5.3, 2.5.4) but the issue persists with all of them. <=net-dns/bind-9.16.50 fails with a different error. Reproducible: Always Arch: arm64 USE flags: caps
Created attachment 913324 [details] build.log
Created attachment 913325 [details] emerge --info
I was sure we had another bug for this.