go get: installing executables with 'go get' in module mode is deprecated.
Use 'go install pkg@version' instead.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
# github.com/godbus/dbus/v5
In file included from go/pkg/mod/github.com/godbus/dbus/v5@v5.0.4-0.20200513180336-df5ef3eb7cca/transport_unixcred_freebsd.go:13:
In file included from /usr/include/sys/ucred.h:39:
/usr/include/sys/_lock.h:38:2: error: unknown type name 'u_int'
u_int lo_flags;
^
/usr/include/sys/_lock.h:39:2: error: unknown type name 'u_int'
u_int lo_data; /* General class specific data. */
^
In file included from go/pkg/mod/github.com/godbus/dbus/v5@v5.0.4-0.20200513180336-df5ef3eb7cca/transport_unixcred_freebsd.go:13:
In file included from /usr/include/sys/ucred.h:40:
/usr/include/sys/_mutex.h:49:11: error: unknown type name 'uintptr_t'
volatile uintptr_t mtx_lock; /* Owner and flags. */
^
/usr/include/sys/_mutex.h:63:11: error: unknown type name 'uintptr_t'
volatile uintptr_t mtx_lock; /* Owner and flags. */
^
4 errors generated.
System used: helloSystem 0.7.0 (Build 0G126)
FreeBSD% uname -a
FreeBSD FreeBSD 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
Trying to build on FreeBSD leads to this error:
System used: helloSystem 0.7.0 (Build 0G126)
Possibly related?
Opened upstream: