Description of problem: snmplib/asn1.c(net-snmp-5.1.2-11.EL4.11) uses SIZEOF_LONG, but it is not defined. And net-snmp.org(net-snmp-5.1.4 or more) defines SIZEOF_LONG in include/net-snmp/net-snmp-config.h Version-Release number of selected component (if applicable): net-snmp-5.1.2-11.EL4.11
Created attachment 276661 [details] My proposal patch.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
I do not see any consequence of the bug. You are right, SIZEOF_LONG is not defined. But it is used only twice: 1) asn1.c:210 If it is not defined, net-snmp checks integers unnecessarily on 32bit system, burning few cpu cycles. The result is the same as if SIZEOF_LONG would be defined. 2) asn1.c:1330 Again, if it is not defined, net-snmp checks subidentifier on all architectures, which is not effective on 32bit system, but has no influence on the result. Feel free correct me and reopen the bug if I am wrong and you can see some problems in production. Or contact your Red Hat Support at redhat.com/support, which is always better than direct Bugzilla report.