Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2016 20:29:21 +1000
From:      Dewayne Geraghty <dewaynegeraghty@gmail.com>
To:        tech-lists <tech-lists@zyxst.net>
Cc:        ports-list freebsd <freebsd-ports@freebsd.org>
Subject:   Re: stunnel fails to build
Message-ID:  <CAGnMC6oK7r_74Vfsgh3FEyvg8Eboc4f4nSdOaE8pWSGCvW5yJA@mail.gmail.com>
In-Reply-To: <57d3d4e8-ed5b-ee6d-073e-81b7fe1afb30@zyxst.net>
References:  <57d3d4e8-ed5b-ee6d-073e-81b7fe1afb30@zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21 July 2016 at 18:15, tech-lists <tech-lists@zyxst.net> wrote:

> 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.
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>

After reading about your issue, I updated all of my ports, via svnlite, and
successfully built on yesterday's fresh FreeBSD 10.3 Stable for i386 using
openssl.  Unfortunately on the amd64, which uses libressl, I receive:
===>  stunnel-5.35,1 may not be packaged: The stunnel license restricts
distribution when linked to non-OpenSSL non-base SSL-libraries.  (A recent
enhancement)

My customisations are:
i386 uses make.conf entry:  ssl=openssl
amd64 uses make.conf:  ssl=libressl
This may be significant to your situation?

If there is a problem with the Makefile, please log a PR so everyone can
benefit.  ;)



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