Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2016 09:15:00 +0100
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-ports@freebsd.org
Subject:   stunnel fails to build
Message-ID:  <57d3d4e8-ed5b-ee6d-073e-81b7fe1afb30@zyxst.net>

next in thread | raw e-mail | index | archive | help
Hi,

ports: r418866
stable/11: r302999

I have the following defined in /etc/make.conf - could this be the issue?

DEFAULT_VERSIONS+=  ssl=libressl-devel

###

build fails like this:

/usr/ports/security/stunnel # make MAKE_JOBS_UNSAFE=yes
===>  Building for stunnel-5.35,1
Making all in src
/usr/bin/make  all-am
  CCLD     libstunnel.la
  CC       stunnel-tls.o
In file included from tls.c:39:
./prototypes.h:656:9: error: unknown type name 'CRYPTO_RWLOCK'
typedef CRYPTO_RWLOCK *STUNNEL_RWLOCK;
        ^
tls.c:56:30: warning: incompatible pointer types passing 'void *(size_t,
const char *, int)' (aka 'void *(unsigned long, const char *, int)') to
parameter of type 'void *(*)(size_t)' (aka 'void *(*)(unsigned long)')
[-Wincompatible-pointer-types]
    CRYPTO_set_mem_functions(str_alloc_detached_debug,
                             ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/openssl/crypto.h:412:38: note: passing argument to
parameter 'm' here
int CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *,
size_t), void (*f)(void *));
                                     ^
tls.c:57:9: warning: incompatible pointer types passing 'void *(void *,
size_t, const char *, int)' (aka 'void *(void *, unsigned long, const
char *, int)') to parameter of type 'void *(*)(void *, size_t)' (aka
'void *(*)(void *, unsigned long)') [-Wincompatible-pointer-types]
        str_realloc_debug, str_free_debug);
        ^~~~~~~~~~~~~~~~~
/usr/local/include/openssl/crypto.h:412:58: note: passing argument to
parameter 'r' here
int CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *,
size_t), void (*f)(void *));
                                                         ^
tls.c:57:28: warning: incompatible pointer types passing 'void (void *,
const char *, int)' to parameter of type 'void (*)(void *)'
[-Wincompatible-pointer-types]
        str_realloc_debug, str_free_debug);
                           ^~~~~~~~~~~~~~
/usr/local/include/openssl/crypto.h:412:85: note: passing argument to
parameter 'f' here
int CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *,
size_t), void (*f)(void *));

           ^
3 warnings and 1 error generated.
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/security/stunnel/work/stunnel-5.35/src
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/security/stunnel/work/stunnel-5.35/src
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/security/stunnel/work/stunnel-5.35
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/security/stunnel
*** Error code 1

Stop.
make: stopped in /usr/ports/security/stunnel

===

same issues on -current

thanks,
-- 
J.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57d3d4e8-ed5b-ee6d-073e-81b7fe1afb30>