This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with dso_handle
- To: Lee Iverson <leei at ai dot sri dot com>
- Subject: Re: Problems with dso_handle
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Sun, 30 Jul 2000 17:19:32 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <200007301804.LAA05537@Canada.AI.SRI.COM>
On Sun, Jul 30, 2000 at 11:04:07AM -0700, Lee Iverson wrote:
>
> I'm compiling on Linux 2.2.16 with H.J.'s latest binutils (2.10.0.18) and
> am seeing something that has me a bit baffled.
>
> Most C++ programs now show up with the error:
>
> undefined symbol: __dso_handle
>
> at link time.
>
> In particular, 'make check' in the tree causes *all* of the libstdc++ tests
> to fail with errors such as:
>
> /home/leei/IUE/egcs/linux/i586-pc-linux-gnu/libstdc++/testsuite/tcomplex: error
> in loading shared libraries: /home/leei/IUE/egcs/linux/i586-pc-linux-gnu/libstdc
> ++/libstdc++-libc6.1-2.so.3: undefined symbol: __dso_handle
> FAIL: tcomplex.cc execution
>
> Is this something that I've broken in my compile-time environment? It's been
> showing up for about a week now, but I must admit that I haven't been testing
> extensively (at all?) on this platform for some time now so it may have
> happened any time in the past month or so.
>
There was a problem with the ELF visibility support in binutils which
__dso_handle uses. However, 2.10.0.18 should be ok. Are you sure
you are using binutils 2.10.0.18 to build
/home/leei/IUE/egcs/linux/i586-pc-linux-gnu/libstdc++/libstdc++-libc6.1-2.so.3
Please double check. You can add -v to gcc when building the shared
libstdc++. You may be surprised.
H.J.