FreeBSD Port: wine-6.0.1_3,1 error build (13-stable)

From: Alex V. Petrov <alexvpetrov_at_gmail.com>
Date: Thu, 21 Oct 2021 18:48:40 UTC
gcc10 -m64 -c -o dlls/ntdll/unix/version.o dlls/ntdll/unix/version.c 
-Idlls/ntdll -Iinclude -Iinclude/msvcrt -D__WINESRC__ \
   -D_NTSYSTEM_ -D_ACRTIMP= -DWINBASEAPI= -D_MSVCR_VER=0 -DWINE_UNIX_LIB 
-D_REENTRANT -fPIC \
   -fasynchronous-unwind-tables -fno-builtin -fshort-wchar -mabi=ms 
-Wall -pipe -fcf-protection=none \
   -fno-stack-protector -fno-strict-aliasing 
-Wdeclaration-after-statement -Wempty-body \
   -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 
-Wstrict-prototypes -Wtype-limits \
   -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith 
-Wlogical-op -isystem \
   /usr/local/include -O2 -pipe  -fstack-protector-strong 
-Wl,-rpath=/usr/local/lib/gcc10 -isystem /usr/local/include 
-fno-strict-aliasing
tools/winegcc/winegcc -o dlls/ntdll/ntdll.so --wine-objdir . -m64 -fPIC 
-fasynchronous-unwind-tables -munix -shared \
   dlls/ntdll/ntdll.spec -nodefaultlibs dlls/ntdll/unix/cdrom.o 
dlls/ntdll/unix/debug.o \
   dlls/ntdll/unix/env.o dlls/ntdll/unix/file.o dlls/ntdll/unix/loader.o 
dlls/ntdll/unix/process.o \
   dlls/ntdll/unix/registry.o dlls/ntdll/unix/security.o 
dlls/ntdll/unix/serial.o \
   dlls/ntdll/unix/server.o dlls/ntdll/unix/signal_arm.o 
dlls/ntdll/unix/signal_arm64.o \
   dlls/ntdll/unix/signal_i386.o dlls/ntdll/unix/signal_x86_64.o 
dlls/ntdll/unix/sync.o \
   dlls/ntdll/unix/system.o dlls/ntdll/unix/tape.o 
dlls/ntdll/unix/thread.o dlls/ntdll/unix/virtual.o \
   dlls/ntdll/unix/version.o dlls/winecrt0/libwinecrt0.a 
libs/port/libwine_port.a -lpthread \
   -lprocstat -L/usr/local/lib -fstack-protector-strong 
-Wl,-rpath=/usr/local/lib/gcc10 -L/usr/local/lib/gcc10
/usr/local/bin/ld: dlls/ntdll/unix/virtual.o: in function 
`virtual_get_system_info':
virtual.c:(.text+0x4b87): undefined reference to `sysinfo'
collect2: error: ld returned 1 exit status
winegcc: /usr/local/bin/gcc10 failed
gmake[2]: *** [Makefile:95794: dlls/ntdll/ntdll.so] Error 2
gmake[2]: Leaving directory '/usr/ports/emulators/wine/work/wine-6.0.1'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/emulators/wine
*** Error code 1

Stop.
-- 
-----
Alex.