`undefined: GetExecutablePath` when building GOOS=darwin
Closed this issue · 1 comments
jvehent commented
There seem to be an issue with the darwin build:
package main
import (
"github.com/VividCortex/godaemon"
"os"
)
func main() {
godaemon.MakeDaemon(&godaemon.DaemonAttr{})
os.Exit(0)
}
I am using go 1.3
$ go version
go version devel +f613443bb13a Tue Apr 22 21:12:15 2014 -0700 linux/amd64
works fine on linux/amd64
$ go build godaemontest.go
$ file godaemontest
godaemontest: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
fails on darwin/amd64
$ GOOS=darwin go build godaemontest.go
# github.com/VividCortex/godaemon
../go/bin/src/github.com/VividCortex/godaemon/daemon.go:62: undefined: GetExecutablePath
I successfully build other go binary for darwin/amd64 on my machine, so I doubt the issue is with the go tools.
Preetam commented
We're using cgo so cross compilation won't work (for now).