Bug 248643

Summary: Openzfs 2.0 integration issue - zfs encryption undefined symbol - PKCS5_PBKDF2_HMAC_SHA1
Product: Base System Reporter: Jeremy Faulkner <gldisater>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: emaste, freqlabs, lwhsu, markj, mmacy
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Jeremy Faulkner 2020-08-13 14:47:51 UTC
Issuing zfs create -o encryption=on -o keyformat=passphrase s3backup/encrypted

returns

Enter passphrase:
Re-enter passphrase:
ld-elf.so.1: /lib/libzfs.so.3: Undefined symbol "PKCS5_PBKDF2_HMAC_SHA1"
Comment 1 Matt Macy freebsd_committer freebsd_triage 2020-08-13 23:13:45 UTC
(In reply to Jeremy Faulkner from comment #0)
Can you pull with rebase the latest projects/openzfs_vendor from https://github.com/mattmacy/networking.git and see if that fixes the problem.
Comment 2 Jeremy Faulkner 2020-08-14 04:14:48 UTC
(In reply to Matt Macy from comment #1)

I did the original install from the installers Ed tweeted about: https://people.freebsd.org/~freqlabs/freebsd-openzfs/latest/

So I git cloned as instructed from CTF reminder email to fs@ and built world and kernel. The ZFS kernel module took an alarmingly long time and was running git and shell. Don't know if that's the new normal for compiling OpenZFS

>>> Kernel(s)  GENERIC built in 8604 seconds, ncpu: 4, make -j4

The error still occurred.

gldisater@S3Backup:~ $ uname -a
FreeBSD S3Backup 13.0-CURRENT FreeBSD 13.0-CURRENT #0 e3fd3e29009-c270476(projects/openzfs_vendor): Thu Aug 13 20:02:03 EDT 2020     root@S3Backup:/usr/obj/usr/home/gldisater/freebsd-openzfs/freebsd/amd64.amd64/sys/GENERIC  amd64
Comment 3 Jeremy Faulkner 2020-08-14 16:36:21 UTC
uname -a
FreeBSD S3Backup 13.0-CURRENT FreeBSD 13.0-CURRENT #1 8a50d4b9f47-c270552(projects/openzfs_vendor): Fri Aug 14 08:58:11 EDT 2020     root@S3Backup:/usr/obj/usr/home/gldisater/freebsd-openzfs/freebsd/amd64.amd64/sys/GENERIC  amd64

works now