Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 739062

Summary: net-dns/bind-9.16.6: Build fails with //usr/lib/libdb-5.3.so: error adding symbols: file in wrong format
Product: Gentoo Linux Reporter: Stefan Huber <shuber>
Component: Current packagesAssignee: Mikle Kolyada (RETIRED) <zlogene>
Status: RESOLVED FIXED    
Severity: normal CC: 0xe2.0x9a.0x9b, chutzpah, joost.ruis, sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/17419
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 506276    
Attachments: emerge info
build log
LDAP library path patch for multilib Gentoo machines

Description Stefan Huber 2020-08-26 09:13:40 UTC
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
Comment 1 Stefan Huber 2020-08-26 09:17:12 UTC
Created attachment 656832 [details]
emerge info
Comment 2 Stefan Huber 2020-08-26 09:22:33 UTC
No luck in adding build.log due to Internal Server Error. When I receive response from webmaster, I will try again.
Comment 3 Stefan Huber 2020-08-26 10:42:15 UTC
Created attachment 656836 [details]
build log
Comment 4 Ionen Wolkens gentoo-dev 2020-08-26 13:39:30 UTC
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.
Comment 5 Stefan Huber 2020-08-26 17:28:09 UTC
I can confirm that changing use flags from "dlz" to "dlz -ldap" solves the build issue for me.
Comment 6 BobbyK 2020-09-04 14:25:21 UTC
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 ...)
Comment 7 Jan Ziak (atomsymbol) 2020-09-04 20:43:16 UTC
Created attachment 658416 [details, diff]
LDAP library path patch for multilib Gentoo machines
Comment 8 Larry the Git Cow gentoo-dev 2020-09-18 19:23:47 UTC
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(+)