Hi, I've been playing with 2.05/6 source. I have installed the Linux
ELF binaries of ghc 2.02. I am running a quite up-to-date (read:
bleeding edge) Linux i386 system with GNU libc 2.0.4.

I would like to package ghc for Debian. To do this properly, the make
has to be automatable. ghc does not have a prominently displayed
licence; is it under the GNU GPL?

1. You probably want to patch makeinfo (2.06) thusly:

--- literate/info-utils/makeinfo.c~     Fri Jun  6 00:16:35 1997
+++ literate/info-utils/makeinfo.c      Thu Sep 18 16:47:58 1997
@@ -6332,7 +6332,9 @@
 
   if (!find_and_load (filename))
     {
-#ifndef __FreeBSD__
+#if defined (__GLIBC__) && __GLIBC__ > 1
+#warning fix makeinfo.c
+#else
       extern char *sys_errlist[];
 #endif
       extern int errno, sys_nerr;

(I'm fairly sure you can remove any reference to FreeBSD) and wait for
the next version of makeinfo to fix this properly.

2. autoconf; autoheader on my machine yields:

  /usr/bin/autoheader: Symbol `HAVE_ALTZONE' is not covered by
    /usr/lib/autoconf/acconfig.h

and there was another one with 2.06 (TIME_TYPE I think). Is this a
problem with not having a recent enough autoconf installed? I have:
Autoconf version 2.12

3. ./ghc/docs/users_guide/2-0{5,6}-notes.lit are missing and this
causes problems

4. ./ghc/runtime/main/Signals.c moans about a missing caddr_t (not defined in
sys/types unless I use -D__USE_BSD).

5. With 2.06 some script tries to run mkdependHS-1.2, expecting to
find it in my path!

6. I found I had to manually make in the utils dir before make boot
otherwise something (unlit) was not found.

7. In both 05 (and possibly 06), the perl header stuff is horribly
broken resulting in things like: {1+@}: file not found. I had to
manually replace the first few lines of the driver and another file
with #!/usr/bin/perl

In the binary install of 2.02, I think, the $ were missing in the
first few lines of the ghc driver.

8. Is the -traditional argument really needed for cpp (mkdependC)?

9. At one point something tried to run ghc 0.29.

I hope this is of some help. Let me know if you would like a
typescript of a compile attempt or more information about my system.

Yours,
Giuliano Procida.

[EMAIL PROTECTED] +44 1223 358608 Magdalene College Cambridge CB3 0AG UK
     PGP key available from public key servers; key ID: 93898735

Reply via email to