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

go build error: undefined variables #247

Closed
levinxo opened this issue Apr 24, 2020 · 4 comments
Closed

go build error: undefined variables #247

levinxo opened this issue Apr 24, 2020 · 4 comments

Comments

@levinxo
Copy link

levinxo commented Apr 24, 2020

when i ran go build -o hello ./examples/hellofs/hello.go in terminal, it produced errors below:

# bazil.org/fuse
./error_std.go:26:20: undefined: errNoXattr
./fuse.go:171:12: undefined: mount
./fuse.go:236:24: undefined: maxWrite
./fuse.go:425:32: undefined: maxWrite
./fuse.go:810:12: undefined: openFlags
./fuse.go:828:18: undefined: openFlags
./fuse.go:845:18: undefined: openFlags
./fuse.go:868:18: undefined: openFlags
./fuse.go:991:12: undefined: openFlags
./fuse.go:1413:20: undefined: maxWrite
./fuse.go:1413:20: too many errors
@tv42
Copy link
Member

tv42 commented Apr 25, 2020

What does go env output?

@levinxo
Copy link
Author

levinxo commented Apr 25, 2020

Thanks for your reply. go env output:

GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/user/Library/Caches/go-build"
GOENV="/Users/user/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/user/work/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io"
GOROOT="/usr/local/Cellar/go/1.14.2_1/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.2_1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/user/work/go/code/fuse/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/qq/0cwzn5vn4kn5wzjlg0f77lj00000gn/T/go-build926324921=/tmp/go-build -gno-record-gcc-switches -fno-common"

@kjetilbk
Copy link

kjetilbk commented Apr 25, 2020

Hey, I also get this error from doing go get bazil.org/fuse. go env output:

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/me/Library/Caches/go-build"
GOENV="/Users/me/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/me/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14.2_1/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.2_1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/nm/kqk3_k0s1y94_l16t97kpv0h0000gn/T/go-build002493924=/tmp/go-build -gno-record-gcc-switches -fno-common"

@tv42
Copy link
Member

tv42 commented Apr 25, 2020

OSXFUSE is dying a sad, lonely, death. It's no longer open source, Apple is locking down their walled garden ever more and more, and I can't justify volunteering that much work just because of someone else's proprietary software that refuses to work like the FUSE upstream.
See #224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants