glib-networking build issues

From: John T. Darrah <johntdarrah_at_gmail.com>
Date: Tue, 10 May 2022 17:30:49 UTC
Hello:

Could I get some help with the following build error for glib-networking 
(Xfce metaport) on FreeBSD 13-STABLE?


===>  Building for glib-networking-2.70.1
[ 50% 1/2] /usr/bin/cc  -o tls/tests/certificate-gnutls 
tls/tests/certificate-gnutls.p/certificate.c.o -Wl,--as-needed 
-Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe 
-fstack-protector-strong -isystem /usr/local/include 
-fno-strict-aliasing -isystem /usr/local/include 
-Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib 
-Wl,--start-group /usr/local/lib/libgio-2.0.so 
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so 
/usr/local/lib/libintl.so -Wl,--export-dynamic 
/usr/local/lib/libgmodule-2.0.so -pthread /usr/local/lib/libgnutls.so 
-Wl,--end-group
FAILED: tls/tests/certificate-gnutls
/usr/bin/cc  -o tls/tests/certificate-gnutls 
tls/tests/certificate-gnutls.p/certificate.c.o -Wl,--as-needed 
-Wl,--no-undefined -Wl,-O1 -fstack-protector-strong -O2 -pipe 
-fstack-protector-strong -isystem /usr/local/include 
-fno-strict-aliasing -isystem /usr/local/include 
-Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib 
-Wl,--start-group /usr/local/lib/libgio-2.0.so 
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so 
/usr/local/lib/libintl.so -Wl,--export-dynamic 
/usr/local/lib/libgmodule-2.0.so -pthread /usr/local/lib/libgnutls.so 
-Wl,--end-group
ld: error: undefined symbol: gnutls_pkcs11_init
 >>> referenced by certificate.c
 >>> tls/tests/certificate-gnutls.p/certificate.c.o:(main)

ld: error: undefined symbol: gnutls_pkcs11_add_provider
 >>> referenced by certificate.c
 >>> tls/tests/certificate-gnutls.p/certificate.c.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make: stopped in /usr/ports/net/glib-networking



Thanks.