WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild' to fail
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild' to fail
I use FC6 linux.
Code:
$ make rpm
...
rpmbuild -ba ./snmp.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.89864
+ umask 022
+ cd /tmp/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /tmp/BUILD
+ rm -rf snmp-2.3.0
+ /bin/gzip -dc /tmp/SOURCES/snmp-2.3.0.tar.gz
+ tar -xvvf -
-r-xr--r-- powah/powah 1 2007-12-13 17:27:24 ./snmp-2.3.0/csnmpd.conf
drwxr-xr-x Creating directory: ./snmp-2.3.0
lrwxrwxrwx powah/powah 0 2007-12-13 17:27:24 ./snmp-2.3.0/libnetsnmpagent.so.15 -> libnetsnmpagent.so.15.1.0
-rwxr-xr-x powah/powah 558807 2007-12-13 17:27:24 ./snmp-2.3.0/libnetsnmpagent.so.15.1.0
lrwxrwxrwx powah/powah 0 2007-12-13 17:27:24 ./snmp-2.3.0/libnetsnmphelpers.so.15 -> libnetsnmphelpers.so.15.1.0
-rwxr-xr-x powah/powah 443382 2007-12-13 17:27:24 ./snmp-2.3.0/libnetsnmphelpers.so.15.1.0
lrwxrwxrwx powah/powah 0 2007-12-13 17:27:24 ./snmp-2.3.0/libnetsnmpmibs.so.15 -> libnetsnmpmibs.so.15.1.0
-rwxr-xr-x powah/powah 2654334 2007-12-13 17:27:24 ./snmp-2.3.0/libnetsnmpmibs.so.15.1.0
lrwxrwxrwx powah/powah 0 2007-12-13 17:27:24 ./snmp-2.3.0/libnetsnmp.so.15 -> libnetsnmp.so.15.1.0
-rwxr-xr-x powah/powah 1323285 2007-12-13 17:27:24 ./snmp-2.3.0/libnetsnmp.so.15.1.0
-r-xr--r-- powah/powah 251 2007-12-13 17:27:24 ./snmp-2.3.0/lsnmpd.conf
-r-xr--r-- powah/powah 1 2007-12-13 17:27:24 ./snmp-2.3.0/RELEASE
-rwxr-xr-x powah/powah 50071 2007-12-13 17:27:24 ./snmp-2.3.0/snmpd
-r-xr--r-- powah/powah 1199 2007-12-13 17:27:24 ./snmp-2.3.0/snmpd.init
-rwxr-xr-x powah/powah 22573 2007-12-13 17:27:24 ./snmp-2.3.0/snmptrap
-r-xr--r-- powah/powah 6 2007-12-13 17:27:24 ./snmp-2.3.0/VERSION
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd snmp-2.3.0
...
executing(%install): /bin/sh -e /var/tmp/rpm-tmp.89864
+ umask 022
+ cd /tmp/BUILD
+ cd snmp-2.3.0
...
+ install -p /tmp/BUILD/snmp-2.3.0/snmptrap /tmp//usr/local/bin/snmptrap
+ install -p /tmp/BUILD/snmp-2.3.0/snmpd /tmp//usr/local/sbin/snmpd
+ install -p /tmp/BUILD/snmp-2.3.0/libnetsnmp.so.15 /tmp//usr/local/lib/libnetsnmp.so.15
+ install -p /tmp/BUILD/snmp-2.3.0/libnetsnmpagent.so.15 /tmp//usr/local/lib/libnetsnmpagent.so.15
+ install -p /tmp/BUILD/snmp-2.3.0/libnetsnmphelpers.so.15 /tmp//usr/local/lib/libnetsnmphelpers.so.15
+ install -p /tmp/BUILD/snmp-2.3.0/libnetsnmpmibs.so.15 /tmp//usr/local/lib/libnetsnmpmibs.so.15
+ install -p /tmp/BUILD/snmp-2.3.0/csnmpd.conf /tmp//usr/local/share/snmp/snmpd.conf
+ install -p /tmp/BUILD/snmp-2.3.0/lsnmpd.conf /tmp/var/net-snmp/snmpd.conf
+ install -p /tmp/BUILD/snmp-2.3.0/snmpd.init /tmp/etc/init.d/snmpd
+ /usr/lib/rpm/find-debuginfo.sh /tmp/BUILD/snmp-2.3.0
0 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 0002: file '/libnetsnmphelpers.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/libnetsnmphelpers.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/usr/local/lib/libnetsnmpagent.so.15' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/usr/local/lib/libnetsnmphelpers.so.15' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/usr/local/lib/libnetsnmphelpers.so.15' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/usr/local/lib/libnetsnmpmibs.so.15' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/usr/local/lib/libnetsnmpmibs.so.15' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/usr/local/lib/libnetsnmpmibs.so.15' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/libnetsnmpmibs.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/libnetsnmpmibs.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/libnetsnmpmibs.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/libnetsnmpagent.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/BUILD/snmp-2.3.0/libnetsnmphelpers.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/BUILD/snmp-2.3.0/libnetsnmphelpers.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/BUILD/snmp-2.3.0/libnetsnmpmibs.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/BUILD/snmp-2.3.0/libnetsnmpmibs.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/BUILD/snmp-2.3.0/libnetsnmpmibs.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/helpers/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/agent/.libs:/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
ERROR 0002: file '/BUILD/snmp-2.3.0/libnetsnmpagent.so.15.1.0' contains an invalid rpath '/home/powah/snmpdev/snmp/net-snmp
5.4.1/snmplib/.libs' in [/home/powah/snmpdev/snmp/net-snmp-5.4.1/snmplib/.libs]
error: Bad exit status from /var/tmp/rpm-tmp.89864 (%install)
Last edited by unSpawn; 12-14-2007 at 12:13 PM.
Reason: Added BB code tags for improved readability
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.