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 1439233 - rebuild of i2c-tools rpm fails with error: 'dev_path' undeclared
Summary: rebuild of i2c-tools rpm fails with error: 'dev_path' undeclared
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: i2c-tools
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Zdenek Dohnal
QA Contact: Rachel Sibley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-05 13:24 UTC by Rachel Sibley
Modified: 2017-08-01 19:53 UTC (History)
2 users (show)

Fixed In Version: i2c-tools-3.1.0-13.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 19:53:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2244 0 normal SHIPPED_LIVE i2c-tools bug fix update 2017-08-01 18:20:32 UTC

Description Rachel Sibley 2017-04-05 13:24:37 UTC
Description of problem:
During the rpmbuild --rebuild step from TPS errata for i2c-tools component, the command failed
with the following errors

Version-Release number of selected component (if applicable):
i2c-tools-3.1.0-12.el7

How reproducible:
Always

Steps to Reproduce:
1. rpmbuild --rebuild --define "dist .el7" --target=x86_64 --rcfile /tmp/tps_rpmrc_phBHsd:/usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc i2c-tools-3.1.0-12.el7.src.rpm

2.
3.

Actual results:
FAILED to rebuild i2c-tools-3.1.0-12.el7.src.rpm -- return code 256
 REBUILD: FAIL for i2c-tools-3.1.0-12.el7.src.rpm
 BUILDLOG: i2c-tools-3.1.0-12.el7.src.rpm-x86_64-rebuild.log contains full details.  Reports from make and rpmbuild, with line numbers:
 46-tools/i2cbusses.c: In function 'try_load_i2c_dev_mod':
 47-tools/i2cbusses.c:203:7: error: 'dev_path' undeclared (first use in this function)
 48-  free(dev_path);
 49-       ^
 50-tools/i2cbusses.c:203:7: note: each undeclared identifier is reported only once for each function it appears in
 51:make: *** [tools/i2cbusses.o] Error 1
 52:error: Bad exit status from /var/tmp/rpm-tmp.JF1z8w (%build)
 53-
 54-
 55-RPM build errors:
 56-    Bad exit status from /var/tmp/rpm-tmp.JF1z8w (%build)
 Last 20 lines of Build Log:
 patching file tools/Module.mk
 + exit 0
 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JF1z8w
 + umask 022
 + cd /home/test/rpmbuild/BUILD
 + cd i2c-tools-3.1.0
 + make 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic'
 cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wundef -Wmissing-prototypes -Iinclude   -DUSE_LIBKMOD -c tools/i2cdetect.c -o tools/i2cdetect.o
 cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wundef -Wmissing-prototypes -Iinclude   -DUSE_LIBKMOD -c tools/i2cbusses.c -o tools/i2cbusses.o
 tools/i2cbusses.c: In function 'try_load_i2c_dev_mod':
 tools/i2cbusses.c:203:7: error: 'dev_path' undeclared (first use in this function)
 free(dev_path);
 ^
 tools/i2cbusses.c:203:7: note: each undeclared identifier is reported only once for each function it appears in
 make: *** [tools/i2cbusses.o] Error 1
 error: Bad exit status from /var/tmp/rpm-tmp.JF1z8w (%build)
 RPM build errors:
 Bad exit status from /var/tmp/rpm-tmp.JF1z8w (%build) 

Expected results:
RPM rebuilds successfully

Additional info:

Comment 5 Rachel Sibley 2017-04-11 15:58:48 UTC
Moving to verified state as the rpmbuild --rebuild step is passing now with the latest rpm i2c-tools-3.1.0-13.el7.src.rpm

Comment 6 errata-xmlrpc 2017-08-01 19:53:50 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.

https://access.redhat.com/errata/RHBA-2017:2244


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