On Tue, Sep 03, 2002 at 07:29:34AM +0200, Martin v. Loewis wrote: > Joel Baker <lucifer@lightbearer.com> writes: > > > That's from the build area... binutils is currently: > > > > binutils 2.13.90.0.4-1 The GNU assembler, ... > > binutils-dev 2.13.90.0.4-1 The GNU binary utilities ... > > binutils-doc 2.13.90.0.4-1 Documentation for the GNU assembler, ... > > binutils-multi 2.13.90.0.4-1 Binary utilities that support multi-arch ... > > > > Compiled from unstable a few days ago, using "gcc version 3.1 20020210 > > (Debian experimental)" > > So this would indeed indicate that you indeed have support for hidden > symbols in the tools; to double check, please do > > readelf -s <builddir>/gcc/crtbeginS.o|grep dso Er. I don't appear to have that. In fact, 'find <builddir> -type f -name "crt*"' comes back with.... nothing whatsoever, at least on the origional build setup. Now I'm very confused... > On Linux, this produces > > 21: 00000000 0 OBJECT GLOBAL HIDDEN 8 __dso_handle > > I'm still confused about your analysis that it is the dynamic linker > that reports not finding the symbol, as you reported the message to > read > > > /tmp/Build/gcc-3.2/gcc-3.2-3.2ds0/build/i386-unknown-netbsdelf1.6./libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `__dso_handle' > > /tmp/Build/gcc-3.2/gcc-3.2-3.2ds0/build/i386-unknown-netbsdelf1.6./libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `__cxa_atexit' > > collect2: ld returned 1 exit status > > which suggests that this is a ld(1) error. That does not give a > consistent picture, either - __dso_handle is in crtbegin, and if you > use binutils 2.13.90, then the linker should have no problems in > finding the symbol. Could it be that you either pick up the wrong > crtbegin, or the wrong ld? Trust me to follow instructions; don't trust me to be right when guessing. I believe the bit above that mentioned ld and collect2, implying that it is, in fact, an error coming out of ld. Of course, since we just established, above, that I appear to be missing crtbeginS.o, or any other useful crt files in the build area, I wonder what the *heck* is going on. See also my other reply. -- *************************************************************************** Joel Baker System Administrator - lightbearer.com lucifer@lightbearer.com http://users.lightbearer.com/lucifer/
Attachment:
pgpZIJlxL6BGZ.pgp
Description: PGP signature