Skip to content

Build fails on OpenBSD #608

@rain0r

Description

@rain0r

Hey there,

building OpenCloud bare-metal on OpenBSD fails with following messages:

$ gmake -C opencloud build
go build -v -tags 'disable_crypt' -ldflags '-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -s -w -X "github.com/opencloud-eu/opencloud/pkg/version.Edition=" -X "github.com/opencloud-eu/opencloud/pkg/version.String=039c5a2f1" -X "github.com/opencloud-eu/opencloud/pkg/version.Tag=" -X "github.com/opencloud-eu/opencloud/pkg/version.Date=20260425"' -o bin/opencloud ./cmd/opencloud
github.com/opencloud-eu/reva/v2/pkg/storage/pkg/decomposedfs/node
# github.com/opencloud-eu/reva/v2/pkg/storage/pkg/decomposedfs/node
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/pkg/decomposedfs/node/node_unix.go:37:21: stat.Bavail undefined (type "syscall".Statfs_t has no field or method Bavail)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/pkg/decomposedfs/node/node_unix.go:37:43: stat.Bsize undefined (type "syscall".Statfs_t has no field or method Bsize)
github.com/gookit/goutil/sysutil
# github.com/gookit/goutil/sysutil
../vendor/github.com/gookit/goutil/sysutil/exec.go:74:5: undefined: IsWindows
../vendor/github.com/gookit/goutil/sysutil/sysenv.go:186:15: undefined: IsWindows
../vendor/github.com/gookit/goutil/sysutil/sysutil.go:31:44: undefined: OpenURL
../vendor/github.com/gookit/goutil/sysutil/sysutil.go:34:51: undefined: OpenURL
../vendor/github.com/gookit/goutil/sysutil/sysutil.go:42:9: undefined: OpenURL
github.com/opencloud-eu/reva/v2/pkg/storage/utils/localfs
# github.com/opencloud-eu/reva/v2/pkg/storage/utils/localfs
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/utils/localfs/localfs_unix.go:80:16: stat.Blocks undefined (type "syscall".Statfs_t has no field or method Blocks)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/utils/localfs/localfs_unix.go:80:37: stat.Bsize undefined (type "syscall".Statfs_t has no field or method Bsize)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/utils/localfs/localfs_unix.go:83:16: stat.Blocks undefined (type "syscall".Statfs_t has no field or method Blocks)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/utils/localfs/localfs_unix.go:83:37: stat.Bavail undefined (type "syscall".Statfs_t has no field or method Bavail)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/utils/localfs/localfs_unix.go:83:60: stat.Bsize undefined (type "syscall".Statfs_t has no field or method Bsize)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/utils/localfs/localfs_unix.go:85:27: stat.Bavail undefined (type "syscall".Statfs_t has no field or method Bavail)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/utils/localfs/localfs_unix.go:85:49: stat.Bsize undefined (type "syscall".Statfs_t has no field or method Bsize)
github.com/opencloud-eu/reva/v2/pkg/storage/utils/decomposedfs/node
# github.com/opencloud-eu/reva/v2/pkg/storage/utils/decomposedfs/node
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/utils/decomposedfs/node/node_unix.go:37:21: stat.Bavail undefined (type "syscall".Statfs_t has no field or method Bavail)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/utils/decomposedfs/node/node_unix.go:37:43: stat.Bsize undefined (type "syscall".Statfs_t has no field or method Bsize)
github.com/opencloud-eu/reva/v2/pkg/storage/fs/owncloudsql
# github.com/opencloud-eu/reva/v2/pkg/storage/fs/owncloudsql
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/fs/owncloudsql/owncloudsql_unix.go:82:16: stat.Blocks undefined (type "syscall".Statfs_t has no field or method Blocks)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/fs/owncloudsql/owncloudsql_unix.go:82:37: stat.Bsize undefined (type "syscall".Statfs_t has no field or method Bsize)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/fs/owncloudsql/owncloudsql_unix.go:84:16: stat.Blocks undefined (type "syscall".Statfs_t has no field or method Blocks)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/fs/owncloudsql/owncloudsql_unix.go:84:37: stat.Bavail undefined (type "syscall".Statfs_t has no field or method Bavail)
../vendor/github.com/opencloud-eu/reva/v2/pkg/storage/fs/owncloudsql/owncloudsql_unix.go:84:60: stat.Bsize undefined (type "syscall".Statfs_t has no field or method Bsize)

Running on OpenBSD 7.9 (snapshot), go version go1.26.2, GNU Make 4.4.1, OpenCloud commit 039c5a2f1b1d27c9ac4ea820dc0358e3c85d1265.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions