Resolving dependencies... Configuring zeromq3-haskell-0.2... Building zeromq3-haskell-0.2... Preprocessing library zeromq3-haskell-0.2... Base.hsc:12:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** Base.hsc: In function ‘main’: Base.hsc:12:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** Base.hsc:12:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** In file included from /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:4:0, from dist/build/System/ZMQ3/Base_hsc_make.c:1: /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:72:24: error: ‘zmq_msg_t’ has no member named ‘_’ (long) offsetof (t, f)); ^ Base.hsc:20:5: note: in expansion of macro ‘hsc_peek’ /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:76:24: error: ‘zmq_msg_t’ has no member named ‘_’ (long) offsetof (t, f)); ^ Base.hsc:21:5: note: in expansion of macro ‘hsc_poke’ In file included from dist/build/System/ZMQ3/Base_hsc_make.c:1:0: Base.hsc:77:50: error: ‘ZMQ_DELAY_ATTACH_ON_CONNECT’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:77:50: note: each undeclared identifier is reported only once for each function it appears in /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:89:50: error: ‘ZMQ_IPV4ONLY’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:92:50: error: ‘ZMQ_LAST_ENDPOINT’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:98:50: error: ‘ZMQ_MAXMSGSIZE’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:101:50: error: ‘ZMQ_MULTICAST_HOPS’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:110:50: error: ‘ZMQ_RCVHWM’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:128:50: error: ‘ZMQ_ROUTER_MANDATORY’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:134:50: error: ‘ZMQ_SNDHWM’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:143:50: error: ‘ZMQ_TCP_ACCEPT_FILTER’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:146:50: error: ‘ZMQ_TCP_KEEPALIVE’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:149:50: error: ‘ZMQ_TCP_KEEPALIVE_CNT’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:152:50: error: ‘ZMQ_TCP_KEEPALIVE_IDLE’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:155:50: error: ‘ZMQ_TCP_KEEPALIVE_INTVL’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:161:50: error: ‘ZMQ_XPUB_VERBOSE’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:107:40: error: ‘ZMQ_IO_THREADS’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:110:41: error: ‘ZMQ_MAX_SOCKETS’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:114:44: error: ‘ZMQ_EVENT_CONNECTED’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:117:44: error: ‘ZMQ_EVENT_CONNECT_DELAYED’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:120:44: error: ‘ZMQ_EVENT_CONNECT_RETRIED’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:123:44: error: ‘ZMQ_EVENT_LISTENING’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:126:44: error: ‘ZMQ_EVENT_BIND_FAILED’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:129:44: error: ‘ZMQ_EVENT_ACCEPTED’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:132:44: error: ‘ZMQ_EVENT_ACCEPT_FAILED’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:135:44: error: ‘ZMQ_EVENT_CLOSED’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:138:44: error: ‘ZMQ_EVENT_CLOSE_FAILED’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:141:44: error: ‘ZMQ_EVENT_DISCONNECTED’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:144:44: error: ‘ZMQ_EVENT_ALL’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:128:5: error: unknown type name ‘zmq_event_t’ Base.hsc:129:5: error: unknown type name ‘zmq_event_t’ In file included from dist/build/System/ZMQ3/Base_hsc_make.c:1:0: Base.hsc:134:34: error: ‘ZMQ_MORE’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:140:38: error: ‘ZMQ_DONTWAIT’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ compiling dist/build/System/ZMQ3/Base_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/System/ZMQ3/Base_hsc_make.c -o dist/build/System/ZMQ3/Base_hsc_make.o -fno-stack-protector -D__GLASGOW_HASKELL__=710 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/7.10.2/lib/ghc-7.10.2/bytes_6elQVSg5cWdFrvRnfxTUrH/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/base_GDytRqRVSUX7zckgKqJjgw/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/integ_2aU3IZNMF9a7mQ0OzsZ0dS/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/include/ Failed to install zeromq3-haskell-0.2 cabal: Error: some packages failed to install: zeromq3-haskell-0.2 failed during the building phase. The exception was: ExitFailure 1