Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2017 05:47:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 217914] archivers/libarchive failed with libressl
Message-ID:  <bug-217914-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



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