Skip to content

Instantly share code, notes, and snippets.

@weissjeffm
Created February 23, 2015 13:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save weissjeffm/883108aad717c95f2b1f to your computer and use it in GitHub Desktop.
(opentxs)[jweiss@localhost notary]$ godep go build -ldflags '-r /usr/local/lib -linkmode external' ./...
# github.com/pebbe/zmq4
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_C2func_zmq_ctx_term':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:174: undefined reference to `zmq_ctx_term'
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_C2func_zmq_curve_keypair':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:191: undefined reference to `zmq_curve_keypair'
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_Cfunc_zmq_ctx_term':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:490: undefined reference to `zmq_ctx_term'
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_Cfunc_zmq_curve_keypair':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:505: undefined reference to `zmq_curve_keypair'
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_Cfunc_zmq_z85_decode':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:698: undefined reference to `zmq_z85_decode'
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_Cfunc_zmq_z85_encode':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:713: undefined reference to `zmq_z85_encode'
collect2: error: ld returned 1 exit status
godep: go exit status 2
(opentxs)[jweiss@localhost notary]$ pkg-config --libs libczmq
Package libczmq was not found in the pkg-config search path.
Perhaps you should add the directory containing `libczmq.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libczmq' found
(opentxs)[jweiss@localhost notary]$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
(opentxs)[jweiss@localhost notary]$ pkg-config --libs libczmq
-L/usr/local/lib -lczmq -lzmq
(opentxs)[jweiss@localhost notary]$ godep go build -ldflags '-L/usr/local/lib -lczmq -lzmq' ./...
# github.com/monetas/notary/cmd/notary
/usr/lib/golang/pkg/tool/linux_amd64/6l: unknown flag -L/usr/local/lib
godep: go exit status 2
(opentxs)[jweiss@localhost notary]$ godep go build -ldflags '-linkmode internal' ./...
(opentxs)[jweiss@localhost notary]$ godep go build -ldflags '-r /usr/local/lib -linkmode external' ./...
(opentxs)[jweiss@localhost notary]$
@toxeus
Copy link

toxeus commented Mar 6, 2015

godep go build was successful because you did this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment