When building opendkim on a system using clang and lld as a linker, the package fails to link with multiple errors relating to incompatibility with elf32-i386. The package builds with warnings when using bfd as a linker This appears to be because "-L/usr/lib" is injected into the link commands somewhere in the build process Reproducible: Always Steps to Reproduce: 1. Use a system with lld as the linker 2. Try to install mail-filter/opendkim Actual Results: Package fails to link with multiple errors relating to elf32-i386 libraries Expected Results: Package links correctly
Please always include the full build.log & emerge --info if not already working on it.
Created attachment 875611 [details] emerge --info
Created attachment 875612 [details] build.log (lld)
Created attachment 875613 [details] build.log (bfd)
only happens with USE="ldap sasl"
Created attachment 875616 [details, diff] opendkim-fix-lld.patch Configure.ac file was set up to look for the wrong pkg-config files for both openldap and cyrus sasl.
Thanks! I opened a pull request upstream. It's mostly dead there, but I'll give them an opportunity to respond. In all likelihood nothing will happen and I'll add the patch to our ebuild in a few days.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cece880242032ed7c78252169c99ba28fd1dbcb9 commit cece880242032ed7c78252169c99ba28fd1dbcb9 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-12-06 13:26:21 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-12-06 13:35:17 +0000 mail-filter/opendkim: fix build with lld Add https://github.com/trusteddomainproject/OpenDKIM/pull/192 to the ebuild. Thanks to Chris Pritchard for both the report and the solution. Closes: https://bugs.gentoo.org/918512 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> .../files/opendkim-2.10.3-fix-ldap-sasl-pc.patch | 69 ++++++++++++++++++++++ mail-filter/opendkim/opendkim-2.10.3-r30.ebuild | 1 + 2 files changed, 70 insertions(+)