Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Nov 2025 22:58:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        testing@FreeBSD.org
Subject:   [Bug 290883] in lib/libc/tests/rpc saw ld: error: undefined reference: yp_get_default_domain@FBSD_1.0 also yp_master@FBSD_1.0
Message-ID:  <bug-290883-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help

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

            Bug ID: 290883
           Summary: in lib/libc/tests/rpc saw ld: error: undefined
                    reference: yp_get_default_domain@FBSD_1.0 also
                    yp_master@FBSD_1.0
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: tests
          Assignee: testing@FreeBSD.org
          Reporter: dclarke@blastwave.org

During a buildworld with this machine : 

callisto# uname -apKU 
FreeBSD callisto 16.0-CURRENT FreeBSD 16.0-CURRENT main-n281180-79e57ea662d9
GENERIC amd64 amd64 1600001 1600001

callisto# /usr/local/bin/git --no-pager log -n 8 --pretty=oneline --graph
* 09aeca28dd7583bb0b9b9d3a38dcc40cdbd870e3 (HEAD -> main, origin/main,
origin/HEAD) BSD family tree: reduce OpenBSD-NetBSD crowding
* 36095c942031f7f1613eec554f1c7615cbd891fd release: Comply with Azure
Marketplace requirements for aarch64
* 51c5e2b60247b3deb204a1d78ea6edc91a8ac652 libsys: install manpage links for
jail_attach_jd/jail_remove_jd
* 753cef701dbea03627c1fe11dd5556e74df415b2 dtrace.1: Fix mdoc macros around -x
* 9fe88e5503239cb65e503e3b2b7344933a888644 dtrace_pid.4: Document the DTrace
PID provider
* b8ff8a11c0d1d1f1b3bd1e60fae9c05ada7b28c5 ports.7: Add /var/db/ports to FILES
* 2ec6a2e5f01120ea8d4e667e7773d8b140e40c75 iwlwifi: fix the gcc build
* 3f5f52216f7e583aeb5580b13ba0f87e29d1ee43 kern_jail_set(): do not double-free
opts
callisto# 
callisto# uname -apKU 
FreeBSD callisto 16.0-CURRENT FreeBSD 16.0-CURRENT main-n281180-79e57ea662d9
GENERIC amd64 amd64 1600001 1600001
callisto# 

saw this ...
.
.
.

===> lib/libc/tests/rpc (all)
(cd /usr/src/lib/libc/tests/rpc &&  DEPENDFILE=.depend.rpc_test  NO_SUBDIR=1
make -f /usr/src/lib/libc/tests/rpc/Makefile _RECURSING_PROGS=t  PROG=rpc_test
)

/usr/local/bin/ccache cc -target x86_64-unknown-freebsd16.0
 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp 
 -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin
 -fpie -DPIC   -O2 -pipe -fno-common
 -I/usr/obj/usr/src/amd64.amd64/lib/libc/tests/rpc
 -I/usr/src/lib/libnetbsd
 -I/usr/src/contrib/netbsd-tests
 -fPIE -ffile-prefix-map=/usr/src=/usr/src
 -ffile-prefix-map=/usr/obj/usr/src=/usr/obj
 -g -gz=zlib
 -MD  -MF.depend.rpc_test.t_rpc.pieo
 -MTt_rpc.pieo -std=gnu17
 -Wno-format-zero-length -fstack-protector-strong
 -Wsystem-headers -Werror -Wall -Wno-format-y2k
 -Wno-uninitialized -Wno-pointer-sign -Wdate-time
 -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
 -Wno-error=unused-but-set-parameter -Wno-error=cast-function-type-mismatch
 -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
 -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
 -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
 -Wno-knr-promoted-parameter  -Qunused-arguments
 -c /usr/src/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
 -o t_rpc.pieo

cc -target x86_64-unknown-freebsd16.0
 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp
 -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin
 -O2 -pipe -fno-common
 -I/usr/obj/usr/src/amd64.amd64/lib/libc/tests/rpc
 -I/usr/src/lib/libnetbsd -I/usr/src/contrib/netbsd-tests
 -fPIE -ffile-prefix-map=/usr/src=/usr/src
 -ffile-prefix-map=/usr/obj/usr/src=/usr/obj
 -g -gz=zlib -std=gnu17 -Wno-format-zero-length
 -fstack-protector-strong
 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized
 -Wno-pointer-sign -Wdate-time -Wno-empty-body -Wno-string-plus-int
 -Wno-unused-const-variable -Wno-error=unused-but-set-parameter
 -Wno-error=cast-function-type-mismatch -Wno-tautological-compare
 -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
 -Wno-enum-conversion -Wno-unused-local-typedef
 -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
 -Wno-knr-promoted-parameter -Qunused-arguments
  -L/usr/obj/usr/src/amd64.amd64/lib/libnetbsd
 -Wl,-zrelro -pie
   -o rpc_test.full t_rpc.pieo  -lprivateatf-c  -lrpcsvc
  -lutil -L/usr/obj/usr/src/amd64.amd64/lib/libnetbsd
 -lnetbsd_pie

ld: error: undefined reference: yp_get_default_domain@FBSD_1.0
>>> referenced by /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/librpcsvc.so (disallowed by --no-allow-shlib-undefined)

ld: error: undefined reference: yp_master@FBSD_1.0
>>> referenced by /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/librpcsvc.so (disallowed by --no-allow-shlib-undefined)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[7]: stopped making "all" in /usr/src/lib/libc/tests/rpc
*** Error code 1

Stop.
make[6]: stopped making "all" in /usr/src/lib/libc/tests/rpc
*** Error code 1

Stop.
make[5]: stopped making "all" in /usr/src/lib/libc/tests
*** Error code 1

Stop.
make[4]: stopped making "all" in /usr/src/lib/libc
*** Error code 1

Stop.
make[3]: stopped making "all" in /usr/src/lib
*** Error code 1

Stop.
make[2]: stopped making "all" in /usr/src
      153.79 real       122.73 user        23.72 sys
*** Error code 1

Stop.
make[1]: stopped making "buildworld" in /usr/src
*** Error code 1

Stop.
make: stopped making "buildworld" in /usr/src

Not sure why this show stopper is happening here. 

Looks like a dogs breakfast of GCCisms and -std=gnu17 there also.

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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-290883-32464>