diff mbox series

[meta-networking,3/4] lldpd: Enable linker version script explicitly

Message ID 20261119035228.1759400-3-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe,1/4] libidn: Enable linker version script explicitly | expand

Commit Message

Khem Raj Nov. 19, 2026, 3:52 a.m. UTC
configure's linker version script check links an empty program with a
script that assigns versions to an undefined symbol 'sym'. lld defaults to
--no-undefined-version and rejects it, so with ld-is-lld configure
decides version scripts are unsupported and the library is built without
any symbol versions, silently changing its ABI. Consumers linked earlier
against the versioned library then fail file-rdeps QA, e.g. openldap:

  libldap.so.2 requires libgnutls.so.30(GNUTLS_3_4)(64bit), but no
  providers found in RDEPENDS:openldap? [file-rdeps]

Every supported linker handles version scripts, so enable them
explicitly instead of relying on the broken probe.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-networking/recipes-daemons/lldpd/lldpd_1.0.23.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-networking/recipes-daemons/lldpd/lldpd_1.0.23.bb b/meta-networking/recipes-daemons/lldpd/lldpd_1.0.23.bb
index 3d623bcf5b..8962554df4 100644
--- a/meta-networking/recipes-daemons/lldpd/lldpd_1.0.23.bb
+++ b/meta-networking/recipes-daemons/lldpd/lldpd_1.0.23.bb
@@ -26,6 +26,7 @@  EXTRA_OECONF += "--without-embedded-libevent \
                  --with-privsep-group=lldpd \
                  --with-systemdsystemunitdir=${systemd_system_unitdir} \
                  --without-sysusersdir \
+                 --enable-ld-version-script \
 "

 PACKAGECONFIG ??= "cdp fdp edp sonmp lldpmed dot1 dot3"