Bug 709633 - fails to build without downstream patches
Summary: fails to build without downstream patches
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: net-snmp
Version: 6.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Jan Safranek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-01 08:57 UTC by Kamil Dudka
Modified: 2011-12-06 17:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
/* intentionally skipped from errata description */
Clone Of:
Environment:
Last Closed: 2011-12-06 17:12:02 UTC
Target Upstream Version:


Attachments (Terms of Use)
proposed fix (553 bytes, patch)
2011-06-01 08:58 UTC, Kamil Dudka
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1524 0 normal SHIPPED_LIVE net-snmp bug fix update 2011-12-06 01:02:35 UTC

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


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