[Bug 274654] Cannot rebuild Sendmail with OpenSSL 3.0.11 on FreeBSD 12.4

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Oct 2023 09:43:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274654

--- Comment #1 from Andrey Bushev <busheval@gmail.com> ---
After update to openssl-3.0.12, rust-1.73 and py39-cryptography-41.0.4 same
problem.

# service sendmail start
Starting sendmail.
ld-elf.so.1: Shared object "libssl.so.11" not found, required by "sendmail"
/etc/rc.d/sendmail: WARNING: failed to start sendmail
Starting sendmail_msp_queue.
ld-elf.so.1: Shared object "libssl.so.11" not found, required by "sendmail"
/etc/rc.d/sendmail: WARNING: failed to start sendmail_msp_queue


# cd /usr/src/lib/libsm
# make clean && make obj && make depend && make
# cd /usr/src/lib/libsmutil
# make clean && make obj && make depend && make
# cd /usr/src/usr.sbin/sendmail
# make clean && make obj && make depend && make && make install

...

/usr/src/contrib/sendmail/src/tls.c:99:4: error: incomplete definition of type
'struct dh_st'
        dh->p = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL);
        ~~^
/usr/local/include/openssl/types.h:134:16: note: forward declaration of 'struct
dh_st'
typedef struct dh_st DH;
               ^
/usr/src/contrib/sendmail/src/tls.c:100:4: error: incomplete definition of type
'struct dh_st'
        dh->g = BN_bin2bn(dh512_g, sizeof(dh512_g), NULL);
        ~~^
/usr/local/include/openssl/types.h:134:16: note: forward declaration of 'struct
dh_st'
typedef struct dh_st DH;
               ^
/usr/src/contrib/sendmail/src/tls.c:101:9: error: incomplete definition of type
'struct dh_st'
        if ((dh->p == NULL) || (dh->g == NULL))
             ~~^
/usr/local/include/openssl/types.h:134:16: note: forward declaration of 'struct
dh_st'
typedef struct dh_st DH;
               ^
/usr/src/contrib/sendmail/src/tls.c:101:28: error: incomplete definition of
type 'struct dh_st'
        if ((dh->p == NULL) || (dh->g == NULL))
                                ~~^
/usr/local/include/openssl/types.h:134:16: note: forward declaration of 'struct
dh_st'
typedef struct dh_st DH;
               ^

...

27 warnings and 8 errors generated.
*** Error code 1

Stop.
make: stopped in /usr/src/usr.sbin/sendmail


# grep -v "^#" /etc/make.conf
DEFAULT_VERSIONS+= ssl=openssl bdb=18
OPTIONS_UNSET= X11
SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDADD=/usr/local/lib/libsasl2.so
OPTIONS_SET= BDB6_PERMITTED

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