Bug 218802 - [PATCH]net/hostapd fails to compile with libressl
Summary: [PATCH]net/hostapd fails to compile with libressl
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: Larry Rosenman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-21 21:05 UTC by Walter Schwarzenfeld
Modified: 2017-05-07 22:19 UTC (History)
2 users (show)

See Also:
leres: maintainer-feedback+


Attachments
svn-diff-net_hostapd (1.24 KB, patch)
2017-04-21 21:07 UTC, Walter Schwarzenfeld
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Schwarzenfeld freebsd_triage 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 freebsd_triage 2017-04-21 21:07:43 UTC
Created attachment 181990 [details]
svn-diff-net_hostapd
Comment 2 Walter Schwarzenfeld freebsd_triage 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