Resolving dependencies... Downloading posix-pty-0.1.0... Configuring posix-pty-0.1.0... Building posix-pty-0.1.0... Preprocessing library posix-pty-0.1.0... [1 of 1] Compiling System.Posix.Pty ( System/Posix/Pty.hs, dist/build/System/Posix/Pty.o ) /tmp/ghc30990_0/ghc30990_0.c: In function ‘ghc_wrapper_d2uN_TIOCPKT_NOSTOP’: /tmp/ghc30990_0/ghc30990_0.c:8:55: error: ‘TIOCPKT_NOSTOP’ undeclared (first use in this function) /tmp/ghc30990_0/ghc30990_0.c:8:55: note: each undeclared identifier is reported only once for each function it appears in /tmp/ghc30990_0/ghc30990_0.c: In function ‘ghc_wrapper_d2uS_TIOCPKT_DOSTOP’: /tmp/ghc30990_0/ghc30990_0.c:10:55: error: ‘TIOCPKT_DOSTOP’ undeclared (first use in this function) /tmp/ghc30990_0/ghc30990_0.c: In function ‘ghc_wrapper_d2uX_TIOCPKT_START’: /tmp/ghc30990_0/ghc30990_0.c:12:54: error: ‘TIOCPKT_START’ undeclared (first use in this function) /tmp/ghc30990_0/ghc30990_0.c: In function ‘ghc_wrapper_d2v2_TIOCPKT_STOP’: /tmp/ghc30990_0/ghc30990_0.c:14:53: error: ‘TIOCPKT_STOP’ undeclared (first use in this function) /tmp/ghc30990_0/ghc30990_0.c: In function ‘ghc_wrapper_d2v7_TIOCPKT_FLUSHWRITE’: /tmp/ghc30990_0/ghc30990_0.c:16:59: error: ‘TIOCPKT_FLUSHWRITE’ undeclared (first use in this function) /tmp/ghc30990_0/ghc30990_0.c: In function ‘ghc_wrapper_d2vc_TIOCPKT_FLUSHREAD’: /tmp/ghc30990_0/ghc30990_0.c:18:58: error: ‘TIOCPKT_FLUSHREAD’ undeclared (first use in this function) Failed to install posix-pty-0.1.0 cabal: Error: some packages failed to install: posix-pty-0.1.0 failed during the building phase. The exception was: ExitFailure 1