Resolving dependencies... Configuring data-endian-0.1.1... Configuring network-2.6.3.1... Building data-endian-0.1.1... Installed data-endian-0.1.1 Configuring primitive-0.6.2.0... Building network-2.6.3.1... Building primitive-0.6.2.0... Configuring text-1.2.2.1... Installed primitive-0.6.2.0 Building text-1.2.2.1... Installed network-2.6.3.1 Configuring network-msg-0.8... Building network-msg-0.8... Configuring atomic-primops-0.8.0.4... Installed network-msg-0.8 Building atomic-primops-0.8.0.4... Installed atomic-primops-0.8.0.4 Installed text-1.2.2.1 Configuring hashable-1.2.5.0... Building hashable-1.2.5.0... Installed hashable-1.2.5.0 Configuring ctrie-0.1.1.0... Building ctrie-0.1.1.0... Installed ctrie-0.1.1.0 Configuring mDNSResponder-client-1.0.0... Building mDNSResponder-client-1.0.0... Failed to install mDNSResponder-client-1.0.0 Build log ( /home/builder/.cabal/logs/mDNSResponder-client-1.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-23110/mDNSResponder-client-1.0.0' Configuring mDNSResponder-client-1.0.0... Building mDNSResponder-client-1.0.0... Preprocessing library mDNSResponder-client-1.0.0... In file included from dist/build/Network/DNS/MDNSResponder/Client_hsc_make.c:1:0: Client.hsc: In function ‘main’: Client.hsc:112:16: error: ‘kDNSServiceErr_ServiceNotRunning’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ Client.hsc:112:16: 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:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ compiling dist/build/Network/DNS/MDNSResponder/Client_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/Network/DNS/MDNSResponder/Client_hsc_make.c -o dist/build/Network/DNS/MDNSResponder/Client_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 -Iinclude -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/network-2.6.3.1-G4Up1CPKbp7DeFsnywOnGG/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/unix-2.7.2.0/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/time-1.6.0.1/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/bytestring-0.10.8.1/include -I/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/primitive-0.6.2.0-3HSsNCfUEEE4fjqDYVydYZ/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-23110/mDNSResponder-client-1.0.0' cabal: Error: some packages failed to install: mDNSResponder-client-1.0.0 failed during the building phase. The exception was: ExitFailure 1