reassign 353346 gcj-4.0 retitle 353346 gcj can't make shared libs on hppa. thanks
Hi, It seems that gcj can't make proper shared libs on hppa, or is doing something else strange. This is tested with gcj-4.0 4.0.2-9 [EMAIL PROTECTED]:~/libtool-1.9+20051221/tests/testsuite.dir/12/test$ cat A1.java public class A1 { }; [EMAIL PROTECTED]:~/libtool-1.9+20051221/tests/testsuite.dir/12/test$ cat foo2.java public class foo2 { public static void main(String[] argv) { } } $ gcj -g -O2 -c A1.java -fPIC -o A1.o $ ar cru liba1.a A1.o $ ranlib liba1.a $ gcj -g -O2 -c foo2.java -o foo2.o $ gcj -shared -Wl,--whole-archive ./liba1.a -Wl,--no-whole-archive -Wl,-soname -Wl,liba1.so.0 -o liba1.so.0.0.0 $ ln -s liba1.so.0.0.0 liba1.so.0 $ gcj -g -O2 --main=foo2 -o main foo2.o ./liba1.so.0 $ LD_LIBRARY_PATH=. ./main Segmentation fault (core dumped) $ LD_LIBRARY_PATH=. gdb ./main core GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "hppa-linux"...Using host libthread_db library "/lib/libthread_db.so.1". Program terminated with signal 11, Segmentation fault. Reading symbols from /home/kroeckx/libtool-1.9+20051221/tests/testsuite.dir/12/test/liba1.so.0...done. Loaded symbols for ./liba1.so.0 Reading symbols from /lib/libgcc_s.so.2...done. Loaded symbols for /lib/libgcc_s.so.2 Reading symbols from /usr/lib/libgcj.so.6...done. Loaded symbols for /usr/lib/libgcj.so.6 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libpthread.so.0...done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld.so.1...done. Loaded symbols for /lib/ld.so.1 #0 0x4fd23f00 in ?? () (gdb) bt #0 0x4fd23f00 in ?? () Cannot find bounds of current function (@0x0), unwinding will fail. Kurt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]