Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417131 - net-dns/bind-tools[idn] always uses prefix (/usr) for idnkit -L paths
Summary: net-dns/bind-tools[idn] always uses prefix (/usr) for idnkit -L paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
: 543664 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-22 18:05 UTC by Bertrand Jacquin
Modified: 2021-11-10 05:40 UTC (History)
5 users (show)

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


Attachments
bind-tools-9.8.1-BJA-IDN-path.diff (bind-tools-9.8.1-BJA-IDN-path.diff,377 bytes, patch)
2012-05-22 18:06 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2012-05-22 18:05:26 UTC
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
Comment 1 Bertrand Jacquin 2012-05-22 18:06:10 UTC
Created attachment 312715 [details, diff]
bind-tools-9.8.1-BJA-IDN-path.diff

The patch
Comment 2 Bertrand Jacquin 2013-06-11 20:59:27 UTC
May it be more preferable to use pkg-config instead ?
Comment 3 SpanKY gentoo-dev 2015-05-26 01:49:17 UTC
*** Bug 543664 has been marked as a duplicate of this bug. ***
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-31 00:50:40 UTC
Still an issue?
Comment 5 Larry the Git Cow gentoo-dev 2021-11-10 05:40:34 UTC
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(-)