Re: Error compiling nhc98-1.0pre18



About this list Date view Thread view Subject view Author view

José Romildo Malaquias (romildo@urano.iceb.ufop.br)
Thu, 13 Apr 2000 08:29:24 -0300


On Wed, Apr 12, 2000 at 11:03:25AM +0200, Jan Kort wrote: > José Romildo Malaquias wrote: > > > > I have applied the patch but it did not solve the problem. > > The error persists (with same messages). > > Try patching the corresponding ".c" file: "errnogen.c". i.e. > search for "Auto", change "Prelude" to "DErrNo". Not sure > if this will work, my computer is still building. The previous patch posted by Malcom was incomplete. After making the above change things compiled successfully. The patch I used is attached here. Thanks. Romildo -- Prof. José Romildo Malaquias <romildo@iceb.ufop.br> Departamento de Computação Universidade Federal de Ouro Preto Brasil

diff -ur nhc98-1.0pre18.orig/script/GenerateErrNo.hs nhc98-1.0pre18/script/GenerateErrNo.hs --- nhc98-1.0pre18.orig/script/GenerateErrNo.hs Tue Mar 21 13:02:16 2000 +++ nhc98-1.0pre18/script/GenerateErrNo.hs Wed Apr 12 10:24:57 2000 @@ -29,7 +29,7 @@ "#endif\n" cprogFooter = - " printf(\"module Prelude where\\n\\n\");\n" ++ + " printf(\"module DErrNo where\\n\\n\");\n" ++ " printf(\"{- Automatically generated from /usr/include/errno.h -}\\n\\n\");\n" ++ " printf(\"data ErrNo =\\n\");\n" ++ " printf(\" Edummy\\n\");\n" ++ diff -ur nhc98-1.0pre18.orig/script/errnogen.c nhc98-1.0pre18/script/errnogen.c --- nhc98-1.0pre18.orig/script/errnogen.c Tue Mar 21 13:02:42 2000 +++ nhc98-1.0pre18/script/errnogen.c Wed Apr 12 10:25:26 2000 @@ -1285,7 +1285,7 @@ errs[EREMOTERELEASE] = "EREMOTERELEASE"; if (EREMOTERELEASE>max) max=EREMOTERELEASE; #endif - printf("module Prelude where\n\n"); + printf("module DErrNo where\n\n"); printf("{- Automatically generated from /usr/include/errno.h -}\n\n"); printf("data ErrNo =\n"); printf(" Edummy\n"); -------------------------------------------------------------------- To unsubscribe, send a message containing the word `unsubscribe' to: nhc-users-request@cs.york.ac.uk --------------------------------------------------------------------


About this list Date view Thread view Subject view Author view