[collectd] Building RPM on AWS - RPATH failures

Dan Scott danieljamesscott at gmail.com
Mon Jan 20 18:31:37 CET 2014


Hi,

I'm trying to build the RPMs of the latest collectd (5.4.0) for AWS Linux.

I'm basing my .spec file on the existing AWS spec file (5.0).

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.

Thanks,

Dan Scott

extracting debug info from
/home/ec2-user/rpmbuild/BUILDROOT/collectd-5.4.0-1.19.amzn1.x86_64/usr/lib64/collectd/exec.so
extracting debug info from
/home/ec2-user/rpmbuild/BUILDROOT/collectd-5.4.0-1.19.amzn1.x86_64/usr/lib64/collectd/csv.so
extracting debug info from
/home/ec2-user/rpmbuild/BUILDROOT/collectd-5.4.0-1.19.amzn1.x86_64/usr/lib64/collectd/powerdns.so
extracting debug info from
/home/ec2-user/rpmbuild/BUILDROOT/collectd-5.4.0-1.19.amzn1.x86_64/usr/lib64/collectd/target_set.so
/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 98 CRC32s did match.
symlinked /usr/lib/debug/usr/lib64/libcollectdclient.so.1.0.0.debug to
/usr/lib/debug/usr/lib64/libcollectdclient.so.debug
symlinked /usr/lib/debug/usr/lib64/libcollectdclient.so.1.0.0.debug to
/usr/lib/debug/usr/lib64/libcollectdclient.so.1.debug
cpio: collectd-5.4.0/libltdl/.libs/libltdlcS.c: Cannot stat: No such file
or directory
cpio: collectd-5.4.0/src/.libs/collectdS.c: Cannot stat: No such file or
directory
4764 blocks
+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
*******************************************************************************
*
* WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild'
*          to fail. To ignore these errors, you can set the '$QA_RPATHS'
*          environment variable which is a bitmask allowing the values
*          below. The current value of QA_RPATHS is 0x0000.
*
*    0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor
*               issue but are introducing redundant searchpaths without
*               providing a benefit. They can also cause errors in multilib
*               environments.
*    0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute
*               nor relative filenames and can therefore be a SECURITY risk
*    0x0004 ... insecure RPATHs; these are relative RPATHs which are a
*               SECURITY risk
*    0x0008 ... the special '$ORIGIN' RPATHs are appearing after other
*               RPATHs; this is just a minor issue but usually unwanted
*    0x0010 ... the RPATH is empty; there is no reason for such RPATHs
*               and they cause unneeded work while loading libraries
*    0x0020 ... an RPATH references '..' of an absolute path; this will
break
*               the functionality when the path before '..' is a symlink
*
*
* Examples:
* - to ignore standard and empty RPATHs, execute 'rpmbuild' like
*   $ QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm
* - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths
like
*   $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths
*
*******************************************************************************
ERROR   0001: file '/usr/sbin/collectd' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/bin/collectdctl' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/bin/collectd-tg' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/bin/collectd-nagios' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/lib64/collectd/interface.so' contains a standard
rpath '/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/lib64/collectd/disk.so' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/lib64/collectd/users.so' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/lib64/collectd/load.so' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/lib64/collectd/cpu.so' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/lib64/collectd/swap.so' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/lib64/collectd/memory.so' contains a standard
rpath '/usr/lib64' in [/usr/lib64]
error: Bad exit status from /var/tmp/rpm-tmp.ilXjHo (%install)


RPM build errors:
    bogus date in %changelog: Sun Oct 22 2008 Alan Pevec <apevec at redhat.com>
4.5.1-1
    bogus date in %changelog: Wed Jun 12 2008 Alan Pevec <apevec at redhat.com>
4.4.1-2
    Bad exit status from /var/tmp/rpm-tmp.ilXjHo (%install)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20140120/e7f69a56/attachment.html>


More information about the collectd mailing list