Bug 524263

Summary: Cannot compile with net-snmp-5.5
Product: [Fedora] Fedora Reporter: Jan Safranek <jsafrane>
Component: openhpi-subagentAssignee: Dan HorĂ¡k <dan>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-26 10:24:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
compilation log none

Description Jan Safranek 2009-09-18 15:14:30 UTC
Created attachment 361681 [details]
compilation log

Description of problem:
I'm preparing net-snmp-5.5 release for rawhide and I can't compile  openhpi-subagent-2.3.4-7 with it.

New net-snmp defines DEBUGMSGTL macro in a way, which makes the compiler to check printf-like syntax in its arguments. E.g. following code produces warning now, because char* is expected as second argument:

int i;
DEBUGMSGTL(("hello %s", i));


Unfortunately, openhpi-subagent is full of such warnings now, see attached compilation log. Since it's compiled with -Werror, compilation fails (the build log is without -Werror to get full list of problems). You can either fix the warnings or relax the -Werror switch.

NOTE: net-snmp-5.5 has not been checked into rawhide yet. Currently the upstream release is scheduled to next Monday, I'll poke you when the time comes and we can coordinate our effort.

Comment 1 Jan Safranek 2009-10-22 13:27:07 UTC
net-snmp-5.5 is in dist-f13 (soon-to-be-rawhide) now, could you please fix it?