Unresolved reference for unix.Splice in Mac

Hi all,

I am trying to use [https://github.com/mkevac/goduplicator](https://github.com/mkevac/goduplicator) but getting error.

# github.com/mkevac/goduplicator
./main.go:91:12: undefined: unix.Splice
./main.go:96:12: undefined: unix.Splice
./main.go:156:14: undefined: unix.Splice
./main.go:169:12: undefined: unix.Splice
./main.go:182:17: undefined: unix.Tee
./main.go:194:12: undefined: unix.Splice

my go env

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/myuser/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/myuser/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
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/d7/r0r3h23974j593016t5snysjp001nc/T/go-build860538255=/tmp/go-build -gno-record-gcc-switches -fno-common"

My go version
go version go1.12.5 darwin/amd64

I have no idea why this is happening.

1 Like

Because Darwin doesn’t seem to have those implemented.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.