public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/23686] New: path embbeded using -rpath is ignored when handling System.loadLibrary()
@ 2005-09-01 20:39 swagiaal at redhat dot com
  2005-09-01 20:40 ` [Bug libgcj/23686] " swagiaal at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: swagiaal at redhat dot com @ 2005-09-01 20:39 UTC (permalink / raw)
  To: java-prs

path embbeded using -rpath is ignored when handling System.loadLibrary()

the attached test case showes a java program trying to load a dummy library and
failing even though the path to that library was set using -rpath

-- 
           Summary: path embbeded using -rpath is ignored when handling
                    System.loadLibrary()
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: swagiaal at redhat dot com
                CC: fitzsim at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org,java-prs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23686


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libgcj/23686] path embbeded using -rpath is ignored when handling System.loadLibrary()
  2005-09-01 20:39 [Bug libgcj/23686] New: path embbeded using -rpath is ignored when handling System.loadLibrary() swagiaal at redhat dot com
@ 2005-09-01 20:40 ` swagiaal at redhat dot com
  2005-09-01 20:53 ` fitzsim at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: swagiaal at redhat dot com @ 2005-09-01 20:40 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From swagiaal at redhat dot com  2005-09-01 20:40 -------
Created an attachment (id=9642)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9642&action=view)
testcase that produces the bug


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23686


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libgcj/23686] path embbeded using -rpath is ignored when handling System.loadLibrary()
  2005-09-01 20:39 [Bug libgcj/23686] New: path embbeded using -rpath is ignored when handling System.loadLibrary() swagiaal at redhat dot com
  2005-09-01 20:40 ` [Bug libgcj/23686] " swagiaal at redhat dot com
@ 2005-09-01 20:53 ` fitzsim at redhat dot com
  2005-09-01 21:06 ` pinskia at gcc dot gnu dot org
  2005-09-01 21:25 ` fitzsim at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fitzsim at redhat dot com @ 2005-09-01 20:53 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-09-01 20:53 -------
Confirmed.  Run the tests like this:

LD_LIBRARY_PATH=`pwd` ./linked

LD_LIBRARY_PATH=`pwd` ./linkedjava


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23686


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libgcj/23686] path embbeded using -rpath is ignored when handling System.loadLibrary()
  2005-09-01 20:39 [Bug libgcj/23686] New: path embbeded using -rpath is ignored when handling System.loadLibrary() swagiaal at redhat dot com
  2005-09-01 20:40 ` [Bug libgcj/23686] " swagiaal at redhat dot com
  2005-09-01 20:53 ` fitzsim at redhat dot com
@ 2005-09-01 21:06 ` pinskia at gcc dot gnu dot org
  2005-09-01 21:25 ` fitzsim at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-01 21:06 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-01 21:06 -------
I want to say this is not really a bug as -rpath should almost never be used as it cannot be overwritten 
along other things.  There are pages about why you should not be using -rpath.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23686


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libgcj/23686] path embbeded using -rpath is ignored when handling System.loadLibrary()
  2005-09-01 20:39 [Bug libgcj/23686] New: path embbeded using -rpath is ignored when handling System.loadLibrary() swagiaal at redhat dot com
                   ` (2 preceding siblings ...)
  2005-09-01 21:06 ` pinskia at gcc dot gnu dot org
@ 2005-09-01 21:25 ` fitzsim at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fitzsim at redhat dot com @ 2005-09-01 21:25 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-09-01 21:25 -------
In this case we have shared libraries under /opt with the same names as
libraries under /usr/lib, and we want our program to always use the /opt
libraries without users having to set LD_LIBRARY_PATH.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23686


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-01 21:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-01 20:39 [Bug libgcj/23686] New: path embbeded using -rpath is ignored when handling System.loadLibrary() swagiaal at redhat dot com
2005-09-01 20:40 ` [Bug libgcj/23686] " swagiaal at redhat dot com
2005-09-01 20:53 ` fitzsim at redhat dot com
2005-09-01 21:06 ` pinskia at gcc dot gnu dot org
2005-09-01 21:25 ` fitzsim at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).