Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926158 - net-misc/kea-2.4.1 fails to compile: configure: error: Needs log4cplus library
Summary: net-misc/kea-2.4.1 fails to compile: configure: error: Needs log4cplus library
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Dennis Lamm
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2024-03-04 12:04 UTC by Agostino Sarubbo
Modified: 2025-03-12 06:19 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,53.67 KB, text/plain)
2024-03-04 12:04 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,66.33 KB, text/plain)
2024-03-04 12:04 UTC, Agostino Sarubbo
Details
avoid adding /usr/lib (libdir.patch,732 bytes, patch)
2024-07-16 04:44 UTC, Xuefer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-03-04 12:04:32 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-misc/kea-2.4.1 fails to compile.
Discovered on: amd64 (internal ref: clang-lld_tinderbox)
System: CLANG-LLD (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CLANG-LLD)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-04 12:04:33 UTC
Created attachment 886671 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-04 12:04:34 UTC
Created attachment 886672 [details]
1-config.log

1-config.log
Comment 3 Xuefer 2024-07-16 04:44:27 UTC
Created attachment 897757 [details, diff]
avoid adding /usr/lib

its configure.ac add /usr/lib (along with /usr/lib64) to library search path, clang assume -m32 arch.

patch to avoid searching /usr (/lib*) since it's already system default
Comment 4 Jaco Kroon 2025-03-11 13:21:35 UTC
[ebuild  N     ] dev-libs/log4cplus-2.0.7:0/3::gentoo  USE="iconv threads -explicit-initialization -qt5 -server -test" 910 KiB
[ebuild  N    ~] net-misc/kea-2.4.1::gentoo  USE="filecaps mysql openssl samples -debug -doc -postgres -shell -test" PYTHON_SINGLE_TARGET="python3_12 -python3_11" 10,242 KiB
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-12 04:33:07 UTC
(In reply to Jaco Kroon from comment #4)
> [ebuild  N     ] dev-libs/log4cplus-2.0.7:0/3::gentoo  USE="iconv threads
> -explicit-initialization -qt5 -server -test" 910 KiB
> [ebuild  N    ~] net-misc/kea-2.4.1::gentoo  USE="filecaps mysql openssl
> samples -debug -doc -postgres -shell -test" PYTHON_SINGLE_TARGET="python3_12
> -python3_11" 10,242 KiB

This bug is NOT about a missing dependency. It's specific to using lld (or any linker which errors out, rather than warning, on incompatible objects).

The issue is that they do e.g. `gcc ... -L/usr/lib a.o`, then the linker sees incompatible objects in /usr/lib (like libc.so) and aborts rather than warning and looking in the default search locations.
Comment 6 Jaco Kroon 2025-03-12 06:14:44 UTC
(In reply to Sam James from comment #5)

> This bug is NOT about a missing dependency. It's specific to using lld (or
> any linker which errors out, rather than warning, on incompatible objects).
> 
> The issue is that they do e.g. `gcc ... -L/usr/lib a.o`, then the linker
> sees incompatible objects in /usr/lib (like libc.so) and aborts rather than
> warning and looking in the default search locations.

My bad, I completely mis-read this.  Was hoping to file a stabilization bug, but plainly it's not ready except in niche cases, and for people willing to suffer a few issues.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-12 06:19:13 UTC
It may well not be a regression, though.