Bug 275564

Summary: mail/exim: Fails to build with LibreSSL 3.8.2
Product: Ports & Packages Reporter: Felix Palmen <zirias>
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: New ---    
Severity: Affects Some People CC: fluffy, pi
Priority: --- Flags: bugzilla: maintainer-feedback? (fluffy)
zirias: maintainer-feedback? (fluffy)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
exim_fix_build_libressl zirias: maintainer-approval? (fluffy)

Description Felix Palmen freebsd_committer freebsd_triage 2023-12-06 07:39:29 UTC
Created attachment 246815 [details]
exim_fix_build_libressl

Build error with LibreSSL 3.8.2:

---
cc tls.c
In file included from tls.c:473:
./tls-openssl.c:2652:4: error: incomplete definition of type 'struct ocsp_basic_response_st'
        bs->certs
        ~~^
/usr/local/include/openssl/ocsp.h:160:16: note: forward declaration of 'struct ocsp_basic_response_st'
typedef struct ocsp_basic_response_st OCSP_BASICRESP;
               ^
1 error generated.
---

Attached patch fixes it by enabling most OpenSSL 1.1+ APIs with LibreSSL as well.
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2024-01-02 13:28:45 UTC
Have you tested this with DANE=on ?

My build with poudriere, ssl=libressl on 13.2amd64 was failing, see:

https://people.freebsd.org/~pi/exim-libressl-132.txt

I had:
====> TLS support:
     TLS=on: TLS support
     GNUTLS=off: Use GnuTLS instead of OpenSSL for TLS

With DANE=off, it builds.