The upgrade of my i386 server to netbsd-10 (daily) seemed to go
smoothly, but when I checked the sysbuild log from last night:

        ===> Bootstrapping nbmake
        checking for sh... /bin/sh
        checking for gcc... cc
        checking for C compiler default output... configure: error: C compiler 
cannot create executables

        ERROR: Configure of nbmake failed, see /tmp/nbbuild493-config.log for 
details

Sure enough the config.log contains:

        configure:1308: cc -O   conftest.c  >&5
        ld: Shared object "libgnuctf.so.0" not found

And ldd concurs:

        i386 $ ldd /usr/bin/ld
        /usr/bin/ld:
            -lgnuctf.0 => not found
            -lbfd.17 => /usr/lib/libbfd.so.17
            -lz.1 => /usr/lib/libz.so.1
            -lc.12 => /usr/lib/libc.so.12
            -lgcc_s.1 => /usr/lib/libgcc_s.so.1
            -lintl.1 => /usr/lib/libintl.so.1

This is one of the reasons why I like static-linking everything, always.


My stock NetBSD-10.0 release system has the missing file:

        nb10 $ ldd /usr/bin/ld
        /usr/bin/ld:
                -lgnuctf.0 => /usr/lib/libgnuctf.so.0
                -lc.12 => /usr/lib/libc.so.12
                -lbfd.17 => /usr/lib/libbfd.so.17
                -lz.1 => /usr/lib/libz.so.1
                -lintl.1 => /usr/lib/libintl.so.1


So, I did this upgrade with sysupgrade, and as a result I still have the
sets files in the cache, and here we go in the cached comp.tgz I find:

i386 # pax -vzf /usr/pkg/var/cache/sysupgrade/comp.tgz | fgrep libgnuctf
lrwxr-xr-x  1 root     wheel          0 Aug  8 00:34 ./usr/lib/libgnuctf.so.0 
-> libgnuctf.so.0.0
-r--r--r--  1 root     wheel     121196 Aug  8 00:34 ./usr/lib/libgnuctf.so.0.0


So, it should have been installed how the heck did it get removed
during/after the upgrade?  Something to do with trying to use sysupgrade
to go all the way from 9.4 to 10-stable in one hop?

I don't find it listed in /var/db/obsolete/* so in theory postinstall
didn't remove it, right?

Ah, well, I just ran "sysupgrade auto", using the existing cache, and
libgnuctf.so.0 is back.

Now I'll wait until there's a new daily then I'll run "sysupgrade clean;
sysupgrade auto" again.

--
                                        Greg A. Woods <gwo...@acm.org>

Kelowna, BC     +1 250 762-7675           RoboHack <wo...@robohack.ca>
Planix, Inc. <wo...@planix.com>     Avoncote Farms <wo...@avoncote.ca>

Attachment: pgpiPwmec3i98.pgp
Description: OpenPGP Digital Signature

Reply via email to