[Bug 272998] net-mgmt/net-snmp: fails to build with security/openssl30 (patch included)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 07 Aug 2023 14:07:51 UTC

            Bug ID: 272998
           Summary: net-mgmt/net-snmp: fails to build with
                    security/openssl30 (patch included)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: fabian@wenks.ch
                CC: brnrd@freebsd.org, zi@FreeBSD.org
                CC: brnrd@freebsd.org, zi@FreeBSD.org

Created attachment 243926
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=243926&action=edit
patch for snmplib/snmp_openssl.c

As with the approaching end of life for OpenSSL 1.1.1, I tried to upgrade my
ports to use security/openssl30 on FreeBSD 12.4. I did the following steps:

  $EDITOR /etc/make.conf
  make -C /usr/ports/security/openssl30 config  (compare and adjust with
  nice -n 5 portupgrade -p -o security/openssl30 -f security/openssl
  nice -n 5 portupgrade -prf -x security/openssl30 security/openssl30

But the build with net-mgmt/net-snmp failed. I did found this entry
https://github.com/net-snmp/net-snmp/issues/344 which points to this patch
so I created net-mgmt/net-snmp/files/patch-snmplib-snmp_openssl.c (attached)
and now I could build net-snmp with openssl30.

I have not tested if this still also build with openssl 1.1.1.

You are receiving this mail because:
You are the assignee for the bug.