public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/1178: error loading shared library, undefined symbol __dso_handle
@ 2000-12-20 12:21 rfrench99
  0 siblings, 0 replies; only message in thread
From: rfrench99 @ 2000-12-20 12:21 UTC (permalink / raw)
  To: java-gnats

>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 <bryce@albatross.co.nz>
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 <bryce@albatross.co.nz>
To: "Robert A . French" <rfrench99@bigfoot.com>,
        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  <drepper@cygnus.com>
 
         * 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:



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-20 12:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:21 libgcj/1178: error loading shared library, undefined symbol __dso_handle rfrench99

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).