Description of problem: net-snmp src rpm contains a bad patch that breaks building the rpm on systems without systemd. Version-Release number of selected component (if applicable): net-snmp-5.7.3-25.1.fc27.src.rpm (and likely older versions as well) How reproducible: always Steps to Reproduce: 1. try to build srpm on RHEL/CentOS 6 2. 3. Actual results: .libs/snmpd.o: In function `main': /builddir/build/BUILD/net-snmp-5.7.3/agent/snmpd.c:459: undefined reference to `netsnmp_sd_listen_fds' Expected results: no errors Additional info: Fix is pretty easy: --- ../sources/net-snmp-5.7.2-systemd.patch.orig 2018-02-15 17:20:49.271208819 -0500 +++ ../sources/net-snmp-5.7.2-systemd.patch 2018-02-15 17:21:09.691126055 -0500 @@ -82,10 +82,10 @@ #endif #ifndef WIN32 -+#ifndef NETSNMP_NO_SYSYSTEMD ++#ifndef NETSNMP_NO_SYSTEMD + /* check if systemd has sockets for us and don't close them */ + prepared_sockets = netsnmp_sd_listen_fds(0); -+#endif /* NETSNMP_NO_SYSYSTEMD */ ++#endif /* NETSNMP_NO_SYSTEMD */ + /* * close all non-standard file descriptors we may have
net-snmp-5.7.3-26.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b2d1237a54
net-snmp-5.7.3-26.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5a2e230b9d
Hi Robert, thanks for your report. Net-SNMP from Fedora 26 and above has been fixed.
net-snmp-5.7.3-26.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5a2e230b9d
net-snmp-5.7.3-26.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b2d1237a54
net-snmp-5.7.3-26.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
net-snmp-5.7.3-26.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.