trouble building libgcj on FreeBSD 2.2.7

Andrew Haley aph@pasanda.cygnus.co.uk
Wed May 19 06:04:00 GMT 1999


> Date: Tue, 18 May 1999 17:33:59 -0700 (PDT)
> From: Seth Golub <seth@thehouse.org>
> 
> Andrew Haley <aph@pasanda.cygnus.co.uk> writes:
> 
> >> ../libgcj/configure --host=i386-unknown-freebsd2.2.7 --prefix=/usr/home/pizzazon/egcs --enable-java-gc=boehm --enable-threads=posix --enable-fast-character --norecursion 
> 
> > To start with, configure with --disable-threads and make sure that
> > everything works.
> 
> Unfortunately, no.  Got any words of wisdom?
> 
> 
> ld -Bshareable -o .libs/libgcj.so.0.0  prims.lo jni.lo exception.lo gnu/gcj/convert/BytesToUnicode.lo  [ .. tons of files .. ]  java/lang/e_sqrt.lo java/lang/s_scalbn.lo java/lang/sf_rint.lo java/lang/k_cos.lo java/lang/s_sin.lo boehm.lo no-threads.lo   /usr/lib/c++rt0.o
> ../../../libgcj/libjava/include/cni.h:110: Definition of symbol `JvSynchronize::~JvSynchronize(void)' (multiply defined)
> ../../../libgcj/libjava/include/cni.h:110: Definition of symbol `JvSynchronize::~JvSynchronize(void)' (multiply defined)

I don't know about actual wisdom as such, but this looks to me as
though the destructor for JvSynchronize is not being inlined.  I do
not know why the compiler should fail to inline this.  I presume that
you are using a recent gcj snapshot?

Alternatively, this might be a linker problem.  What version of ld are
you using?

Andrew.


More information about the Java mailing list