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: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada
URL:
Whiteboard:
Keywords: PATCH
: 543664 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-22 18:05 UTC by Bertrand Jacquin
Modified: 2021-03-06 06:53 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. ***