Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 709633

Summary: fails to build without downstream patches
Product: Red Hat Enterprise Linux 6 Reporter: Kamil Dudka <kdudka>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: high    
Version: 6.1CC: ksrot, rvokal
Target Milestone: rcKeywords: EasyFix, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
/* intentionally skipped from errata description */
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 17:12:02 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
proposed fix none

Description Kamil Dudka 2011-06-01 08:57:33 UTC
Version-Release number of selected component (if applicable):
net-snmp-5.5-31.el6


Steps to Reproduce:
1. rpmbuild --define '__patch /bin/true' --rebuild net-snmp-5.5-31.el6.src.rpm

  
Actual results:
DEBUG: /bin/sh ../../libtool  --mode=compile gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib   -DNETSNMP_ENABLE_IPV6 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux -I/usr/include/rpm  -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib64/perl5/CORE   -c -o hardware/sensors/lmsensors_v2.lo hardware/sensors/lmsensors_v2.c
DEBUG: libtool: compile:  gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -DNETSNMP_ENABLE_IPV6 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -c hardware/sensors/lmsensors_v2.c  -fPIC -DPIC -o hardware/sensors/.libs/lmsensors_v2.o
DEBUG: hardware/sensors/lmsensors_v2.c: In function 'netsnmp_sensor_arch_load':
DEBUG: hardware/sensors/lmsensors_v2.c:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
DEBUG: hardware/sensors/lmsensors_v2.c:19: error: 'data' undeclared (first use in this function)
DEBUG: hardware/sensors/lmsensors_v2.c:19: error: (Each undeclared identifier is reported only once
DEBUG: hardware/sensors/lmsensors_v2.c:19: error: for each function it appears in.)
DEBUG: hardware/sensors/lmsensors_v2.c:23: warning: passing argument 1 of 'sensors_get_detected_chips' from incompatible pointer type
DEBUG: /usr/include/sensors/sensors.h:127: note: expected 'const struct sensors_chip_name *' but argument is of type 'int *'
DEBUG: hardware/sensors/lmsensors_v2.c:23: error: too few arguments to function 'sensors_get_detected_chips'
DEBUG: hardware/sensors/lmsensors_v2.c:27: warning: implicit declaration of function 'sensors_get_all_features'
DEBUG: hardware/sensors/lmsensors_v2.c:34: error: 'SENSORS_NO_MAPPING' undeclared (first use in this function)
DEBUG: hardware/sensors/lmsensors_v2.c:35: error: incompatible type for argument 1 of 'sensors_get_label'
DEBUG: /usr/include/sensors/sensors.h:103: note: expected 'const struct sensors_chip_name *' but argument is of type 'sensors_chip_name'
DEBUG: hardware/sensors/lmsensors_v2.c:35: error: too many arguments to function 'sensors_get_label'
DEBUG: hardware/sensors/lmsensors_v2.c:36: warning: implicit declaration of function 'sensors_get_feature'
DEBUG: make[2]: Leaving directory `/builddir/build/BUILD/net-snmp-5.5/agent/mibgroup'
DEBUG: make[2]: *** [hardware/sensors/lmsensors_v2.lo] Error 1
DEBUG: make[1]: *** [subdirs] Error 1
DEBUG: make[1]: Leaving directory `/builddir/build/BUILD/net-snmp-5.5/agent'
DEBUG: make: *** [subdirs] Error 1
DEBUG: error: Bad exit status from /var/tmp/rpm-tmp.k70Goq (%build)
DEBUG: RPM build errors:
DEBUG:     Bad exit status from /var/tmp/rpm-tmp.k70Goq (%build)


Additional info:
The proposed change is required for Coverity to scan defects in downstream
patches separately.

Comment 1 Kamil Dudka 2011-06-01 08:58:36 UTC
Created attachment 502199 [details]
proposed fix

Comment 5 Jan Safranek 2011-07-27 08:21:37 UTC
Any idea how to test the build with just 'rawbuild' patches? Trick with '__patch /bin/true' won't work.

Comment 6 Jan Safranek 2011-07-27 08:50:00 UTC
(In reply to comment #5)
> Any idea how to test the build with just 'rawbuild' patches? Trick with
> '__patch /bin/true' won't work.

http://git.engineering.redhat.com/?p=users/kdudka/coverity-scan.git;a=blob_plain;f=aux/rpmbuild-rawbuild

Comment 8 Jan Safranek 2011-08-11 11:53:41 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
/* intentionally skipped from errata description */

Comment 12 errata-xmlrpc 2011-12-06 17:12:02 UTC
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.

http://rhn.redhat.com/errata/RHBA-2011-1524.html