Bug 409811 - SIZEOF_LONG is not defined
SIZEOF_LONG is not defined
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: net-snmp (Show other bugs)
4.6
All Linux
low Severity medium
: ---
: ---
Assigned To: Jan Safranek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-04 03:12 EST by Atsushi Nakabayashi
Modified: 2008-02-05 02:44 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-12-04 09:34:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
My proposal patch. (12.50 KB, patch)
2007-12-04 03:12 EST, Atsushi Nakabayashi
no flags Details | Diff

  None (edit)
Description Atsushi Nakabayashi 2007-12-04 03:12:42 EST
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
Comment 1 Atsushi Nakabayashi 2007-12-04 03:12:42 EST
Created attachment 276661 [details]
My proposal patch.
Comment 2 RHEL Product and Program Management 2007-12-04 08:15:00 EST
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.
Comment 3 Jan Safranek 2007-12-04 09:34:07 EST
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.

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