<div dir="ltr">Hi,<div><br></div><div>I'm trying to build the RPMs of the latest collectd (5.4.0) for AWS Linux.</div><div><br></div><div>I'm basing my .spec file on the existing AWS spec file (5.0).</div><div><br>
</div><div>The compile and link is running fine, but I'm getting a few failures for RPATH (below). Anyone have any ideas? I've tried using the disable-rpath option for the configure, but I still receive the same error.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Dan Scott</div><div><br></div><div><div>extracting debug info from /home/ec2-user/rpmbuild/BUILDROOT/collectd-5.4.0-1.19.amzn1.x86_64/usr/lib64/collectd/exec.so</div><div>
extracting debug info from /home/ec2-user/rpmbuild/BUILDROOT/collectd-5.4.0-1.19.amzn1.x86_64/usr/lib64/collectd/csv.so</div><div>extracting debug info from /home/ec2-user/rpmbuild/BUILDROOT/collectd-5.4.0-1.19.amzn1.x86_64/usr/lib64/collectd/powerdns.so</div>
<div>extracting debug info from /home/ec2-user/rpmbuild/BUILDROOT/collectd-5.4.0-1.19.amzn1.x86_64/usr/lib64/collectd/target_set.so</div><div>/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 98 CRC32s did match.</div><div>
symlinked /usr/lib/debug/usr/lib64/libcollectdclient.so.1.0.0.debug to /usr/lib/debug/usr/lib64/libcollectdclient.so.debug</div>
<div>symlinked /usr/lib/debug/usr/lib64/libcollectdclient.so.1.0.0.debug to /usr/lib/debug/usr/lib64/libcollectdclient.so.1.debug</div><div>cpio: collectd-5.4.0/libltdl/.libs/libltdlcS.c: Cannot stat: No such file or directory</div>
<div>cpio: collectd-5.4.0/src/.libs/collectdS.c: Cannot stat: No such file or directory</div><div>4764 blocks</div><div>+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot</div><div>*******************************************************************************</div>
<div>*</div><div>* WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild'</div><div>* to fail. To ignore these errors, you can set the '$QA_RPATHS'</div><div>* environment variable which is a bitmask allowing the values</div>
<div>* below. The current value of QA_RPATHS is 0x0000.</div><div>*</div><div>* 0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor</div><div>* issue but are introducing redundant searchpaths without</div>
<div>* providing a benefit. They can also cause errors in multilib</div><div>* environments.</div><div>* 0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute</div><div>* nor relative filenames and can therefore be a SECURITY risk</div>
<div>* 0x0004 ... insecure RPATHs; these are relative RPATHs which are a</div><div>* SECURITY risk</div><div>* 0x0008 ... the special '$ORIGIN' RPATHs are appearing after other</div><div>* RPATHs; this is just a minor issue but usually unwanted</div>
<div>* 0x0010 ... the RPATH is empty; there is no reason for such RPATHs</div><div>* and they cause unneeded work while loading libraries</div><div>* 0x0020 ... an RPATH references '..' of an absolute path; this will break</div>
<div>* the functionality when the path before '..' is a symlink</div><div>*</div><div>*</div><div>* Examples:</div><div>* - to ignore standard and empty RPATHs, execute 'rpmbuild' like</div>
<div>
* $ QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm</div><div>* - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like</div><div>* $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths</div>
<div>*</div><div>*******************************************************************************</div><div>ERROR 0001: file '/usr/sbin/collectd' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div>
<div>ERROR 0001: file '/usr/bin/collectdctl' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div><div>ERROR 0001: file '/usr/bin/collectd-tg' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div>
<div>ERROR 0001: file '/usr/bin/collectd-nagios' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div><div>ERROR 0001: file '/usr/lib64/collectd/interface.so' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div>
<div>ERROR 0001: file '/usr/lib64/collectd/disk.so' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div><div>ERROR 0001: file '/usr/lib64/collectd/users.so' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div>
<div>ERROR 0001: file '/usr/lib64/collectd/load.so' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div><div>ERROR 0001: file '/usr/lib64/collectd/cpu.so' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div>
<div>ERROR 0001: file '/usr/lib64/collectd/swap.so' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div><div>ERROR 0001: file '/usr/lib64/collectd/memory.so' contains a standard rpath '/usr/lib64' in [/usr/lib64]</div>
<div>error: Bad exit status from /var/tmp/rpm-tmp.ilXjHo (%install)</div><div><br></div><div><br></div><div>RPM build errors:</div><div> bogus date in %changelog: Sun Oct 22 2008 Alan Pevec <<a href="mailto:apevec@redhat.com">apevec@redhat.com</a>> 4.5.1-1</div>
<div> bogus date in %changelog: Wed Jun 12 2008 Alan Pevec <<a href="mailto:apevec@redhat.com">apevec@redhat.com</a>> 4.4.1-2</div><div> Bad exit status from /var/tmp/rpm-tmp.ilXjHo (%install)</div></div></div>