This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: trouble building libgcj on FreeBSD 2.2.7
- To: seth@thehouse.org
- Subject: Re: trouble building libgcj on FreeBSD 2.2.7
- From: Andrew Haley <aph@pasanda.cygnus.co.uk>
- Date: 19 May 1999 13:04:01 -0000
- CC: java-discuss@sourceware.cygnus.com
> 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.