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 not supported (vendor/github.com/hanwen/go-fuse/v2/fuse/types.go:557:2: undefined: Attr)? #432

Open
mfechner opened this issue Jul 4, 2022 · 2 comments
Labels
Feature request for a feature

Comments

@mfechner
Copy link

mfechner commented Jul 4, 2022

Dear all,

I currently try to make a package for FreeBSD for gocryptfs (github.com/rfjakob/gocryptfs).
But while compiling it, I see error messages like:

# github.com/hanwen/go-fuse/v2/fuse
vendor/github.com/hanwen/go-fuse/v2/fuse/types.go:557:2: undefined: Attr
vendor/github.com/hanwen/go-fuse/v2/fuse/types.go:585:2: undefined: Attr
vendor/github.com/hanwen/go-fuse/v2/fuse/api.go:280:41: undefined: GetAttrIn
vendor/github.com/hanwen/go-fuse/v2/fuse/api.go:281:41: undefined: SetAttrIn
vendor/github.com/hanwen/go-fuse/v2/fuse/api.go:284:39: undefined: MknodIn
vendor/github.com/hanwen/go-fuse/v2/fuse/api.go:308:42: undefined: SetXAttrIn
vendor/github.com/hanwen/go-fuse/v2/fuse/api.go:314:40: undefined: CreateIn
vendor/github.com/hanwen/go-fuse/v2/fuse/api.go:316:38: undefined: ReadIn
vendor/github.com/hanwen/go-fuse/v2/fuse/api.go:325:39: undefined: WriteIn
vendor/github.com/hanwen/go-fuse/v2/fuse/api.go:334:41: undefined: ReadIn
vendor/github.com/hanwen/go-fuse/v2/fuse/api.go:334:41: too many errors
github.com/jacobsa/crypto/siv

Could it be, that go-fuse does not work on FreeBSD 13.1 amd64?

Thanks a lot for any kind of help.

@da2x
Copy link

da2x commented Jul 5, 2022

See #366.

@mfechner
Copy link
Author

mfechner commented Jul 5, 2022

Thanks @da2x, that matches the problem.
I look a little bit through the code but I see that the package syscall is used:
https://github.com/hanwen/go-fuse/blob/master/fuse/types.go#L9

What I understand from here:
https://go.googlesource.com/proposal/+/refs/heads/master/design/freeze-syscall.md

That syscall is frozen and replaced by golang.org/x/sys:
https://pkg.go.dev/golang.org/x/sys@v0.0.0-20220704084225-05e143d24a9e

So before we could even think about getting FreeBSD support into this module I think a migration from syscall to x/sys is required.

I'm new to go, so not everything is perfectly clear for me.

@hanwen hanwen added the Feature request for a feature label Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request for a feature
Projects
None yet
Development

No branches or pull requests

3 participants