undefined symbol __gcj_personality_v0

Keith <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
The Windows version compiles but does not do anything when I run it. No 
error messages show up and nothing is logged and no window appears. main 
starts out with

  public static void main(String[] args) throws Exception
  {
    Display display = null;
   
    System.out.println("Starting main");

but I do not see any message. I do see the message under Eclipse and the 
other AOT compiler.

I am at a loss for what to do next so I am creating a linux->Windows 
cross compile for my java/jni program, I am first trying to get a good 
working compile under linux.

When I run the program under Eclipse I get:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
/home/keith/jprojects/pps/build/libunikey.so:
/home/keith/jprojects/pps/build/libunikey.so: undefined symbol:
__gcj_personality_v0
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)

unikey.so is a library compiled with
gcc 4.4.3 (just downloaded and compiled) on linux

Reading specs from /usr/lib/gcc/i486-slackware-linux/4.3.3/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.3.3/configure --prefix=/usr --libdir=/usr/lib
--enable-shared --enable-bootstrap
--enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix
--enable-checking=release --with-system-zlib
--disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp
--with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux
--build=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.3.3 (GCC)

Linux linux1 2.6.30.5 #1 SMP PREEMPT Fri Aug 21 11:41:31 EDT 2009 i686
Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz GenuineIntel GNU/Linux

Compile line is:

gcc -ldl -fPIC -rdynamic
-Wl,--version-script=/usr/local/src/gcc-4.4.3/libjava/libgcj.ver -fPIC
-L/usr/local/lib -I/usr/local/include
-I/usr/local/bin/jdk1.6.0_19/include
-I/usr/local/bin/jdk1.6.0_19/include/linux -I. -c unikey.cpp -o unikey.o

 gcc -ldl -fPIC -rdynamic
-Wl,--version-script=/usr/local/src/gcc-4.4.3/libjava/libgcj.ver -shared
-Wl,-soname,libunikey.so -o libunikey.so unikey.o

Whether -rdynamic and/or -Wl,--version-script is there seems to make no
difference.

I am running the program under Eclipse SDK Version 3.5.2 Build id: 
M20100211-1343 (just downloaded)
and java 1.6.0_19 (just downloaded)

Do I need to recompile something or alter a parameter?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.