This is the mail archive of the java@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]
Other format: [Raw text]

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


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


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