Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610806 - app-arch/libarchive-3.3.0 : ./.../libarchive.so: undefined reference to `HMAC_CTX_free'
Summary: app-arch/libarchive-3.3.0 : ./.../libarchive.so: undefined reference to `HMAC...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-24 14:33 UTC by Toralf Förster
Modified: 2018-01-02 13:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,6.46 KB, text/plain)
2017-02-24 14:33 UTC, Toralf Förster
Details
app-arch:libarchive-3.3.0:20170224-142649.log (app-arch:libarchive-3.3.0:20170224-142649.log,247.51 KB, text/plain)
2017-02-24 14:33 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,40.13 KB, application/x-bzip)
2017-02-24 14:33 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,345.30 KB, text/plain)
2017-02-24 14:33 UTC, Toralf Förster
Details
environment (environment,113.65 KB, text/plain)
2017-02-24 14:33 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,26.18 KB, application/x-bzip)
2017-02-24 14:33 UTC, Toralf Förster
Details
Fix libarchive 3.3.0 build against LibreSSL (libarchive-3.3.0-libressl.patch,543 bytes, patch)
2017-02-26 13:28 UTC, Daniel Harding
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-02-24 14:33:06 UTC
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -Wall -Wformat -Wformat-security  -Wl,-O1 -Wl,--as-needed -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  libarchive.la libarchive_fe.la  -lmd -lcrypto -lacl -llzma -lbz2 -lz  -lxml2
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -Wall -Wformat -Wformat-security -Wl,-O1 -o .libs/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  -Wl,--as-needed ./.libs/libarchive.so ./.libs/libarchive_fe.a /usr/lib64/libmd.so -lcrypto -lacl -llzma -lbz2 -lz -lxml2
./.libs/libarchive.so: undefined reference to `HMAC_CTX_free'

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named desktop-libressl-abi32+64_20170215-185650) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)
  [4]   jython2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 7.2.6.8 [icedtea-7]
2)	IcedTea JDK 7.2.6.8 [icedtea-bin-7]
3)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-7  system-vm
  [2]   icedtea-bin-7 
  [3]   icedtea-bin-8
Comment 1 Toralf Förster gentoo-dev 2017-02-24 14:33:10 UTC
Created attachment 464992 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-02-24 14:33:14 UTC
Created attachment 464994 [details]
app-arch:libarchive-3.3.0:20170224-142649.log
Comment 3 Toralf Förster gentoo-dev 2017-02-24 14:33:17 UTC
Created attachment 464996 [details]
config.log.tbz2
Comment 4 Toralf Förster gentoo-dev 2017-02-24 14:33:20 UTC
Created attachment 464998 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-02-24 14:33:23 UTC
Created attachment 465000 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-02-24 14:33:26 UTC
Created attachment 465002 [details]
etc.portage.tbz2
Comment 7 Daniel Harding 2017-02-26 13:28:21 UTC
Created attachment 465270 [details, diff]
Fix libarchive 3.3.0 build against LibreSSL

This error occurs when building libarchive 3.3.0 against LibreSSL instead of OpenSSL.  Update the preprocessor directive in archive_openssl_hmac_private.h to use then private definitions of HMAC_CTX_new and HMAC_CTX_free when building against LibreSSL.
Comment 8 phamming 2017-03-06 11:28:30 UTC
I think in the libressl overlay this is already fixed.
Comment 9 zym 2017-03-25 11:19:37 UTC
v3.3.1 the same problem here, can we please update with a working patch? it will be a VERY blocker for anyone want to tryout the libressl, this will break the whole system.

the libressl in portage, it should be a working in building even as testing.

thanks
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-02 13:25:56 UTC
Please test 3.3.2.