Bug 218802

Summary: [PATCH]net/hostapd fails to compile with libressl
Product: Ports & Packages Reporter: Walter Schwarzenfeld <w.schwarzenfeld>
Component: Individual Port(s)Assignee: Larry Rosenman <ler>
Status: Closed FIXED    
Severity: Affects Only Me CC: ler, leres
Priority: --- Flags: leres: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
svn-diff-net_hostapd none

Description Walter Schwarzenfeld 2017-04-21 21:05:56 UTC
Hostapd failes to compile with libressl:

../src/crypto/crypto_openssl.o: In function `dh5_init':
../src/crypto/crypto_openssl.c:(.text+0xe77): undefined reference to `DH_set0_pqg'
../src/crypto/crypto_openssl.c:(.text+0xeb4): undefined reference to `DH_get0_key'
../src/crypto/crypto_openssl.o: In function `dh5_init_fixed':
../src/crypto/crypto_openssl.c:(.text+0x1042): undefined reference to `DH_set0_pqg'
../src/crypto/crypto_openssl.c:(.text+0x1097): undefined reference to `DH_set0_key'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Walter Schwarzenfeld 2017-04-21 21:07:43 UTC
Created attachment 181990 [details]
svn-diff-net_hostapd
Comment 2 Walter Schwarzenfeld 2017-05-07 13:13:27 UTC
I take the patch from here:
https://github.com/gentoo/libressl/commit/7816a1b0b4d4b91764c7020ded81ab8cde30515b
Comment 3 Craig Leres freebsd_committer freebsd_triage 2017-05-07 22:08:27 UTC
Comment on attachment 181990 [details]
svn-diff-net_hostapd

I don't have any easy way to test this with libressl but it looks simple and builds ok on my 10.3-RELEASE build server.
Comment 4 Craig Leres freebsd_committer freebsd_triage 2017-05-07 22:09:26 UTC
(Looks like you can't comment on a patch *and* set the maintainer flag...)
Comment 5 Craig Leres freebsd_committer freebsd_triage 2017-05-07 22:15:14 UTC
I'm having trouble setting the maintainer flag on the patch. I tried clearing my browser cache, logging out and back in, etc.
Comment 6 Larry Rosenman freebsd_committer freebsd_triage 2017-05-07 22:19:53 UTC
committed, thanks!
Comment 7 commit-hook freebsd_committer freebsd_triage 2017-05-07 22:19:59 UTC
A commit references this bug:

Author: ler
Date: Sun May  7 22:18:43 UTC 2017
New revision: 440391
URL: https://svnweb.freebsd.org/changeset/ports/440391

Log:
  net/hostapd fails to compile with libressl

  Not bumping PORTREVISION as default options are NOT libressl

  PR:		218802
  Submitted by:	w.schwarzenfeld@utanet.at
  Approved by:	adamw (mentor, implicit), leres@ee.lbl.gov (maintainer)

Changes:
  head/net/hostapd/files/patch-crypto__openssl.c