Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2019 07:03:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 237216] net/freeradius3: fails to build with libressl
Message-ID:  <bug-237216-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237216

            Bug ID: 237216
           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
          Assignee: zi@FreeBSD.org
             Flags: maintainer-feedback?(zi@FreeBSD.org)

Created attachment 203609
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D203609&action=
=3Dedit
build fixes for libressl

Building with libressl gives the following compiler warnings:

---
src/main/tls.c:3286:33: warning: incompatible pointer types passing
'SSL_SESSION=20
 *(SSL *, unsigned char *, int, int *)' (aka 'struct ssl_session_st *(struct
ssl
_st *, unsigned char *, int, int *)') to parameter of type 'SSL_SESSION
*(*)(str
uct ssl_st *, const unsigned char *, int, int *)' (aka 'struct ssl_session_=
st
*(
*)(struct ssl_st *, const unsigned char *, int, int *)')
[-Wincompatible-pointer-types]
                        SSL_CTX_sess_set_get_cb(ctx, cbtls_get_session);=20=
=20=20=20=20=20=20
                                                     ^~~~~~~~~~~~~~~~~=20=
=20=20=20=20=20=20=20=20
/usr/local/include/openssl/ssl.h:730:20: note: passing argument to parameter
'ge
t_session_cb' here
    SSL_SESSION *(*get_session_cb)(struct ssl_st *ssl,=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
                   ^
src/main/tls.c:3383:3: warning: implicit declaration of function
'SSL_CTX_set_num_tickets' is invalid in C99 [-Wimplicit-function-declaratio=
n]=20=20=20
                SSL_CTX_set_num_tickets(ctx, 1);=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
                ^
src/main/tls.c:3396:3: warning: implicit declaration of function
'SSL_CTX_set_num_tickets' is invalid in C99 [-Wimplicit-function-declaratio=
n]=20=20=20
                SSL_CTX_set_num_tickets(ctx, 0);=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
                ^
---

leading to this linker error:

---
LINK build/bin/radiusd
/usr/bin/ld: error: undefined symbol: SSL_CTX_set_num_tickets
>>> referenced by tls.c
>>>               build/objs/src/main/tls.o:(tls_init_ctx)
---

Suggest the attached patch to solve the issue.

BR, Felix

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237216-7788>