From f5a6b5a66af8b52efb5c7a6c70f88f6b686f9097 Mon Sep 17 00:00:00 2001 From: Ivan Pavlov Date: Sun, 9 Aug 2026 22:41:59 +0300 Subject: [PATCH] net-snmp: fix linking issue on libnetsnmptrapd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new version of the compiler imposes stricter requirements — specifically, it disallows linking against undefined functions. Consequently, the build fails when using the new version. A patch from Debian repository has been added to fix this issue. Discussion on main repository: https://github.com/net-snmp/net-snmp/issues/434 Signed-off-by: Ivan Pavlov --- net/net-snmp/Makefile | 2 +- .../140-debian-makefile_trap_needs_agent.patch | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 net/net-snmp/patches/140-debian-makefile_trap_needs_agent.patch diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index 66edc04377bea..89b77c6b93757 100644 --- a/net/net-snmp/Makefile +++ b/net/net-snmp/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=net-snmp PKG_VERSION:=5.9.5.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/net-snmp diff --git a/net/net-snmp/patches/140-debian-makefile_trap_needs_agent.patch b/net/net-snmp/patches/140-debian-makefile_trap_needs_agent.patch new file mode 100644 index 0000000000000..72fd6854e9609 --- /dev/null +++ b/net/net-snmp/patches/140-debian-makefile_trap_needs_agent.patch @@ -0,0 +1,18 @@ +Description: Add libnetsnmpagent link to libnetsnmptrapd + Causes a linking issue otherwise + https://github.com/net-snmp/net-snmp/issues/434 +Author: Craig Small +Reviewed-by: Craig Small +Last-Update: 2023-08-19 +--- +--- a/apps/Makefile.in ++++ b/apps/Makefile.in +@@ -235,7 +235,7 @@ snmppcap$(EXEEXT): snmppcap.$(OSUFFIX + $(LINK) ${CFLAGS} -o $@ snmppcap.$(OSUFFIX) ${LDFLAGS} ${USEAGENTLIBS} ${LIBS} -lpcap + + libnetsnmptrapd.$(LIB_EXTENSION)$(LIB_VERSION): $(LLIBTRAPD_OBJS) +- $(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(MYSQL_LIBS) $(USELIBS) $(PERLLDOPTS_FOR_LIBS) $(LDFLAGS) ++ $(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(MYSQL_LIBS) $(USELIBS) $(USEAGENTLIBS) $(PERLLDOPTS_FOR_LIBS) $(LDFLAGS) + $(RANLIB) $@ + + snmpinforminstall: