LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-14-2007, 08:41 AM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
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
 
Old 12-14-2007, 12:14 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
What does this say:
Code:
echo -n "Rpath check: "; grep -qi check-rpaths ~/.rpmmacros && echo yes || echo no
 
Old 12-14-2007, 12:17 PM   #3
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
What does this say:
Code:
echo -n "Rpath check: "; grep -qi check-rpaths ~/.rpmmacros && echo yes || echo no
Rpath check: yes
 
Old 12-14-2007, 06:11 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
OK. Locate the line in your ~/.rpmmacros and comment it out.

Last edited by unSpawn; 12-15-2007 at 03:06 AM.
 
Old 12-18-2007, 08:09 AM   #5
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
OK. Locate the line in your ~/.rpmmacros and comment it out.
Thank you very much, the problem is solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
exim4 paniclog, warning mail system may be broken nutbag Debian 3 10-11-2010 12:39 PM
Warning--Icedove 2.0.0.0-3 package broken (+fix) David the H. Debian 1 05-25-2007 09:25 AM
Broken Pipe error with rpmbuild in rh9 tuxfood Red Hat 1 05-21-2005 04:30 PM
Media Check= FAIL - MDSUMs Check out tgrier Linux - Newbie 6 11-26-2004 10:07 PM
Gtk-WARNING **: cannot open display - I think X Is broken slewis1972 Linux - General 1 05-18-2004 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration