pebbe / zmq4

A Go interface to ZeroMQ version 4
BSD 2-Clause "Simplified" License
1.17k stars 163 forks source link

Zeromq and CircleCI #61

Closed nlamirault closed 8 years ago

nlamirault commented 8 years ago

hi, i've got an error when i try to build my project into CircleCI Using ssh debug i try to install zmq :

$ go get -u -v -x github.com/pebbe/zmq4
cd /home/ubuntu/.go_workspace/src/github.com/pebbe/zmq4
git config remote.origin.url
github.com/pebbe/zmq4 (download)
cd /home/ubuntu/.go_workspace/src/github.com/pebbe/zmq4
git symbolic-ref HEAD
cd /home/ubuntu/.go_workspace/src/github.com/pebbe/zmq4
git pull --ff-only
cd /home/ubuntu/.go_workspace/src/github.com/pebbe/zmq4
git show-ref
cd /home/ubuntu/.go_workspace/src/github.com/pebbe/zmq4
git checkout master
WORK=/tmp/go-build761773789
github.com/pebbe/zmq4
mkdir -p $WORK/github.com/pebbe/zmq4/_obj/
mkdir -p $WORK/github.com/pebbe/
cd /home/ubuntu/.go_workspace/src/github.com/pebbe/zmq4
pkg-config --cflags libzmq
pkg-config --libs libzmq
CGO_LDFLAGS="-g" "-O2" "-lzmq" /usr/local/go/pkg/tool/linux_amd64/cgo -objdir $WORK/github.com/pebbe/zmq4/_obj/ -importpath github.com/pebbe/zmq4 -- -I $WORK/github.com/pebbe/zmq4/_obj/ ctxoptions_unix.go errors.go polling.go socketget.go socketget_unix.go socketset.go zmq4.go
# github.com/pebbe/zmq4
could not determine kind of name for C.ZMQ_THREAD_PRIORITY
could not determine kind of name for C.ZMQ_THREAD_SCHED_POLICY
$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ubuntu/.go_workspace:/usr/local/go_workspace"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT=""
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

Do you have any idea to fix that ? Thanks.

pebbe commented 8 years ago

What is the output of pkg-config --modversion libzmq ?

nlamirault commented 8 years ago

pkg-config --modversion libzmq 2.1.11

pebbe commented 8 years ago

You need github.com/pebbe/zmq2

nlamirault commented 8 years ago

Thanks