Resolving dependencies... Downloading zeromq3-haskell-0.1.2... Configuring zeromq3-haskell-0.1.2... Building zeromq3-haskell-0.1.2... Preprocessing library zeromq3-haskell-0.1.2... Base.hsc:21:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** Base.hsc: In function ‘main’: Base.hsc:21:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** Base.hsc:21:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** In file included from /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:4:0, from dist/build/System/ZMQ3/Base_hsc_make.c:1: /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:72:24: error: ‘zmq_msg_t’ has no member named ‘_’ (long) offsetof (t, f)); ^ Base.hsc:29:5: note: in expansion of macro ‘hsc_peek’ /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:76:24: error: ‘zmq_msg_t’ has no member named ‘_’ (long) offsetof (t, f)); ^ Base.hsc:30:5: note: in expansion of macro ‘hsc_poke’ In file included from dist/build/System/ZMQ3/Base_hsc_make.c:1:0: Base.hsc:95:45: error: ‘ZMQ_IPV4ONLY’ undeclared (first use in this function) /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:95:45: note: each undeclared identifier is reported only once for each function it appears in /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:101:45: error: ‘ZMQ_MAXMSGSIZE’ undeclared (first use in this function) /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:104:45: error: ‘ZMQ_MULTICAST_HOPS’ undeclared (first use in this function) /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:113:45: error: ‘ZMQ_RCVHWM’ undeclared (first use in this function) /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:134:45: error: ‘ZMQ_SNDHWM’ undeclared (first use in this function) /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:107:34: error: ‘ZMQ_MORE’ undeclared (first use in this function) /opt/ghc/7.8.3/lib/ghc-7.8.3/template-hsc.h:93:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:113:38: error: ‘ZMQ_DONTWAIT’ undeclared (first use in this function) /opt/ghc/7.8.3/lib/ghc-7.8.3/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__=708 -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.8.3/lib/ghc-7.8.3/bytestring-0.10.4.0/include -I/opt/ghc/7.8.3/lib/ghc-7.8.3/base-4.7.0.1/include -I/opt/ghc/7.8.3/lib/ghc-7.8.3/integer-gmp-0.5.1.0/include -I/opt/ghc/7.8.3/lib/ghc-7.8.3/include -I/opt/ghc/7.8.3/lib/ghc-7.8.3/include/ Failed to install zeromq3-haskell-0.1.2 cabal: Error: some packages failed to install: zeromq3-haskell-0.1.2 failed during the building phase. The exception was: ExitFailure 1