Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD: error: unknown type name 'uintptr_t' #282

Closed
probonopd opened this issue Dec 12, 2021 · 1 comment
Closed

FreeBSD: error: unknown type name 'uintptr_t' #282

probonopd opened this issue Dec 12, 2021 · 1 comment

Comments

@probonopd
Copy link

Trying to build on FreeBSD leads to this error:

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

Possibly related?

@guelfey
Copy link
Member

guelfey commented Jan 5, 2022

That was indeed fixed in #208, please update.

@guelfey guelfey closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants