This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with dso_handle


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]