From owner-freebsd-ports-bugs@freebsd.org Sun Mar 19 05:47:57 2017 Return-Path: Delivered-To: freebsd-ports-bugs@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 931B3D13A12 for ; Sun, 19 Mar 2017 05:47:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 780BB1859 for ; Sun, 19 Mar 2017 05:47:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v2J5lvI7069643 for ; Sun, 19 Mar 2017 05:47:57 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 217914] archivers/libarchive failed with libressl Date: Sun, 19 Mar 2017 05:47:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: w.schwarzenfeld@utanet.at X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: glewis@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Mar 2017 05:47:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217914 Bug ID: 217914 Summary: archivers/libarchive failed with libressl Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: glewis@FreeBSD.org Reporter: w.schwarzenfeld@utanet.at Assignee: glewis@FreeBSD.org Flags: maintainer-feedback?(glewis@FreeBSD.org) libarchive-3.3.1 failed to compile with libressl with following error messa= ge: libtool: link: /usr/local/libexec/ccache/world/cc -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -Wall -Wformat -Wformat-security -Wl,-rpath -Wl,/usr/local/lib -fstack-protector -o bsdtar tar/bsdtar-bsdtar.o tar/bsdtar-cmdline.o tar/bsdtar-creation_set.o tar/bsdtar-read.o tar/bsdtar-subst.o tar/bsdtar-util.o tar/bsdtar-write.o -L/usr/local/lib ./.libs/libarchive.a ./.libs/libarchive_fe.a -lmd -lcrypto -lexpat -llzo2 -llzma -llz4 -lbz2 -lz --- bsdcpio --- ./.libs/libarchive.a(archive_hmac.o): In function `__hmac_sha1_init': libarchive/archive_hmac.c:(.text+0x27): undefined reference to `HMAC_CTX_ne= w' ./.libs/libarchive.a(archive_hmac.o): In function `__hmac_sha1_cleanup': libarchive/archive_hmac.c:(.text+0xaf): undefined reference to `HMAC_CTX_fr= ee' --- bsdtar --- ./.libs/libarchive.a(archive_hmac.o): In function `__hmac_sha1_init': libarchive/archive_hmac.c:(.text+0x27): undefined reference to `HMAC_CTX_ne= w' ./.libs/libarchive.a(archive_hmac.o): In function `__hmac_sha1_cleanup': libarchive/archive_hmac.c:(.text+0xaf): undefined reference to `HMAC_CTX_fr= ee' --- bsdcpio --- cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [bsdcpio] Error code 1 I am rather insecure, but if I am try following, it is working: Makefile: +.if ${SSL_DEFAULT:Mlibressl} && !${PORT_OPTIONS:MNETTLE} +EXTRA_PATCHES=3D ${FILESDIR}/extrapatch-archive__hmac.c +.endif extrapatch-archive__hmac.c: --- libarchive/archive_hmac.c.orig 2017-03-19 05:24:11 UTC +++ libarchive/archive_hmac.c @@ -175,8 +175,6 @@ __hmac_sha1_cleanup(archive_hmac_sha1_ct memset(ctx, 0, sizeof(*ctx)); } -#elif defined(HAVE_LIBCRYPTO) - static int __hmac_sha1_init(archive_hmac_sha1_ctx *ctx, const uint8_t *key, size_t key_len) { --=20 You are receiving this mail because: You are the assignee for the bug.=