[Bug 274753] security/sudo fails to build on poudriere due to OpenSSL linker error

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 27 Oct 2023 10:57:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274753

            Bug ID: 274753
           Summary: security/sudo fails to build on poudriere due to
                    OpenSSL linker error
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: garga@FreeBSD.org
          Reporter: tburns@hrsd.com
          Assignee: garga@FreeBSD.org
             Flags: maintainer-feedback?(garga@FreeBSD.org)

This is failing to build for me on amd64 FreeBSD 13.2 using Poudriere. It
appears to be related to OpenSSL 3 being pulled in from a dependency. Most
likely sssd or OpenLDAP.

Relevant build log output:

[00:04:07] /bin/sh ../libtool --tag=disable-static --mode=link cc -o
sudo_sendlog logsrv_util.o sendlog.o tls_client.o tls_init.o -lgcc
-fstack-protector-strong  -Wl,--enable-new-dtags
-Wl,--allow-multiple-definition  -Wc,-fstack-protector-strong
-Wc,-fstack-clash-protection -Wc,-fcf-protection -Wl,-z,relro -Wl,-z,now
-Wl,-z,noexecstack ../lib/iolog/libsudo_iolog.la 
../lib/eventlog/libsudo_eventlog.la  ../lib/logsrv/liblogsrv.la 
../lib/protobuf-c/libprotobuf-c.la  -lssl -lcrypto
[00:04:09] libtool: link: cc -o .libs/sudo_sendlog logsrv_util.o sendlog.o
tls_client.o tls_init.o -fstack-protector-strong -Wl,--enable-new-dtags
-Wl,--allow-multiple-definition -fstack-protector-strong
-fstack-clash-protection -fcf-protection -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z
-Wl,noexecstack  ../lib/iolog/.libs/libsudo_iolog.a -lz
../lib/eventlog/.libs/libsudo_eventlog.a
/wrkdirs/usr/ports/security/sudo/work/sudo-1.9.14p3/lib/util/.libs/libsudo_util.so
../lib/logsrv/.libs/liblogsrv.a ../lib/protobuf-c/.libs/libprotobuf-c.a -lssl
-lgcc -lcrypto -Wl,-rpath -Wl,/usr/local/libexec/sudo
[00:04:09] ld: error:
/wrkdirs/usr/ports/security/sudo/work/sudo-1.9.14p3/lib/util/.libs/libsudo_util.so:
undefined reference to EVP_MD_get_size [--no-allow-shlib-undefined]
[00:04:09] cc: error: linker command failed with exit code 1 (use -v to see
invocation)

Compile time option file:

# This file is auto-generated by 'make config'.
# Options for sudo-1.9.14p2
_OPTIONS_READ=sudo-1.9.14p2
_FILE_COMPLETE_OPTIONS_LIST=AUDIT DISABLE_AUTH DISABLE_ROOT_SUDO DOCS EXAMPLES
INSULTS LDAP NLS NOARGS_SHELL OPIE PAM PYTHON GSSAPI_BASE GSSAPI_HEIMDAL
GSSAPI_MIT SSSD SSSD_DEVEL
OPTIONS_FILE_SET+=AUDIT
OPTIONS_FILE_UNSET+=DISABLE_AUTH
OPTIONS_FILE_UNSET+=DISABLE_ROOT_SUDO
OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_SET+=EXAMPLES
OPTIONS_FILE_UNSET+=INSULTS
OPTIONS_FILE_SET+=LDAP
OPTIONS_FILE_UNSET+=NLS
OPTIONS_FILE_UNSET+=NOARGS_SHELL
OPTIONS_FILE_UNSET+=OPIE
OPTIONS_FILE_SET+=PAM
OPTIONS_FILE_UNSET+=PYTHON
OPTIONS_FILE_UNSET+=GSSAPI_BASE
OPTIONS_FILE_UNSET+=GSSAPI_HEIMDAL
OPTIONS_FILE_UNSET+=GSSAPI_MIT
OPTIONS_FILE_SET+=SSSD
OPTIONS_FILE_UNSET+=SSSD_DEVEL

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