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

Stan Shebs shebs@apple.com
Sun Jan 20 22:51:00 GMT 2002


Andreas Tobler wrote:
>> Then I do on the command line:
> [titanium:powerpc-apple-darwin5.2/libjava/testsuite] andreast%
> /Volumes/xufs/gccsrc/objdir/gcc/gcj -o hello hello.java
>> Is this correct?
> The output below:
>> /usr/bin/ld: multiple definitions of symbol _read
> /usr/lib/libm.dylib(read.o) definition of _read
> /Volumes/reserved1/gcctmp/lib/gcc-lib/powerpc-apple-darwin5.2/3.1/../../../libgcjgc.a(os_dep.o)
> definition of _read in section (__TEXT,__text)
> collect2: ld returned 1 exit status

In general the Darwin ld is going to object to multiple definitions
of the same symbol layered on top of each other. This is a Mac-ism
brought over by popular insistence I'm told. Usually I see it
manifest as a warning rather than an error though...
In any case, you'll have to get rid of that definition of read()
in os_dep.o. (Note that libm.dylib is a symlink to libSystem.dylib,
which is Darwin equivalent of libc).
Stan


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /