Bug 20492

Summary: Re: ld error messages refers to undocumented option --rpath
Product: Base System Reporter: Nick Clifton <nickc>
Component: gnuAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: FreeBSD-gnats-submit
Priority: Normal    
Version: 1.0-RELEASE   
Hardware: Any   
OS: Any   

Description Nick Clifton 2000-08-09 02:00:00 UTC
 Hi Peter,
 
 : 	When linking against a shared library that references another
 : 	shared library, if the implicitly referenced library cannot
 : 	be located, ld will report an error like:
 : /usr/libexec/elf/ld: warning: libfoo.so, needed by ./libbar.so, not found (try using --rpath)
 : 
 : 	There is no option `--rpath' documented in either ld.1 or ld.texinfo
 : 	and the message should refer to `-rpath' and/or `-rpath-link'.
 : 
 : 	(Note that ld parses `--rpath' the same as `-rpath', along with
 : 	other long options.  I'm not sure whether this is a bug or a feature).
 
 It is a feature.
 
 : Index: elf32.em
 : ===================================================================
 : RCS file: /home/CVSROOT/src/contrib/binutils/ld/emultempl/elf32.em,v
 : retrieving revision 1.3
 : diff -u -r1.3 elf32.em
 : --- elf32.em	2000/05/13 17:51:22	1.3
 : +++ elf32.em	2000/08/03 20:52:35
 : @@ -451,7 +451,7 @@
 :        if (force < 2)
 :  	continue;
 :  
 : -      einfo ("%P: warning: %s, needed by %B, not found (try using --rpath)\n",
 : +      einfo ("%P: warning: %s, needed by %B, not found (try using -rpath or -rpath-link)\n",
 :  	     l->name, l->by);
 :      }
 :  }
 
 Approved and applied.
 
 Cheers
 	Nick
Comment 1 Peter Wemm freebsd_committer freebsd_triage 2000-09-25 20:03:17 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Orphaned PR
Comment 2 Johan Karlsson freebsd_committer freebsd_triage 2000-10-11 20:07:07 UTC
State Changed
From-To: open->closed

This was supposed to be a follow up to PR 20387, 
which now cross references this PR and we can closed this one.