When building bind-tools 9.8.1 (current stable) with idn USE flags, it does : # ROOT=/data/tmp USE=idn emerge -vat =bind-tools 9.8.1 ... AC_ARG_WITH(idn, [ --with-idn[=MPREFIX] enable IDN support using idnkit [default PREFIX]], As configure is called like this : ./configure --prefix=/usr ... --with-idn ... so idn is check in /usr which is wrong when ROOT is not / This make cross compile fail as LDFLAGS contains -L/usr/lib -lidnkit : i586-pc-linux-gnu-gcc -march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -DDIG_SIGCHASE -L/usr/i586-pc-linux-gnu/lib -L/usr/i586-pc-linux-gnu/usr/lib -o nslookup ${BASEOBJS} ${LIBS0} ../../lib/lwres/liblwres.a ../../lib/dns/libdns.a -L/data/cross/alix3-i586/firmware/usr/lib -lcrypto ../../lib/bind9/libbind9.a ../../lib/isccfg/libisccfg.a ../../lib/isc/libisc.a -L/usr/lib -lidnkit -ldl -lcap ; else rm -f nslookuptmp0; i586-pc-linux-gnu-gcc -march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -DDIG_SIGCHASE -L/usr/i586-pc-linux-gnu/lib -L/usr/i586-pc-linux-gnu/usr/lib -o nslookuptmp0 ${BASEOBJS} ${LIBS0} ../../lib/lwres/liblwres.a ../../lib/dns/libdns.a -L/data/cross/alix3-i586/firmware/usr/lib -lcrypto ../../lib/bind9/libbind9.a ../../lib/isccfg/libisccfg.a ../../lib/isc/libisc.a -L/usr/lib -lidnkit -ldl -lcap ../../lib/lwres/liblwres.a(context.o): In function `lwres_context_sendrecv': context.c:(.text+0x5ad): undefined reference to `__fdelt_chk' ../../lib/isc/libisc.a(entropy.o): In function `fillpool': entropy.c:(.text+0xbfa): undefined reference to `__fdelt_chk' entropy.c:(.text+0xc45): undefined reference to `__fdelt_chk' entropy.c:(.text+0xc65): undefined reference to `__fdelt_chk' collect2: ld returned 1 exit status make: *** [nslookup] Error 1 Here is a fix Reproducible: Always
Created attachment 312715 [details, diff] bind-tools-9.8.1-BJA-IDN-path.diff The patch
May it be more preferable to use pkg-config instead ?
*** Bug 543664 has been marked as a duplicate of this bug. ***
Still an issue?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d8bb09a33ef4eb06eaa82d73db423fd76654c83 commit 4d8bb09a33ef4eb06eaa82d73db423fd76654c83 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-10 05:39:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-10 05:40:06 +0000 net-dns/bind-tools: fix cross compilation for libidn Bug: https://bugs.gentoo.org/820284 Closes: https://bugs.gentoo.org/417131 Thanks-to: Bertrand Jacquin <bertrand@jacquin.bzh> Signed-off-by: Sam James <sam@gentoo.org> net-dns/bind-tools/bind-tools-9.16.22.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)