Resolving dependencies... Configuring zeromq3-haskell-0.1... Building zeromq3-haskell-0.1... Preprocessing library zeromq3-haskell-0.1... 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: Base.hsc: In function ‘main’: /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:29: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: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.10.2/lib/ghc-7.10.2/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.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:45: 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:104:45: 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:113:45: 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:134:45: 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:107: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:113: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.1 cabal: Error: some packages failed to install: zeromq3-haskell-0.1 failed during the building phase. The exception was: ExitFailure 1