[Bug 241632] 12-STABLE (r354128) builds an unusable /bin/sh: Undefined symbol "stat at FBSD_1.5"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 1 05:14:17 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241632

            Bug ID: 241632
           Summary: 12-STABLE (r354128) builds an unusable /bin/sh:
                    Undefined symbol "stat at FBSD_1.5"
           Product: Base System
           Version: 12.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: bsdpr at phoe.frmug.org

While installing a freshly built 12-STABLE (svn rev 354128), errors related to
an undefined symbol in /bin/sh began appearing during installworld  after that
new binary got installed:

===> bin/sh (install)
install  -s -o root -g wheel -m 555  -S sh //bin/sh
install  -o root -g wheel -m 444  sh.debug //usr/lib/debug/bin/sh.debug
installing DIRS CONFSDIR
install  -d -m 0755 -o root  -g wheel  //etc
installing DIRS CONFSDIR_dot.profile
install  -d -m 0755 -o root  -g wheel  //root
install  -o root -g wheel -m 444 sh.1.gz  //usr/share/man/man1/
===> bin/sh/tests (install)
ld-elf.so.1: /bin/sh: Undefined symbol "stat at FBSD_1.5"
make[6]: "/etc/make.conf" line 4: warning: "echo
/usr/home/elrond/syswork/FreeBSD-work/12-LOCAL/src/bin/sh/tests | sed
's|/usr/ports/.*|/usr/ports|'" returned non-zero status
installing DIRS testsFILESDIR
install  -d -m 0755 -o root  -g wheel  //usr/tests/bin/sh
install  -o root  -g wheel -m 444  Kyuafile //usr/tests/bin/sh/Kyuafile

It looks I'm not the only one affected as there are some calls for help in the
forums such as
https://forums.freebsd.org/threads/how-to-resolve-ld-elf-so-1-bin-sh-undefined-symbol-stat-fbsd_1-5.72611/

Strangely enough, /bin/sh looks usable after installation:

# make installworld
# csh
root@:/home/elrond/syswork/FreeBSD-work # /bin/sh
# 

I've not yet rebooted and not attempted a mergemaster, I fear that some parts
of the installation got borked. I have a pre-install snapshot that I can
rollback to in order to install another hopefully fixed build.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list