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]

jni and static libgcj and friends?


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.


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