[Bug 217914] archivers/libarchive failed with libressl
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Mar 19 05:47:57 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217914
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 at FreeBSD.org
Reporter: w.schwarzenfeld at utanet.at
Assignee: glewis at FreeBSD.org
Flags: maintainer-feedback?(glewis at FreeBSD.org)
libarchive-3.3.1 failed to compile with libressl with following error message:
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_new'
./.libs/libarchive.a(archive_hmac.o): In function `__hmac_sha1_cleanup':
libarchive/archive_hmac.c:(.text+0xaf): undefined reference to `HMAC_CTX_free'
--- bsdtar ---
./.libs/libarchive.a(archive_hmac.o): In function `__hmac_sha1_init':
libarchive/archive_hmac.c:(.text+0x27): undefined reference to `HMAC_CTX_new'
./.libs/libarchive.a(archive_hmac.o): In function `__hmac_sha1_cleanup':
libarchive/archive_hmac.c:(.text+0xaf): undefined reference to `HMAC_CTX_free'
--- 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= ${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)
{
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list