undefined symbol: rand_range

From: Jeremie Le Hen <jlh_at_freebsd.org>
Date: Sat, 11 Sep 2021 16:54:47 UTC
Hey folks,

I'm getting the error below when compiling -CURRENT. Anyone else
having this error?

--- perf.full ---
cc -target x86_64-unknown-freebsd14.0
--sysroot=/usr/obj/usr/src.git/amd64.amd64/tmp
-B/usr/obj/usr/src.git/amd64.amd64/tmp/usr/bin -O -pipe -fno-common
-march=core2 -fPIE -g -gz=zlib -std=gnu99 -Wno-format-zero-length
-fstack-protector-strong -Wsystem-headers -Werror -Wall
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wchar-subscripts -Wnested-externs -Wredundant-decls
-Wold-style-definition -Wno-pointer-sign
-Wmissing-variable-declarations -Wthread-safety -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments
-pie  -o perf.full perf.o util.o   -lalias
ld: error: undefined symbol: rand_range
>>> referenced by perf.c:122 (/usr/src.git/tests/sys/netinet/libalias/perf.c:122)
>>>               perf.o:(main)
>>> referenced by perf.c:123 (/usr/src.git/tests/sys/netinet/libalias/perf.c:123)
>>>               perf.o:(main)
>>> referenced by perf.c:126 (/usr/src.git/tests/sys/netinet/libalias/perf.c:126)
>>>               perf.o:(main)
>>> referenced 13 more times
ld: error: undefined symbol: addr_eq
>>> referenced by perf.c:164 (/usr/src.git/tests/sys/netinet/libalias/perf.c:164)
>>>               perf.o:(main)
>>> referenced by perf.c:165 (/usr/src.git/tests/sys/netinet/libalias/perf.c:165)
>>>               perf.o:(main)
>>> referenced by perf.c:246 (/usr/src.git/tests/sys/netinet/libalias/perf.c:246)
>>>               perf.o:(main)
>>> referenced 3 more times
cc: error: linker command failed with exit code 1 (use -v to see invocation)


-- 
Jeremie Le Hen
jlh@FreeBSD.org