Unreviewed libjava testsuite patch for 3.0.1

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Fri Jul 27 06:01:00 GMT 2001


Alexandre Oliva writes:

> This shouldn't be a problem.  I don't understand why Solaris 8's

It's not just the S8 linker, I get the same warnings on Solaris 2.5.1.

> linker keeps trying to outsmart us.  There's nothing wrong with
> linking a library in multiple times; duplicates should simply be
> ignored.

Indeed, but it's certainly superfluous (and some linkers even included two
NEEDED tags for the same library ;-).  Having the warning is not a problem
in itself, either (compare this to the IRIX ld, which warns about libraries
not used to resolve any symbol, among many other things), but it's annoying
that there's no way to disable the warning (like IRIX ld's -woff <num>).
On the other hand, dejagnu has been taught to ignore certain IRIX ld
warnings, we could ignore the Solaris ld ones there, too.  But there's
certainly a problem with requiring users to use either unreleased versions
or patches to the basic dejagnu framework, so if we can avoid the issue
without this, it's certainly preferable.

> 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

Yep, it does:

% cc -o hello hello.c -lc
% cc -o hello hello.c /usr/lib/libc.so.1
ld: warning: file /usr/lib/libc.so: linked to /usr/lib/libc.so.1: attempted multiple inclusion of file

> 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?

Might be.  I haven't ever installed a version of GCC 3.0* yet, so I haven't
tried this.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE



More information about the Java-patches mailing list