Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1181994 - net-snmp package does not compile on Fedora 21
net-snmp package does not compile on Fedora 21
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: net-snmp (Show other bugs)
6.6
Unspecified Unspecified
unspecified Severity low
: rc
: ---
Assigned To: Jan Safranek
Marek Haicman
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-14 04:23 EST by Jan Safranek
Modified: 2015-07-22 03:23 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Fedora uses more strict default compilation options to make itself more secure, namely Net-SNMP is compiled with '-Werror=format-security'. Net-SNMP, as in Red Hat Enterprise Linux 6 does not compile with the option. Consequence: The package cannot be recompiled on Fedora 21. Fix: Patch the package and fix one suspicious 'printf' call. Result: The package can be built on Fedora 21. Note that the suspicious printf call does not affect Net-SNMP security in any way, the compiler just blindly reported an error, while the code was perfectly safe.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-22 03:23:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
trivial patch (706 bytes, patch)
2015-01-14 04:30 EST, Jan Safranek
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1385 normal SHIPPED_LIVE Moderate: net-snmp security and bug fix update 2015-07-20 14:07:39 EDT

  None (edit)
Description Jan Safranek 2015-01-14 04:23:47 EST
Fedora 21 adds "-Werror=format-security" in /usr/lib/rpm/redhat/macros and net-snmp-5.5-50.el6 does not compile there:

SNMP.xs: In function 'XS_SNMP__bulkwalk':
SNMP.xs:4064:11: error: format not a string literal and no format arguments [-Werror=format-security]
           warn(str_buf);
           ^

It would simplify my maintenance work if RHEL6 package compiles on Fedora.
Comment 1 Jan Safranek 2015-01-14 04:30:03 EST
Created attachment 979915 [details]
trivial patch
Comment 7 errata-xmlrpc 2015-07-22 03:23:16 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1385.html

Note You need to log in before you can comment on or make changes to this bug.