sh4 problem: "/lib/libstdc++.so.5: no version information available"
Dan Kegel
dank@kegel.com
Tue Jun 17 19:50:00 GMT 2003
I'm slowly making progress adding regression testing to my
crosstool script. This morning I figured out why my ftpd
wouldn't run in my glibc-2.2.5 chroot environment on sh4:
getpwnam() was failing because libnss_files.so.2 couldn't
be loaded. A little quick surgery on ftpd cured that :-)
and I'm sure I'll figure out the libnss_files.so.2 problem later.
Now a "hello, world" written in C runs fine in the chroot jail,
but one written in C++ fails with errors:
/result/sh4-unknown-linux-gnu/gcc-3.3-glibc-2.2.5/tmp$ ftp 11.3.4.1 (and put sh4-unknown-linux-gnu-hello2)
/result/sh4-unknown-linux-gnu/gcc-3.3-glibc-2.2.5/tmp$ rsh 11.3.4.1 chmod +x sh4-unknown-linux-gnu-hello2
/result/sh4-unknown-linux-gnu/gcc-3.3-glibc-2.2.5/tmp$ rsh 11.3.4.1 ./sh4-unknown-linux-gnu-hello2
./sh4-unknown-linux-gnu-hello2: /lib/libstdc++.so.5: no version information available (required by ./sh4-unknown-linux-gnu-hello2)
./sh4-unknown-linux-gnu-hello2: /lib/libstdc++.so.5: no version information available (required by /lib/libstdc++.so.5)
./sh4-unknown-linux-gnu-hello2: /lib/libstdc++.so.5: no version information available (required by /lib/libstdc++.so.5)
./sh4-unknown-linux-gnu-hello2: relocation error: /lib/libstdc++.so.5: symbol cosh, version GLIBC_2.2 not defined in file libm.so.6 with link time reference
Oddly enough, objdump -p libstdc++.so.5 shows that there is indeed no version info
in libstdc++.so.5 built for sh4-unknown-linux-gnu/gcc-3.3-glibc-2.2.5
or sh4-unknown-linux-gnu/gcc-3.3-glibc-2.3.2, though there is version
info in that file for the other five architectures I built (i686, ppc, sparc, mipsel, cris).
Obviously I'm either building libstdc++.so.5 wrong, or there's
a bug in how it's built on sh4. Has anyone run into this?
I'm using the vanilla build scripts at http://kegel.com/crosstool
and am not using most of the patches provided by the linux-sh project,
since there are quite a few and I'm trying to only apply patches
once I understand what they're for. I did look through all the
patches in http://www.sh-linux.org/rpm-2003/SRPMS/glibc-2.2.5-8.src.rpm
but didn't see anything obviously related to libstdc++.
Suggestions welcome...
Thanks,
Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list