Changes between Initial Version and Version 1 of Ticket #5172


Ignore:
Timestamp:
May 6, 2011 10:49:47 AM (4 years ago)
Author:
simonmar
Comment:

I don't understand how you ended up with

  #define HAVE_LIBUTIL_H 0

Normally when a header file does not exist, autoconf generates a line that looks like

/* Define to 1 if you have the <wibble.h> header file. */
/* #undef HAVE_WIBBLE_H */

(I just tested this by adding a new header file test to configure.ac, as you can see).

Where did you get your GHC distribution, and what platform is this?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5172

    • Property Status changed from new to infoneeded
  • Ticket #5172 – Description

    initial v1  
    77
    88./libraries/unix/include/HsUnixConfig.h has this in it:
    9 
     9{{{
    1010  /* Define to 1 if you have the <libutil.h> header file. */
    1111  #define HAVE_LIBUTIL_H 0
    12 
     12}}}
    1313However, ./libraries/unix/include/HsUnix.h has this:
    14 
     14{{{
    1515  #ifdef HAVE_LIBUTIL_H
    1616  #include <libutil.h>
    1717  #endif
    18 
     18}}}
    1919Naturally, it has tried to include the non-existing libutil.h. Even though HAVE_LIBUTIL_H is zero, it is still considered to be defined.
    2020
    2121After removing this line:
    22 
     22{{{
    2323  #define HAVE_LIBUTIL_H 0
    24 
     24}}}
    2525unix-compat has been successfully built.