Cannot build on illumos
Closed this issue · 2 comments
marcheschi commented
Hi
I'm trying to compile haproxy dataplaneapi in illumos but I have this error:
[root@sunbuild ~/dataplaneapi]# export GOOS=illumos
[root@sunbuild ~/dataplaneapi]# make build
mkdir -p /root/dataplaneapi/build
CGO_ENABLED=0 go build -trimpath -ldflags "-X \"main.GitRepo=https://github.com/haproxytech/dataplaneapi.git\" -X main.GitTag=v2.5.0 -X main.GitCommit=3ce6624 -X main.GitDirty=.dev.dirty -X main.BuildTime=2022-03-24T10:27:37Z" -o /root/dataplaneapi/build/dataplaneapi /root/dataplaneapi/cmd/dataplaneapi/
# github.com/nathanaelle/syslog5424/v2
../go/pkg/mod/github.com/nathanaelle/syslog5424/v2@v2.0.5/connector-local_other.go:10:14: undefined: ErrorNoConnecion
make: *** [Makefile:24: build] Error 2
I think this is related to this code that does not recognize GOOS=illumos.
Do you have any advice on how to solve this problem ?
Thank you
Paolo
nathanaelle commented
Hi,
there was a typo and I forgot illumos
.
so I've pushed a patch.
marcheschi commented
Hi Nathanaelle
Thank you
It works now !!