Closed sssd-bot closed 1 year ago
Please add to current release, this bug makes sssd hard to build on Gentoo. I had to apply my own patch to get sssd to build
--- a/src/external/samba.m4 2020-05-25 03:05:00.774374354 -0700
+++ b/src/external/samba.m4 2020-05-25 03:05:45.620224889 -0700
@@ -60,7 +60,7 @@
SAVE_CFLAGS=$CFLAGS
SAVE_LIBS=$LIBS
CFLAGS="$CFLAGS $SMBCLIENT_CFLAGS $NDR_NBT_CFLAGS $NDR_KRB5PAC_CFLAGS"
- LIBS="$LIBS -L${sambalibdir} -lidmap-samba4 -Wl,-rpath ${sambalibdir}"
+ LIBS="$LIBS -L${sambalibdir} -lidmap-samba4 -lreplace-samba4 -lsmbd-shim-samba4 -Wl,-rpath ${sambalibdir}"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([
#include <stdlib.h>
This has to be on my system:
--- a/src/external/samba.m4 2020-05-25 03:05:00.774374354 -0700
+++ b/src/external/samba.m4 2020-05-25 03:05:45.620224889 -0700
@@ -60,7 +60,7 @@
SAVE_CFLAGS=$CFLAGS
SAVE_LIBS=$LIBS
CFLAGS="$CFLAGS $SMBCLIENT_CFLAGS $NDR_NBT_CFLAGS $NDR_KRB5PAC_CFLAGS"
- LIBS="$LIBS -L${sambalibdir} -lidmap-samba4 -Wl,-rpath ${sambalibdir}"
+ LIBS="$LIBS -L${sambalibdir} -Wl,--no-as-needed -lidmap-samba4 -lreplace-samba4 -lsmbd-shim-samba4 -Wl,-rpath ${sambalibdir}"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([
#include <stdlib.h>
Otherwise it still fails on some machines.
FYI, other distributions using -Wl,--as-needed will also suffer from this.
Any chance you can add this patch to sssd? It will unbreak dists. which build samba/sssd with --as-needed
Ping?
Hi @joakim-tjernlund
We are going through a triage over a lot of issues, sorry to get back only now.
We wanted to confirm, is this still a valid issue? If yes, can you please go ahead and open a PR?
Kind regards
Hi @joakim-tjernlund
We are going through a triage over a lot of issues, sorry to get back only now.
We wanted to confirm, is this still a valid issue? If yes, can you please go ahead and open a PR?
Kind regards
No, samba has changed how the libs are linked in recent releases. Works OK now
Thank you for the confirmation.
Cloned from Pagure issue: https://pagure.io/SSSD/sssd/issue/4072
I have been unable to build sssd 2.2.0 on a gentoo system due to the idmap test failing to build. As such, the output obtained from configure is
The test program requires two additional libraries in order to be built. That would be replace-samba4 and smbd-shim-samba4.
Replacing line 63,
with
in
src/external/samba.m4
produces a valid result on the idmap test.Comments
Comment from thalman at 2020-03-13 15:44:03
Metadata Update from @thalman: