[Bug 276175] security/sssd: Linker failure:

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Jan 2024 13:07:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276175

            Bug ID: 276175
           Summary: security/sssd: Linker failure:
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jhixson@FreeBSD.org
          Reporter: ohartmann@walstatt.org
             Flags: maintainer-feedback?(jhixson@FreeBSD.org)
          Assignee: jhixson@FreeBSD.org

Port security/sssd fails due to a linker error, see below. Environment is a
CURRENT host, running jails, within such a jail a CURRENT host is acting as
poudriere builder.  Main host is a recent CURRENT (FreeBSD 15.0-CURRENT #23
main-n267336-09af4bf2c98: Mon Jan  1 20:07:52 CET 2024 amd64).

The linker error shown below occurs in several different scenarios on the
builder host, the port itself tagged with either FLAVOUR security/sssd@default
or security/sssd@smb, while configured with the default settings, or
configuring with option SMB=On set and both variants of FLAVOURs (it is FLAVOR
in the syntax of the ports framework, for the record). In either ways, the
failure occurs.

[...]

=>> Building security/sssd
build started at Sun Jan  7 12:50:20 UTC 2024
port directory: /usr/ports/security/sssd
package name: sssd-smb-1.16.5_10
building for: FreeBSD myhost 15.0-CURRENT FreeBSD 15.0-CURRENT 1500008 amd64
maintained by: jhixson@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 4218 Nov  8 22:44
/usr/ports/security/sssd/Makefile
Ports top last git commit: 09561c04660a
Ports top unclean checkout: no
Port dir last git commit: b2fdcc987fc0
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.99.20231211
Host OSVERSION: 1500008
Jail OSVERSION: 1500008
Job Id: 01

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1500008
UNAME_v=FreeBSD 15.0-CURRENT 1500008
UNAME_r=15.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.99.20231211
MAKEOBJDIRPREFIX=/pool/sources/CURRENT/obj/
MASTERMNT=/pool/poudriere/data/.m/head-amd64-head-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=screen
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/pool/poudriere/data/.m/head-amd64-head-default/01/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=head-amd64-head-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/pool/poudriere/data/.m/head-amd64-head-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.99.20231211
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=smb
MAKE_ARGS= FLAVOR=smb
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for sssd-smb-1.16.5_10:
     DOCS=on: Build and/or install documentation
     SMB=on: Install IPA and AD providers (requires Samba4)
===> Use 'make config' to modify these settings
---End OPTIONS List---


[...]
/bin/sh ./libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.  -Wall -I..
-I./src/sss_client -I./src -I. -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include 
-I/usr/local/include   -DLIBDIR=\"/usr/local/lib\" -DVARDIR=\"/var\"
-DSSS_STATEDIR=\"/var/db/sss\" -DSYSCONFDIR=\"/usr/local/etc\" -DSHLIBEXT=\"\"
-DSSSDDATADIR=\"/usr/local/share/sssd/sssd\"
-DSSSD_LIBEXEC_PATH=\"/usr/local/libexec/sssd\"
-DSSSD_CONF_DIR=\"/usr/local/etc/sssd\" -DSSS_NSS_MCACHE_DIR=\"/var/db/sss/mc\"
-DSSS_NSS_SOCKET_NAME=\"/var/run/sss/pipes/nss\"
-DSSS_PAM_SOCKET_NAME=\"/var/run/sss/pipes/pam\"
-DSSS_PAC_SOCKET_NAME=\"/var/run/sss/pipes/pac\"
-DSSS_PAM_PRIV_SOCKET_NAME=\"/var/run/sss/pipes/private/pam\"
-DSSS_SEC_SOCKET_NAME=\"/var/run/secrets.socket\"
-DSSS_SUDO_SOCKET_NAME=\"/var/run/sss/pipes/sudo\"
-DSSS_AUTOFS_SOCKET_NAME=\"/var/run/sss/pipes/autofs\"
-DSSS_SSH_SOCKET_NAME=\"/var/run/sss/pipes/ssh\"
-DLOCALEDIR=\"/usr/local/share/locale\"
-DBASE_FILE_STEM=\"libsss_ldap_common_la-ipa_dn\"  -DLIBICONV_PLUG
-I/usr/local/include  -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith
-Wcast-qual -Wcast-align -Wwrite-strings -Wundef
-Werror-implicit-function-declaration -Winit-self -Wmissing-include-dirs
-fno-strict-aliasing -std=gnu99 -I/usr/local/include  -O2 -pipe 
-fstack-protector-all -DLIBICONV_PLUG -DLDAP_DEPRECATED
-fstack-protector-strong -fno-strict-aliasing  -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -MT
src/providers/ipa/libsss_ldap_common_la-ipa_dn.lo -MD -MP -MF
src/providers/ipa/.deps/libsss_ldap_common_la-ipa_dn.Tpo -c -o
src/providers/ipa/libsss_ldap_common_la-ipa_dn.lo `test -f
'src/providers/ipa/ipa_dn.c' || echo './'`src/providers/ipa/ipa_dn.c
/bin/sh ./libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.  -Wall -I..
-I./src/sss_client -I./src -I. -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include 
-I/usr/local/include   -DLIBDIR=\"/usr/local/lib\" -DVARDIR=\"/var\"
-DSSS_STATEDIR=\"/var/db/sss\" -DSYSCONFDIR=\"/usr/local/etc\" -DSHLIBEXT=\"\"
-DSSSDDATADIR=\"/usr/local/share/sssd/sssd\"
-DSSSD_LIBEXEC_PATH=\"/usr/local/libexec/sssd\"
-DSSSD_CONF_DIR=\"/usr/local/etc/sssd\" -DSSS_NSS_MCACHE_DIR=\"/var/db/sss/mc\"
-DSSS_NSS_SOCKET_NAME=\"/var/run/sss/pipes/nss\"
-DSSS_PAM_SOCKET_NAME=\"/var/run/sss/pipes/pam\"
-DSSS_PAC_SOCKET_NAME=\"/var/run/sss/pipes/pac\"
-DSSS_PAM_PRIV_SOCKET_NAME=\"/var/run/sss/pipes/private/pam\"
-DSSS_SEC_SOCKET_NAME=\"/var/run/secrets.socket\"
-DSSS_SUDO_SOCKET_NAME=\"/var/run/sss/pipes/sudo\"
-DSSS_AUTOFS_SOCKET_NAME=\"/var/run/sss/pipes/autofs\"
-DSSS_SSH_SOCKET_NAME=\"/var/run/sss/pipes/ssh\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DBASE_FILE_STEM=\"_py3sss_la-pysss\" 
-DLIBICONV_PLUG -I/usr/local/include  -Wall -Wshadow -Wstrict-prototypes
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wundef
-Werror-implicit-function-declaration -Winit-self -Wmissing-include-dirs
-fno-strict-aliasing -std=gnu99 -I/usr/local/include/python3.9
-I/usr/local/include/python3.9  -Wno-unused-result -Wsign-compare
-Wunreachable-code -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing 
-DNDEBUG  -O2 -pipe  -fstack-protector-all -DLIBICONV_PLUG -DLDAP_DEPRECATED
-fstack-protector-strong -fno-strict-aliasing  -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -MT src/python/_py3sss_la-pysss.lo
-MD -MP -MF src/python/.deps/_py3sss_la-pysss.Tpo -c -o
src/python/_py3sss_la-pysss.lo `test -f 'src/python/pysss.c' || echo
'./'`src/python/pysss.c
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_getgrnam_r' failed: symbol not defined
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_getgrgid_r' failed: symbol not defined
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_getgrent_r' failed: symbol not defined
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_setgrent' failed: symbol not defined
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_endgrent' failed: symbol not defined
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_getpwnam_r' failed: symbol not defined
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_getpwuid_r' failed: symbol not defined
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_getpwent_r' failed: symbol not defined
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_setpwent' failed: symbol not defined
ld: error: version script assignment of 'EXPORTED' to symbol
'__nss_compat_endpwent' failed: symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)

-- 
You are receiving this mail because:
You are the assignee for the bug.