This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Unreviewed libjava testsuite patch for 3.0.1


On Jul 18, 2001, Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> wrote:

> Tom Tromey writes:
>> As I understand it the problem is that gcj automatically links against
>> certain libraries, and then the test suite links against them as well.
>> We could modify the test suite not to do this, but then we might run
>> into problems when running the tests uninstalled.

This shouldn't be a problem.  I don't understand why Solaris 8's
linker keeps trying to outsmart us.  There's nothing wrong with
linking a library in multiple times; duplicates should simply be
ignored.

> I don't think running the tests uninstalled is the problem (I'm doing this
> all the time, not having any installed version of GCC 3.0 in $prefix), but
> guaranteeing that only the copy of the libraries just built is used during
> the testsuite run, not an already installed version.  This is certainly no
> problem on Solaris, which always respects LD_LIBRARY_PATH, but likely is on
> platforms where the runtime linker ignores LD_LIBRARY_PATH if it finds the
> desired libraries in the RPATH encoded into the binary.  But I've never
> really tried this, and it may well be not an issue at all (I've just
> checked on IRIX 6.5, which is such a platform and the RPATH isn't encoded
> neiter into the binaries built during the testsuite run nor into the
> uninstalled shared libgcj.so etc.).  So it's certainly best to get a
> comment from a libtool developer.

I wonder if listing the libraries always as -lfoo, instead of
providing their full pathnames, would help.  Rainer, could you test
whether changing the link command like this would work?  I may find a
way to get libtool to not use the full pathnames on Solaris 8, to
placate its linker.  Perhaps this would also get us a fix for the
problem that caused libjava to be disabled on Solaris 8, namely, that
the linker would complain when linking with the uninstalled libraries
when installed libraries with the same SONAMEs already existed?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]