[Bug 257403] net/freeradius3: fails to build with libressl

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 25 Jul 2021 08:20:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257403

            Bug ID: 257403
           Summary: net/freeradius3: fails to build with libressl
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zi@FreeBSD.org
          Reporter: felix@palmen-it.de
             Flags: maintainer-feedback?(zi@FreeBSD.org)
          Assignee: zi@FreeBSD.org

Created attachment 226672
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=226672&action=edit
fix building with libressl

Building with libressl fails with the following errors:

---

src/main/cb.c:68:28: error: use of undeclared identifier 'TLS_ST_SR_CLNT_HELLO'
                        if (SSL_get_state(s) == TLS_ST_SR_CLNT_HELLO) {
                                                ^
src/main/cb.c:178:29: error: use of undeclared identifier
'SSL3_RT_INNER_CONTENT_TYPE'
        } else if (content_type == SSL3_RT_INNER_CONTENT_TYPE && buf[0] ==
SSL3_RT_APPLICATION_DATA) {
                                   ^
1 warning and 2 errors generated.

---

ld: error: undefined symbol: SSL_CTX_set_max_early_data
>>> referenced by tls.c
>>>               build/objs/src/main/tls.o:(tls_init_ctx)
ld: error: undefined symbol: SSL_CTX_set_max_early_data
>>> referenced by tls.c
>>>               build/objs/src/main/tls.o:(tls_init_ctx)

ld: error: undefined symbol: FIPS_mode
>>> referenced by tls.c
>>>               build/objs/src/main/tls.o:(load_dh_params)
LINK build/bin/radattr

ld: error: undefined symbol: FIPS_mode
>>> referenced by tls.c
>>>               build/objs/src/main/tls.o:(load_dh_params)

---

Attached patch fixes the build.

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