Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945877 - >=net-dns/bind-9.18.29: Compilation on prefix fails at rndc linking
Summary: >=net-dns/bind-9.18.29: Compilation on prefix fails at rndc linking
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-04 19:53 UTC by Jan Breig
Modified: 2024-12-04 20:49 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,348.71 KB, text/x-log)
2024-12-04 19:54 UTC, Jan Breig
Details
emerge --info (emerge-info.txt,7.03 KB, text/plain)
2024-12-04 19:54 UTC, Jan Breig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Breig 2024-12-04 19:53:06 UTC
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
Comment 1 Jan Breig 2024-12-04 19:54:00 UTC
Created attachment 913324 [details]
build.log
Comment 2 Jan Breig 2024-12-04 19:54:21 UTC
Created attachment 913325 [details]
emerge --info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-04 20:48:39 UTC
I was sure we had another bug for this.