Subject: Re: -current failed to build and I'm stuck
To: None <current-users@netbsd.org>
From: Paul B Dokas <dokas@cs.umn.edu>
List: current-users
Date: 12/02/1998 13:31:40
On Wed, 2 Dec 1998 drochner@zel459.zel.kfa-juelich.de wrote:
>
> dokas@cs.umn.edu said:
> > /usr/libexec/ld.so: Undefined symbol "___sys_nerr14" in as:/usr/lib/
> > libbfd.so.2.0
>
> I just had the same problem, but could recover from
> backup.
> The problem was that libc.so.12.26 wasn't where it belongs,
> so library and headers were inconsistent.
> I didn't find a reason in the code/Makefiles, and I can't
> reproduce it anymore, so it might be due to my almost full
> NFS server filesystem...
>
> I've put fresh libc.so.12.26 and libc.a for ftp to
> zelof1.zel.kfa-juelich.de:/pub/NetBSD
>
> best regards
> Matthias
Thanks for the offer, but the problem was more involved than that.
Apparently, /usr/bin/as was attempting to use an older libc, even
though a more recent version was available:
caligula# ldd /usr/bin/as
/usr/bin/as:
-lbfd.2 => /usr/lib/libbfd.so.2.0 (0x40041000)
-lc.12 => /usr/lib/libc.so.12.33 (0x4008b000)
caligula# ls -la libc.so*
-r--r--r-- 1 bin bin 423664 Apr 5 1998 libc.so.12.20
-r--r--r-- 1 root wheel 424047 May 21 1998 libc.so.12.26
-r--r--r-- 1 root wheel 428415 Jul 21 16:35 libc.so.12.29
-r--r--r-- 1 root wheel 432616 Aug 28 16:35 libc.so.12.30
-r--r--r-- 1 root wheel 432700 Sep 8 18:56 libc.so.12.31
-r--r--r-- 1 root wheel 433174 Sep 28 10:41 libc.so.12.32
-r--r--r-- 1 root wheel 453654 Nov 23 20:00 libc.so.12.33
-r--r--r-- 1 root wheel 453793 Dec 1 15:34 libc.so.12.34
caligula# ls -la libbfd.so*
-r--r--r-- 1 root wheel 256243 May 21 1998 libbfd.so.0.0
-r--r--r-- 1 root wheel 306929 Aug 12 02:51 libbfd.so.0.1
-r--r--r-- 1 root wheel 306929 Aug 28 16:53 libbfd.so.1.0
-r--r--r-- 1 root wheel 319385 Dec 1 16:20 libbfd.so.2.0
Notice that libbfd.so.2.0 was built yesterday, but the libc that /usr/bin/as
is attempting to use was built the last time that I moved to -current.
I have tried moving libc.so.12.34 to libc.so.12.33. It results in a
hung system, requiring a reboot.
And when the machine had come back to life (after lots of fscking),
I find that all is now well:
caligula# ldd /usr/bin/as
/usr/bin/as:
-lbfd.2 => /usr/lib/libbfd.so.2.0 (0x40041000)
-lc.12 => /usr/lib/libc.so.12.34 (0x4008b000)
I have *no* idea why it was behaving in this manner. The best guess
that I have is that /var/run/ld.so.hints was not up to date. I don't
know.
Anyway, looks like I'm back in business! Thanks for the help.
Paul
--
Paul Dokas dokas@cs.umn.edu
======================================================================
Don Juan Matus: "an enigma wrapped in mystery wrapped in a tortilla."