From owner-freebsd-ports@freebsd.org Thu Jul 21 10:29:53 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26BD4BA0734 for ; Thu, 21 Jul 2016 10:29:53 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: from mail-lf0-x22a.google.com (mail-lf0-x22a.google.com [IPv6:2a00:1450:4010:c07::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 94B0014CE for ; Thu, 21 Jul 2016 10:29:52 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: by mail-lf0-x22a.google.com with SMTP id l69so57759694lfg.1 for ; Thu, 21 Jul 2016 03:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yubpuclYLW6NlTJdBRiBosTdissn5oEkRWXYcf5p4ww=; b=oKlbxZZ8duAfpU//v1cCl+bmmvRcIN3Fls5o6Joiz336c7H6sCjjTT/eu7cL6uRi14 D7tcQ5z5v0QIud+6+0W3dfxXglg0YFgdQAY/rMhVlVkJjDYTfkUwcdHQNo8tLPgLJ3IM PKG+slFFmgwRmRZXHBaoTPTC7c5IgvyvaL5HtClaXdAQAULq95Vpaz3v5sGR5z/P3ccJ HDITYJpWbrGQUHx5EFu2XjZqoaCsFig8wQ0S3pOWx9vQZ81mjHwV/s7wTOsSfyV3igDE gd31Ei5Lcue71Ib+sFn7l5cs5g/wiNPtxhD5qCfkJXGRzq9V7weC1+iQr62VviwUFspo +30A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yubpuclYLW6NlTJdBRiBosTdissn5oEkRWXYcf5p4ww=; b=SIqWeRpQOq/QCqwD0URCncSQjNT28fvYjXa05eb/2eFvFmGcuM3GFWSfGvMIPHm5pW hdeStsAvRWI4tVW+8d7iR9p0OhyRJmiLS3dobQD68ODg8PpFr0BQ7onLa12N5ujXoDi5 X9xR23DO7nFwWc+A9+EgKp/kp/SNoRGmQTqal0dUES1U00NvR9MIcoU6TV29A7yMLk9H IO7rf8AEqbI+ri0Y7UTcA3CAU+aiRVpzf9YV+H/YjTUbelQDJ5jCxLfLDrmtUQuShw70 IBNkx8znpSx5WUWAzvLbLxEDeJuVAoEfL4RpASzhsAWVZXtzTJDzPwSYDa0xJ/cXsDyp i2hQ== X-Gm-Message-State: ALyK8tIJNfJvs/LTG0UUiyeWMg8O5QyisinWKgqebWAxbdVjZTMVrhNo404CI8FIOFj6V1DOYNxpfrGBZdnQUw== X-Received: by 10.25.144.75 with SMTP id s72mr23483149lfd.232.1469096990753; Thu, 21 Jul 2016 03:29:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.90.77 with HTTP; Thu, 21 Jul 2016 03:29:21 -0700 (PDT) In-Reply-To: <57d3d4e8-ed5b-ee6d-073e-81b7fe1afb30@zyxst.net> References: <57d3d4e8-ed5b-ee6d-073e-81b7fe1afb30@zyxst.net> From: Dewayne Geraghty Date: Thu, 21 Jul 2016 20:29:21 +1000 Message-ID: Subject: Re: stunnel fails to build To: tech-lists Cc: ports-list freebsd Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 10:29:53 -0000 On 21 July 2016 at 18:15, tech-lists 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. ;)