This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
jni and static libgcj and friends?
- From: Martin Kahlert <martin dot kahlert at infineon dot com>
- To: java at gcc dot gnu dot org
- Date: Fri, 22 Feb 2002 17:05:10 +0100
- Subject: jni and static libgcj and friends?
- Reply-to: martin dot kahlert at infineon dot com
Hi!
I tried to build a Solaris 2.7 gcj with static libgcj,....
gcc -v:
Reading specs from
/data/titan_1/kahlert/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.7/3.1/specs
Configured with: ../gcc-20020218/configure
--prefix=/data/titan_1/kahlert/gcc-3.1 --enable-languages=c++,f77,java
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-threads
--enable-shared=libstdc++
Thread model: single
gcc version 3.1 20020218 (experimental)
This works for hello world progs but with my large JNI application
i get exactly 36337 error lines - all of them like these examples:
<unknown> 0xe4 \
/data/titan_1/kahlert/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.7/3.1/../../../libgcj.a(e_asin.o)
...
<unknown> 0xe2c \
/data/titan_1/kahlert/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.7/3.1/../../../libgcj.a(prims.o)
The linker finally dies with
ld: fatal: relocations remain against allocatable but non-writable sections
Everything works fine with libgcj.so and friends, so what's going on here?
Thanks for any hint,
Martin.
PS: On Linux a static libgcj seems to work fine.
--
The early bird catches the worm. If you want something else for
breakfast, get up later.