{"action":"closed","issue":{"url":"https://api.github.com/repos/zeromq/libzmq/issues/1639","repository_url":"https://api.github.com/repos/zeromq/libzmq","labels_url":"https://api.github.com/repos/zeromq/libzmq/issues/1639/labels{/name}","comments_url":"https://api.github.com/repos/zeromq/libzmq/issues/1639/comments","events_url":"https://api.github.com/repos/zeromq/libzmq/issues/1639/events","html_url":"https://github.com/zeromq/libzmq/issues/1639","id":116083109,"number":1639,"title":"multiple undefined references (Cygwin)","user":{"login":"nowox","id":1132849,"avatar_url":"https://avatars.githubusercontent.com/u/1132849?v=3","gravatar_id":"","url":"https://api.github.com/users/nowox","html_url":"https://github.com/nowox","followers_url":"https://api.github.com/users/nowox/followers","following_url":"https://api.github.com/users/nowox/following{/other_user}","gists_url":"https://api.github.com/users/nowox/gists{/gist_id}","starred_url":"https://api.github.com/users/nowox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nowox/subscriptions","organizations_url":"https://api.github.com/users/nowox/orgs","repos_url":"https://api.github.com/users/nowox/repos","events_url":"https://api.github.com/users/nowox/events{/privacy}","received_events_url":"https://api.github.com/users/nowox/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zeromq/libzmq/labels/Installation","name":"Installation","color":"1d76db"},{"url":"https://api.github.com/repos/zeromq/libzmq/labels/Platform%20(windows/cygwin-32)","name":"Platform (windows/cygwin-32)","color":"bfd4f2"},{"url":"https://api.github.com/repos/zeromq/libzmq/labels/Platform%20(windows/cygwin-64)","name":"Platform (windows/cygwin-64)","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-10T10:53:54Z","updated_at":"2016-04-20T06:51:25Z","closed_at":"2016-04-20T06:51:25Z","body":"I am trying to install `pyzmq` on Cygwin32 or Cygwin64 and I tried this command given [here](https://github.com/zeromq/pyzmq/issues/113): \r\n\r\n```\r\n$ gcc -shared -o cygzmq.dll -Wl,--out-implib=libzmq.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive .libs/libzmq.a -Wl,--no-whole-archive -lstdc++\r\n.libs/libzmq.a(libzmq_la-ctx.o): In function `zmq::ctx_t::~ctx_t()':\r\n/usr/src/zeromq-4.1.3/src/ctx.cpp:117: undefined reference to `randombytes_close'\r\n/usr/src/zeromq-4.1.3/src/ctx.cpp:117:(.text+0xe83): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `randombytes_close'\r\n...\r\n/usr/src/zeromq-4.1.3/src/curve_server.cpp:547: undefined reference to `crypto_box_afternm'\r\n.libs/libzmq.a(libzmq_la-curve_server.o): In function `zmq::curve_server_t::process_initiate(zmq::msg_t*)':\r\n/usr/src/zeromq-4.1.3/src/curve_server.cpp:421: undefined reference to `crypto_secretbox_open'\r\n/usr/src/zeromq-4.1.3/src/curve_server.cpp:454: undefined reference to `crypto_box_open'\r\n/usr/src/zeromq-4.1.3/src/curve_server.cpp:479: undefined reference to `crypto_box_open'\r\n/usr/src/zeromq-4.1.3/src/curve_server.cpp:496: undefined reference to `crypto_box_beforenm'\r\n.libs/libzmq.a(libzmq_la-zmq_utils.o): In function `zmq_curve_keypair':\r\n/usr/src/zeromq-4.1.3/src/zmq_utils.cpp:202: undefined reference to `crypto_box_keypair'\r\ncollect2: error: ld returned 1 exit status\r\n```\r\n\r\nWhy do I get undefined references?"}}