testsuite problems on darwin was: [patch] HAVE_LC_MESSAGES for natSystem.cc

Andreas Tobler toa@pop.agri.ch
Thu Jan 17 10:14:00 GMT 2002



Tom Tromey wrote:

> You need `--main=hello'.

Thanks. (but the javac from doesn't need this, so I was not sure)
> 
> Andreas> /usr/bin/ld: multiple definitions of symbol _read
> Andreas> /usr/lib/libm.dylib(read.o) definition of _read
> Andreas> /Volumes/reserved1/gcctmp/lib/gcc-lib/powerpc-apple-darwin5.2/3.1/../../../libgcjgc.a(os_dep.o)
> Andreas> definition of _read in section (__TEXT,__text)
> Andreas> collect2: ld returned 1 exit status
> 
> Andreas> It seems to me that that the basic doesn't run. I guess apple
> Andreas> specific stuff <sigh>, flat_namespace ???
> 
> I don't know anything about how the Darwin linker might differ from
> traditional Unix linkers.

Hmm, learning here as well.
> 
> What's going on here is that the GC introduces its own version of
> read() which knows to unprotect pages before reading.  Whether this is
> appropriate for Darwin is something you'll have to figure out.

I'm not sure if it is the above thing with namespaces but I had
something similar when I built DDD. Here I had to pass a flag to the
linker which is not part of the mainline gcc. 
I tried to build a gcj that understands this flat too, but I only
succeeded in the gcc.

Maybe I'll find out more.

Thanks,

Andreas



More information about the Java mailing list