Hide Forgot
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.
Created attachment 502199 [details] proposed fix
Any idea how to test the build with just 'rawbuild' patches? Trick with '__patch /bin/true' won't work.
(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
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 */
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