Bug 275564 - mail/exim: Fails to build with LibreSSL 3.8.2
Summary: mail/exim: Fails to build with LibreSSL 3.8.2
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-06 07:39 UTC by Felix Palmen
Modified: 2024-01-02 13:28 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (fluffy)
zirias: maintainer-feedback? (fluffy)


Attachments
exim_fix_build_libressl (1.80 KB, patch)
2023-12-06 07:39 UTC, Felix Palmen
zirias: maintainer-approval? (fluffy)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.