Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.
This repository was archived by the owner on Feb 25, 2023. It is now read-only.

Can't compile on freebsd #4

Description

@michaeleino

Hello,
I can't compile thesource code on ZFSGuru(freebsd 9.2-001),
I have installed the Go lang & can run the hello world test program...
I got this:
GOPATH=pwd/golibs /usr/local/go/bin/go build -o zfswatcher

__/tmp/zfswatcher

osutil_freebsd.go:41: cannot convert unsafe.Pointer(&buf[0]) (type unsafe.Pointer) to type syscall.Timeval
osutil_freebsd.go:41: invalid indirect of syscall.Timeval(unsafe.Pointer(&buf[0])) (type syscall.Timeval)
osutil_freebsd.go:43: not enough arguments in call to time.Unix
*** [zfswatcher] Error code 2

Stop in /tmp/zfswatcher.

Also when I try to type 'go install' I get:
setup.go:25:2: cannot find package "code.google.com/p/gcfg" in any of:
/usr/local/go/src/pkg/code.google.com/p/gcfg (from $GOROOT)
/root/go/src/code.google.com/p/gcfg (from $GOPATH)
webserver.go:26:2: cannot find package "github.com/abbot/go-http-auth" in any of:
/usr/local/go/src/pkg/github.com/abbot/go-http-auth (from $GOROOT)
/root/go/src/github.com/abbot/go-http-auth (from $GOPATH)
leds.go:27:2: cannot find package "github.com/damicon/zfswatcher/notifier" in any of:
/usr/local/go/src/pkg/github.com/damicon/zfswatcher/notifier (from $GOROOT)
/root/go/src/github.com/damicon/zfswatcher/notifier (from $GOPATH)
setup.go:29:2: cannot find package "github.com/ogier/pflag" in any of:

/usr/local/go/src/pkg/github.com/ogier/pflag (from $GOROOT) /root/go/src/github.com/ogier/pflag (from $GOPATH)

please advice.
Thanks a lot,
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions