Resolving dependencies... Configuring hsyslog-4... Configuring mtl-2.2.1... Building hsyslog-4... Building mtl-2.2.1... Installed hsyslog-4 Configuring network-2.6.3.1... Configuring old-locale-1.0.0.7... Installed mtl-2.2.1 Building old-locale-1.0.0.7... Building network-2.6.3.1... Configuring text-1.2.2.1... Installed old-locale-1.0.0.7 Building text-1.2.2.1... Installed network-2.6.3.1 Configuring hopenssl-1.7... Building hopenssl-1.7... Configuring old-time-1.1.0.3... Installed hopenssl-1.7 Building old-time-1.1.0.3... Configuring hsdns-1.6.1... Installed old-time-1.1.0.3 Building hsdns-1.6.1... Installed text-1.2.2.1 Configuring parsec-3.1.11... Building parsec-3.1.11... Installed hsdns-1.6.1 Installed parsec-3.1.11 Configuring hsemail-1.7.7... Building hsemail-1.7.7... Installed hsemail-1.7.7 Configuring postmaster-0.3... Building postmaster-0.3... Failed to install postmaster-0.3 Build log ( /home/builder/.cabal/logs/postmaster-0.3.log ): cabal: Entering directory '/tmp/cabal-tmp-15867/postmaster-0.3' Configuring postmaster-0.3... Building postmaster-0.3... Preprocessing executable 'postmaster' for postmaster-0.3... [ 1 of 19] Compiling Postmaster.Env ( Postmaster/Env.hs, dist/build/postmaster/postmaster-tmp/Postmaster/Env.o ) [ 2 of 19] Compiling Postmaster.Base ( Postmaster/Base.hs, dist/build/postmaster/postmaster-tmp/Postmaster/Base.o ) [ 3 of 19] Compiling Postmaster.FSM.Announce ( Postmaster/FSM/Announce.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/Announce.o ) [ 4 of 19] Compiling Postmaster.FSM.DNSResolver ( Postmaster/FSM/DNSResolver.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/DNSResolver.o ) [ 5 of 19] Compiling Postmaster.FSM.DataHandler ( Postmaster/FSM/DataHandler.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/DataHandler.o ) [ 6 of 19] Compiling Postmaster.FSM.EhloPeer ( Postmaster/FSM/EhloPeer.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/EhloPeer.o ) [ 7 of 19] Compiling Postmaster.FSM.EventHandler ( Postmaster/FSM/EventHandler.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/EventHandler.o ) [ 8 of 19] Compiling Postmaster.FSM.HeloName ( Postmaster/FSM/HeloName.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/HeloName.o ) [ 9 of 19] Compiling Postmaster.FSM.MailFrom ( Postmaster/FSM/MailFrom.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/MailFrom.o ) [10 of 19] Compiling Postmaster.FSM.MailID ( Postmaster/FSM/MailID.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/MailID.o ) [11 of 19] Compiling Postmaster.FSM.PeerAddr ( Postmaster/FSM/PeerAddr.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/PeerAddr.o ) [12 of 19] Compiling Postmaster.FSM.PeerHelo ( Postmaster/FSM/PeerHelo.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/PeerHelo.o ) [13 of 19] Compiling Postmaster.FSM.SessionState ( Postmaster/FSM/SessionState.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/SessionState.o ) [14 of 19] Compiling Postmaster.IO ( Postmaster/IO.hs, dist/build/postmaster/postmaster-tmp/Postmaster/IO.o ) Postmaster/IO.hs:180:38: warning: [-Wdeprecations] In the use of ‘sClose’ (imported from Network.Socket): Deprecated: "use 'close'" Postmaster/IO.hs:190:6: warning: [-Wdeprecations] In the use of ‘sClose’ (imported from Network.Socket): Deprecated: "use 'close'" Postmaster/IO.hs:191:45: warning: [-Wdeprecations] In the use of ‘sClose’ (imported from Network.Socket): Deprecated: "use 'close'" [15 of 19] Compiling Postmaster.FSM.Spooler ( Postmaster/FSM/Spooler.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM/Spooler.o ) [16 of 19] Compiling Postmaster.FSM ( Postmaster/FSM.hs, dist/build/postmaster/postmaster-tmp/Postmaster/FSM.o ) [17 of 19] Compiling Postmaster.Main ( Postmaster/Main.hs, dist/build/postmaster/postmaster-tmp/Postmaster/Main.o ) Postmaster/Main.hs:161:5: error: • Couldn't match expected type ‘Facility -> IO () -> IO ()’ with actual type ‘IO ()’ • The function ‘withSyslog’ is applied to three arguments, but its type ‘SyslogConfig -> (SyslogFn -> IO ()) -> IO ()’ has only two In the expression: withSyslog "postmaster" [PID, PERROR] MAIL In the second argument of ‘($)’, namely ‘withSyslog "postmaster" [PID, PERROR] MAIL $ initResolver [NoErrPrint, NoServerWarn] $ \ dns -> withGlobalEnv whoami dns eventT $ listener port . smtpdServer cap’ Postmaster/Main.hs:161:16: error: • Couldn't match expected type ‘SyslogConfig’ with actual type ‘[Char]’ • In the first argument of ‘withSyslog’, namely ‘"postmaster"’ In the expression: withSyslog "postmaster" [PID, PERROR] MAIL In the second argument of ‘($)’, namely ‘withSyslog "postmaster" [PID, PERROR] MAIL $ initResolver [NoErrPrint, NoServerWarn] $ \ dns -> withGlobalEnv whoami dns eventT $ listener port . smtpdServer cap’ Postmaster/Main.hs:161:29: error: • Couldn't match expected type ‘SyslogFn -> IO ()’ with actual type ‘[Option]’ • In the second argument of ‘withSyslog’, namely ‘[PID, PERROR]’ In the expression: withSyslog "postmaster" [PID, PERROR] MAIL In the second argument of ‘($)’, namely ‘withSyslog "postmaster" [PID, PERROR] MAIL $ initResolver [NoErrPrint, NoServerWarn] $ \ dns -> withGlobalEnv whoami dns eventT $ listener port . smtpdServer cap’ Postmaster/Main.hs:186:30: error: • Variable not in scope: syslog :: Priority -> String -> IO () • Perhaps you meant ‘_syslog’ (imported from System.Posix.Syslog) cabal: Leaving directory '/tmp/cabal-tmp-15867/postmaster-0.3' cabal: Error: some packages failed to install: postmaster-0.3 failed during the building phase. The exception was: ExitFailure 1