This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: darwin & libgcj ?
Andrew Haley <aph@redhat.com> writes:
> Andreas Tobler writes:
> > Andrew Haley wrote:
> > > Andreas Tobler writes:
> > > > Can we enable libgcj on powerpc-darwin by default?
> > > > > It builds with no problems out of the box with --enable-libgcj on both
> > > > 3.3 and trunk.
> > > > > Any objections?
> > >
> > > Testsuite results would be nice. I don't want it built if it doesn't
> > > work.
> >
> > Well, I agree here. I build it since a longer time. But unfortunately
> > the results look pretty bad due to a multiple definition of read. Expect
> > gets confused and dropps the test:
>
> Is this some weirdness in the darwin implementation of DSOs? We
> redefine all sorts of things in libgcj, not just that one.
It's a warning, that can be switched off with the -multiply_defined
(defaults to "warning") and -multiply_defined_unused (defaults to
"suppress") flags. Probably the other redefinitions are never used by
that test program so the message doesn't appear.
This probably isn't doing what the code hopes. The read() defined in
another shared library or the application won't be called by system
libraries, and I'm not sure that Darwin even makes any promises about
the ordering of shared libraries, so it's possible that the read()
doesn't even get called by applications.
--
- Geoffrey Keating <geoffk@geoffk.org>