unix-streamdeck / streamdeckd

BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Build error on FreeBSD #17

Open probonopd opened 2 years ago

probonopd commented 2 years ago

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?

Opened upstream:

The-Jonsey commented 2 years ago

I'll get this updated in the next release

fearlessgeekmedia commented 9 months ago

I was having this same issue. GhsotBSD here. Any progress?

I'd love to have my Stream Deck working on GhostBSD. Right now I'm having to rely on Linux for it.