Resolving dependencies... Downloading posix-realtime-0.0.0.2... Configuring posix-realtime-0.0.0.2... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for an ANSI C-conforming const... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking for string.h... (cached) yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking for sys/stat.h... (cached) yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking libutil.h usability... no checking libutil.h presence... no checking for libutil.h... no checking pty.h usability... yes checking pty.h presence... yes checking for pty.h... yes checking utmp.h usability... yes checking utmp.h presence... yes checking for utmp.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking for getgrgid_r... yes checking for getgrnam_r... yes checking for getpwnam_r... yes checking for getpwuid_r... yes checking for getpwnam... yes checking for getpwuid... yes checking for getpwent... yes checking for getgrent... yes checking for lchown... yes checking for setenv... yes checking for sysconf... yes checking for unsetenv... yes checking for nanosleep... yes checking for ptsname... yes checking for setitimer... yes checking for shm_open... no checking for shm_unlink... no checking value of SIGABRT... 6 checking value of SIGALRM... 14 checking value of SIGBUS... 7 checking value of SIGCHLD... 17 checking value of SIGCONT... 18 checking value of SIGFPE... 8 checking value of SIGHUP... 1 checking value of SIGILL... 4 checking value of SIGINT... 2 checking value of SIGKILL... 9 checking value of SIGPIPE... 13 checking value of SIGQUIT... 3 checking value of SIGSEGV... 11 checking value of SIGSTOP... 19 checking value of SIGTERM... 15 checking value of SIGTSTP... 20 checking value of SIGTTIN... 21 checking value of SIGTTOU... 22 checking value of SIGUSR1... 10 checking value of SIGUSR2... 12 checking value of SIGPOLL... 29 checking value of SIGPROF... 27 checking value of SIGSYS... 31 checking value of SIGTRAP... 5 checking value of SIGURG... 23 checking value of SIGVTALRM... 26 checking value of SIGXCPU... 24 checking value of SIGXFSZ... 25 checking value of SIG_BLOCK... 0 checking value of SIG_SETMASK... 2 checking value of SIG_UNBLOCK... 1 checking for _SC_GETGR_R_SIZE_MAX... yes checking for _SC_GETPW_R_SIZE_MAX... yes checking return type of usleep... int checking for RTLD_NEXT from dlfcn.h... no checking for RTLD_DEFAULT from dlfcn.h... no checking for RTLD_LOCAL from dlfcn.h... yes checking for RTLD_GLOBAL from dlfcn.h... yes checking for RTLD_NOW from dlfcn.h... yes checking for openpty... no checking for openpty in -lutil... yes checking for /dev/ptmx... yes checking for /dev/ptc... no checking for dlopen in -ldl... yes configure: creating ./config.status config.status: creating unix.buildinfo config.status: creating include/HsUnixConfig.h config.status: include/HsUnixConfig.h is unchanged Building posix-realtime-0.0.0.2... Preprocessing library posix-realtime-0.0.0.2... In file included from MQueue.hsc:80:0: /usr/local/lib/ghc-7.6.3/unix-2.6.0.1/include/HsUnix.h:81:21: fatal error: libutil.h: No such file or directory compilation terminated. compiling dist/build/System/Posix/Realtime/MQueue_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/System/Posix/Realtime/MQueue_hsc_make.c -o dist/build/System/Posix/Realtime/MQueue_hsc_make.o -fno-stack-protector -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -D__GLASGOW_HASKELL__=706 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iinclude -I/usr/local/lib/ghc-7.6.3/unix-2.6.0.1/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.6.3/time-1.4.0.1/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.6.3/bytestring-0.10.0.2/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.6.3/base-4.6.0.1/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.6.3/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.6.3/include/ Failed to install posix-realtime-0.0.0.2 cabal: Error: some packages failed to install: posix-realtime-0.0.0.2 failed during the building phase. The exception was: ExitFailure 1