Resolving dependencies... Configuring zeromq3-haskell-0.1.3... Building zeromq3-haskell-0.1.3... Failed to install zeromq3-haskell-0.1.3 Build log ( /home/builder/.cabal/logs/zeromq3-haskell-0.1.3.log ): cabal: Entering directory '/tmp/cabal-tmp-31671/zeromq3-haskell-0.1.3' Configuring zeromq3-haskell-0.1.3... Building zeromq3-haskell-0.1.3... Preprocessing library zeromq3-haskell-0.1.3... Base.hsc:21:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** Base.hsc:59:0: warning: "hsc_alignment" redefined [enabled by default] In file included from dist/build/System/ZMQ3/Base_hsc_make.c:1:0: /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:88:0: note: this is the location of the previous definition #define hsc_alignment(t...) \ ^ 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/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:4:0, from dist/build/System/ZMQ3/Base_hsc_make.c:1: /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/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/8.0.2/lib/ghc-8.0.1.20161018/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/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96: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/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96: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/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96: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/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96: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/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96: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/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96: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/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96: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/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96: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 -fno-stack-protector -D__GLASGOW_HASKELL__=800 -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/8.0.2/lib/ghc-8.0.1.20161018/bytestring-0.10.8.1/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/base-4.9.0.0/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/integer-gmp-1.0.0.1/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/include/ cabal: Leaving directory '/tmp/cabal-tmp-31671/zeromq3-haskell-0.1.3' cabal: Error: some packages failed to install: zeromq3-haskell-0.1.3 failed during the building phase. The exception was: ExitFailure 1