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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 12 07:03:38 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237216

            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 at FreeBSD.org
          Reporter: felix at palmen-it.de
          Assignee: zi at FreeBSD.org
             Flags: maintainer-feedback?(zi at FreeBSD.org)

Created attachment 203609
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=203609&action=edit
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 
 *(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);       
                                                     ^~~~~~~~~~~~~~~~~         
/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,                         
                   ^
src/main/tls.c:3383:3: warning: implicit declaration of function
'SSL_CTX_set_num_tickets' is invalid in C99 [-Wimplicit-function-declaration]   
                SSL_CTX_set_num_tickets(ctx, 1);                               
                ^
src/main/tls.c:3396:3: warning: implicit declaration of function
'SSL_CTX_set_num_tickets' is invalid in C99 [-Wimplicit-function-declaration]   
                SSL_CTX_set_num_tickets(ctx, 0);                               
                ^
---

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

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


More information about the freebsd-ports-bugs mailing list