[Toybox] Fails to build with CONFIG_SYSLOGD=y (ld: syslogd.c:(.text.logmsg+0x147): undefined reference to `prioritynames')
Rob Landley
rob at landley.net
Fri Oct 9 06:58:44 UTC 2026
On 10/9/26 01:04, Rob Landley wrote:
> when I noticed this email, I was trying to figure out why:
>
> PREFIX="$AIRLOCK" KCONFIG_CONFIG=.singleconfig_airlock CROSS_COMPILE=\
> make ${AIRPEND:-KCONFIG_ALLCONFIG=<(csv2cfg $(be2csv $AIRPEND) y)} \
> clean defconfig toybox install_airlock && # see scripts/install.sh&&
>
> Is turning into:
>
> PREFIX=/home/landley/toybox/kleen/root/build/airlock
> KCONFIG_CONFIG=.singleconfig_airlock CROSS_COMPILE= make diff clean
> defconfig toybox install_airlock
>
> And thus trying to do a single build of "diff", which is wrong. (That
> "diff" SHOULD be "KCONFIG_ALLCONFIG=/dev/fd/63" or similar.) In the
> filesystem build of toybox, it's doing:
>
> PREFIX="$ROOT" KCONFIG_CONFIG="$TOYCFG" make clean \
> ${CONF:-defconfig KCONFIG_ALLCONFIG=<(csv2cfg $(be2csv $PENDING SH
> ROUTE) y)} \
> toybox install || exit 1
>
> Which is working as expected. (Can I not use $($AIRPEND) inside
> ${AIRPEND:-} ? Do I need a temporary variable? No, don't bother
> answering that, rhetorical question, I'll presumably have figured it out
> or bypassed it by then...)
Because the other one was ${X:-default) and I needed ${X:+alternate} here.
And yes toybox's pending/diff.c seems to have been enough to build the
1_35_0 tag of busybox but the --help text didn't work (which was the
problem when I hacked bzip2 it out by hand). 34, 33, 32 same... 31's
defconfig build dies linking with an undefined reference to 'stime' so
bravo there. And 31 dies the same way... Sigh, ok, bisect the fix... And
it's one of those "bad is good, good is bad" bisects that's hard to keep
straight in your head. Grrr... Commit d3539be8f27b, remove stime calls.
Which removes an stime() function fromm libbb/missing_syscalls.c?
Right, checkout 31, patch -p1 that commit... and both hunks failed.
There's that much churn WITHIN the release.
Ahem. Backs slowly away again...
Rob
More information about the Toybox
mailing list