The phone's userland is NetBSD's own source built with NetBSD's build
against glibc, and more and more of src/ asks for libc symbols glibc
does not have, so libmxlinux takes them over from the same tree:
db(3) (Berkeley DB 1.85, which glibc dropped), md2/md4/rmd160 and the
*File/*End helpers the hash tools link, glob(3) (renamed __glob30, so
beside glibc's), stringlist, errc/warnc, fmtcheck, shquote, getcap,
strtonum, heapsort/merge/radixsort, base64, stresep, and the
<db.h>/<md2.h>/<ndbm.h>/<stringlist.h> frames that reach over to
src/include.
-mx_cdefs.h: __strong_alias/__weak_alias stay off inside libmxlinux
(-D_MX_LIBMXLINUX). The libc sources it compiles alias their public
names to libc-internal ones in hashhl.c before namespace.h can withdraw
the macro, and those names do not exist outside libc -- every program
linked against the library had undefined _MD2FileChunk. src/tools/compat
builds the same sources without them for the same reason.
-mxlinux.h: the feature set is asked for the way NetBSD's
<sys/featuretest.h> asks for it. A program with -std=c99 alone asks for
no standard, which on NetBSD means _NETBSD_SOURCE (everything);
glibc gives ISO C only, so _DEFAULT_SOURCE and _NETBSD_SOURCE are set
before the first glibc header.
-mobile/conf/mk.conf: the NetBSD subsystems with a NetBSD kernel
underneath are off for a Linux target -- MKAUDIO, MKBLUETOOTH, MKUSB,
MKNFS, MKYP, MKHESIOD, MKSKEY, MKKERBEROS, MKPAM -- and libpthread is
glibc's (LIBDO.pthread=_external), not NetBSD's LWP threads.
-mobile/tools/mxsrc.sh: USE_FILEMON=no on the command line, because
make(1) decides on filemon before bsd.own.mk reads mk.conf and traces
with ktrace(2)/filemon(4), which Linux has neither of.
Measured: make src DIR=lib/libmxlinux -> mxsrc lib/libmxlinux exit=0,
0 errors (mobile/build/logs/mxsrc-libmxlinux-2026-11-12-b.log).