Bug 219366 - net/netatalk3 - Undefined symbol "DH_set0_pqg" -- possibly due to using libressl?
Summary: net/netatalk3 - Undefined symbol "DH_set0_pqg" -- possibly due to using libre...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Joe Marcus Clarke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-18 00:12 UTC by elij
Modified: 2017-05-22 14:45 UTC (History)
0 users

See Also:


Attachments
possible fix - patch (424 bytes, patch)
2017-05-18 18:11 UTC, elij
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description elij 2017-05-18 00:12:42 UTC
After installing netatalk3 (netatalk3-3.1.11,1) build via poudriere with:

 DEFAULT_VERSIONS+= ssl=libressl

I see this in the logs:

afpd[61876]: uam_load(uams_dhx.so): failed to load: /usr/local/libexec/netatalk-uams//uams_dhx.so: Undefined symbol "DH_set0_pqg"
afpd[61876]: uam: uams_dhx.so load failure

My guess is something to do with libressl vs openssl.
release notes (http://netatalk.sourceforge.net/3.1/ReleaseNotes3.1.11.html) reference this:

 UPD: dhx uams: OpenSSL 1.1 support, GitHub#87
 https://github.com/Netatalk/Netatalk/issues/87
Comment 1 elij 2017-05-18 00:35:04 UTC
My guess is the fix would be changing this in etc/uams/openssl_compat.h

    #if OPENSSL_VERSION_NUMBER < 0x10100000L

to this

    #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
Comment 2 elij 2017-05-18 18:11:24 UTC
Created attachment 182711 [details]
possible fix - patch

this patch seems to get it working for me, after a PORTEPOCH bump in the makefile
Comment 3 Joe Marcus Clarke freebsd_committer freebsd_triage 2017-05-22 14:44:42 UTC
Fixed, thanks for reporting.
Comment 4 commit-hook freebsd_committer freebsd_triage 2017-05-22 14:45:03 UTC
A commit references this bug:

Author: marcus
Date: Mon May 22 14:44:04 UTC 2017
New revision: 441463
URL: https://svnweb.freebsd.org/changeset/ports/441463

Log:
  * Fix build with LibreSSL [1]
  * Use shebang fix to fix afpstats' use of Python

  PR:		219366 [1]
  Obtained from:	https://github.com/Netatalk/Netatalk/issues/91 [1]

Changes:
  head/net/netatalk3/Makefile
  head/net/netatalk3/files/patch-etc_uams_openssl__compat.h