Build of by now stable bind-9.16.6 fails with linker error: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: //usr/lib/libdb-5.3.so: error adding symbols: file in wrong format The bug appears to be similar to bug #646380 I have tried to re-emerge sys-libs/db, which owns libdb-5.3.so, but it did not help. However, the problem rather seems to be that it should link againt /usr/lib64/libdb-5.3.so, as /usr/lib/libdb-5.3.so is an i386 binary. Reproducible: Always
Created attachment 656832 [details] emerge info
No luck in adding build.log due to Internal Server Error. When I receive response from webmaster, I will try again.
Created attachment 656836 [details] build log
Had a quick look at this. First tried to reproduce on my ~amd64 system by installing USE=abi_x86_32 sys-libs/db:5.3 then building bind with USE="berkdb caps dlz zlib", but that went fine. My build log is filled with -L/usr/lib64 while the above one has -L/usr/lib. So I tried some other USEs and with USE="berkdb caps dlz ldap zlib", there it is, -L/usr/lib, and wrong format. Not that I looked into why it's happening with ldap but hopefully it's a start.
I can confirm that changing use flags from "dlz" to "dlz -ldap" solves the build issue for me.
net-dns/bind-9.16.6::gentoo USE="berkdb caps dlz ldap xml zlib" merged without error here - though, as iamben noted, that may be because sys-libs/db has ABI_X86="64 -32 -x32" (i.e. there's no /usr/lib/libdb.so ...)
Created attachment 658416 [details, diff] LDAP library path patch for multilib Gentoo machines
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=956c96ce1bac9fcd9e792f9d64215da236d282f9 commit 956c96ce1bac9fcd9e792f9d64215da236d282f9 Author: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> AuthorDate: 2020-09-04 20:56:02 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2020-09-18 19:22:37 +0000 net-dns/bind-9.16.6-r2: Revbump, USE=ldap on multilib (bug #739062) Closes: https://bugs.gentoo.org/739062 Signed-off-by: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17419 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> .../bind/{bind-9.16.6-r1.ebuild => bind-9.16.6-r2.ebuild} | 2 ++ .../bind/files/ldap-library-path-on-multilib-machines.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+)