From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1610 invoked by alias); 12 Apr 2010 17:08:43 -0000 Received: (qmail 1460 invoked by uid 22791); 12 Apr 2010 17:08:41 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,TW_CX X-Spam-Check-By: sourceware.org Received: from mpls-qmqp-01.inet.qwest.net (HELO mpls-qmqp-01.inet.qwest.net) (63.231.195.112) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Apr 2010 17:08:32 +0000 Received: from [127.0.0.1] (unknown [70.58.238.194]) by mpls-qmqp-01.inet.qwest.net (Postfix) with ESMTP id 3662F1A993F for ; Mon, 12 Apr 2010 17:08:29 +0000 (UTC) Message-ID: <4BC3537A.1040202@rhsdplanning.com> Date: Mon, 12 Apr 2010 17:08:00 -0000 From: Keith User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: java@gcc.gnu.org Subject: undefined symbol __gcj_personality_v0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg00003.txt.bz2 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?