undefined symbol: rand_range

2021-09-11 Thread Jeremie Le Hen
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
j...@freebsd.org



ipfw: setsockopt(IP_FW_NAT44_XCONFIG): Invalid argument

2021-09-11 Thread Yuri Tcherkasov

Hi

I'm binary upgrade FreeBSD from 10.2 to 13.0

After upgrate all workin well, but I need add one more routing table.  
So add to

GENERIC kernel

options ROUTETABLES=2

and recompile it.
After normaly recompile can't configure ipfw nat with error

ipfw: setsockopt(IP_FW_NAT44_XCONFIG): Invalid argument

Returning original kernel instataling with upgrade resolve problem  
with nat but multiple route I can't use.


Anybody can help me?

Thanx!

--
--
Yuri Tcherkasov
E-Mail:  t...@uats.od.ua