Bug 286598 - security/nmap: Fails to build with LibreSSL 4.1
Summary: security/nmap: Fails to build with LibreSSL 4.1
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-05 10:02 UTC by jakub_lach
Modified: 2025-05-05 15:20 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (cy)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jakub_lach 2025-05-05 10:02:50 UTC
nse_ssl_cert.cc:495:36: error: use of undeclared identifier 'EC_GROUP_method_of'
  495 |     nid = EC_METHOD_get_field_type(EC_GROUP_method_of(group));
      |                                    ^
1 error generated.
Comment 1 Cy Schubert freebsd_committer freebsd_triage 2025-05-05 14:36:24 UTC
EC_GROUP_method_of() doesn't exist in LibreSSL.

Try security/nmap-devel.

The only other option is to submit a patch to OpenBSD to implement EC_GROUP_method_of() in LibreSSL. It's not a port maintainers place to implement functions missing in upstream software.
Comment 2 Cy Schubert freebsd_committer freebsd_triage 2025-05-05 14:40:56 UTC
Looking at the OpenBSD source code, they removed the EC_GROUP_method_of() function from their tree. As LibreSSL is an export of OpenBSD, it too does not support EC_GROUP_method_of(). Someone will need to write this for FreeBSD. Patches are always welcome.
Comment 3 Cy Schubert freebsd_committer freebsd_triage 2025-05-05 14:53:40 UTC
nmap-devel does not support LibreSSL either.
Comment 4 commit-hook freebsd_committer freebsd_triage 2025-05-05 15:01:29 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=84293fd91f9be4caed31d14455bdfebb17a0e8a6

commit 84293fd91f9be4caed31d14455bdfebb17a0e8a6
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-05-05 14:58:20 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-05-05 15:00:55 +0000

    security/nmap*: LibreSSL is not supported

    Upstream calls EC_GROUP_method_of(). OpenBSD has removed
    EC_GROUP_method_of() from their tree, meaning LibreSSL doesn't
    have it either. security/nmap* will not build with LibreSSL.

    PR:     286598

 security/nmap-devel/Makefile | 4 ++++
 security/nmap/Makefile       | 4 ++++
 2 files changed, 8 insertions(+)
Comment 5 jakub_lach 2025-05-05 15:20:07 UTC
Well, that took unexpected turn, but thanks for clearing that up and supporting nmap!