public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/samba] rawhide: Fix dynamic_lookup related build issue on i686 (bso #16265)
@ 2026-10-01 13:44 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-01 13:44 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/samba
            Branch : rawhide
            Commit : ddf649509090af92e454ae9f72f4b94bee74d6da
            Author : Günther Deschner <gd@samba.org>
            Date   : 2026-10-01T15:36:13+02:00
            Stats  : +49/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/samba/c/ddf649509090af92e454ae9f72f4b94bee74d6da?branch=rawhide

            Log:
            Fix dynamic_lookup related build issue on i686 (bso #16265)

Guenther

---
diff --git a/0001-buildtools-Restrict-dynamic_lookup-to-macOS.patch b/0001-buildtools-Restrict-dynamic_lookup-to-macOS.patch
new file mode 100644
index 0000000..052031d
--- /dev/null
+++ b/0001-buildtools-Restrict-dynamic_lookup-to-macOS.patch
@@ -0,0 +1,49 @@
+From 7399c227bfb5e6e68030f8c694a9761c0c9d6d76 Mon Sep 17 00:00:00 2001
+From: Anoop C S <anoopcs@samba.org>
+Date: Tue, 29 Sep 2026 23:48:32 +0530
+Subject: [PATCH] buildtools: Restrict dynamic_lookup to macOS
+
+The linker flag probe added by 9938c9a6f7b succeeds on Linux, but
+GNU ld.bfd interprets `-undefined,dynamic_lookup` as an undefined
+reference to a symbol named "dynamic_lookup". This breaks i686
+builds when linking shared libraries that allow undefined symbols.
+
+. . .
+[2483/3877] Compiling bin/default/librpc/gen_ndr/py_lsa.c
+/usr/bin/ld.bfd: /builddir/build/BUILD/samba-4.25.0-build/samba-4.25.0/
+    bin/default/source3/libsamba-cluster-support-private-samba.so:
+        undefined reference to `dynamic_lookup'
+collect2: error: ld returned 1 exit status
+. . .
+
+Only probe and add this macOS specific flag on macOS; Linux
+already permits unresolved symbols in these shared libraries
+when `-no-undefined` is removed.
+
+BUG: https://bugzilla.samba.org/show_bug.cgi?id=16265
+
+Signed-off-by: Anoop C S <anoopcs@samba.org>
+Reviewed-by: Andreas Schneider <asn@samba.org>
+
+Autobuild-User(master): Anoop C S <anoopcs@samba.org>
+Autobuild-Date(master): Wed Sep 30 14:38:17 UTC 2026 on atb-devel-224
+---
+ buildtools/wafsamba/samba_autoconf.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
+index c15846a3868..898829d6056 100644
+--- a/buildtools/wafsamba/samba_autoconf.py
++++ b/buildtools/wafsamba/samba_autoconf.py
+@@ -1044,6 +1044,7 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf):
+         # resolution of symbols
+         conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
+ 
+-        if (conf.env.undefined_ignore_ldflags == [] and
++        if (sys.platform == 'darwin' and
++            conf.env.undefined_ignore_ldflags == [] and
+             conf.CHECK_LDFLAGS(['-Wl,-undefined,dynamic_lookup'])):
+             conf.env.undefined_ignore_ldflags = ['-Wl,-undefined,dynamic_lookup']
+-- 
+2.55.0
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-01 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01 13:44 [rpms/samba] rawhide: Fix dynamic_lookup related build issue on i686 (bso #16265) 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox