From mboxrd@z Thu Jan 1 00:00:00 1970 From: rfrench99@bigfoot.com To: java-gnats@sourceware.cygnus.com Subject: libgcj/1178: error loading shared library, undefined symbol __dso_handle Date: Wed, 20 Dec 2000 12:21:00 -0000 Message-id: <20000415015509.2192.qmail@sourceware.cygnus.com> X-SW-Source: 2000-q4/msg00958.html List-Id: >Number: 1178 >Category: libgcj >Synopsis: error loading shared library, undefined symbol __dso_handle >Confidential: no >Severity: serious >Priority: medium >Responsible: tromey >State: closed >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Dec 20 12:17:02 PST 2000 >Closed-Date: Fri Apr 21 07:47:21 PDT 2000 >Last-Modified: Fri Apr 21 07:50:00 PDT 2000 >Originator: Robert A, French >Release: snapshot 20000414 >Organization: >Environment: Debian GNU/Linux 'woody' x86 >Description: The following program: public class HelloWorld { public static void main(String [] args) { System.out.println("Hello"); } } Compiled natively with: gcj --main=HelloWorld -o HelloWorld HelloWorld.java Run as: ./HelloWorld Gives the following error immediately: ./HelloWorld: error in loading shared libraries: /usr/local/lib/libzgcj.so.0: undefined symbol: __dso_handle >How-To-Repeat: Happens every time >Fix: >Release-Note: >Audit-Trail: Formerly PR libgcj/201 From: Bryce McKinlay To: rfrench99@bigfoot.com Cc: java-gnats@sourceware.cygnus.com Subject: Re: libgcj/201: error loading shared library, undefined symbol __dso_handle Date: Sun, 16 Apr 2000 13:49:20 +1200 rfrench99@bigfoot.com wrote: > ./HelloWorld: error in loading shared libraries: /usr/local/lib/libzgcj.so.0: undefined symbol: __dso_handle Hi, I have not see this on my system, with latest cvs gcc and libgcj. I'm using Redhat 6.2. What version of glibc does your distribution use? Could you send me the output of the following commands on your system: gcc -v gcj -v ldd ./HelloWorld nm /usr/local/gcc/lib/libzgcj.so.0 | grep dso And also the "configure" commands which you used to build both gcc and libgcj. thanks [ bryce ] From: Bryce McKinlay To: "Robert A . French" , java-gnats@sourceware.cygnus.com Cc: Subject: Re: libgcj/201: error loading shared library, undefined symbol __dso_handle Date: Sun, 16 Apr 2000 15:04:38 +1200 "Robert A . French" wrote: > nm /usr/local/lib/libzgcj.so.0 | grep dso: > 0000c920 d __dso_handle > > Apparently that lower case 'd' is a bad thing, should be upper case. > Don't know how/why it's like that. Right. On my system it is upper case: $ nm /usr/local/gcc/lib/libgcj.so.1 | grep dso 001672a0 D __dso_handle I don't know why its different on your system. Perhaps an obscure compiler in the particular snapshot your using? Or a linker/assember bug/incompatibilty? There was a change to this recently: 2000-04-04 Ulrich Drepper * acconfig.h: Add HAVE_GAS_HIDDEN. * config.in: Regenerated. * configure.in: Add test for .hidden pseudo-op in gas. * configure: Regenerated. * crtstuff.c: Include auto-host.h. Emit additional .hidden pseudo-op for __dso_handle if the assembler knows about it. I'm using binutils binutils-2.9.5.0.22-6, FWIW. regards [ bryce ] State-Changed-From-To: open->closed State-Changed-By: tromey State-Changed-When: Fri Apr 21 07:47:21 2000 State-Changed-Why: I believe this must be a compiler or other toolchain problem outside our control. Could you submit a gcc bug report? Or search the gcc mailing lists for something similar? I vaguely recall seeing a bug report like this. I'm closing this PR since there is basically nothing we can do about it. From: tromey@cygnus.com To: java-gnats@sourceware.cygnus.com, rfrench99@bigfoot.com, tromey@cygnus.com Cc: Subject: Re: libgcj/201 Date: 21 Apr 2000 14:47:21 -0000 Synopsis: error loading shared library, undefined symbol __dso_handle State-Changed-From-To: open->closed State-Changed-By: tromey State-Changed-When: Fri Apr 21 07:47:21 2000 State-Changed-Why: I believe this must be a compiler or other toolchain problem outside our control. Could you submit a gcc bug report? Or search the gcc mailing lists for something similar? I vaguely recall seeing a bug report like this. I'm closing this PR since there is basically nothing we can do about it. http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=201&database=java >Unformatted: