This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: "multiple definition" errors


Paul Reilly wrote:

> I'm getting this towards the end of my libgcj compile and I'm not
> quite sure what make of these error messages:

> /disk2/devel/libgcj/objdir/i686-pc-linux-gnu/libjava/../../../libjava/gcj/array.h(.data+0x0): multiple definition of `java::lang::Object virtual table'
> java/lang/Object.lo:/disk2/devel/libgcj/objdir/i686-pc-linux-gnu/libjava/../../../libjava/java/lang/Object.java:50: first defined here
> /usr/bin/ld: Warning: size of symbol `java::lang::Object virtual table' changed from 12 to 28 in java/lang/natObject.lo
> collect2: ld returned 1 exit status
>
> Anyone seen these before?

It looks like your build may be picking up conflicting versions of "gcj" and "c++". This can happen if you install a new gcc somewhere, but still have an
older one on your PATH somewhere that doesn't have "gcj". Modify your path to make sure that the gcc/c++ frontend commands are running from the same
place.

regards

  [ bryce ]



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