[Top] [All Lists]

Re: [nmh-workers] nmh 1.7.1 compile errors

2019-06-03 12:34:35
Hi Masud,

cc -DHAVE_CONFIG_H -I.   -I./sbr
    -DMAILSPOOL='"/var/mail"' -DSENDMAILPATH='"/usr/sbin/sendmail"'
    -g -v -errtags=yes -erroff=E_STATEMENT_NOT_REACHED -Wall -Wextra
    -c -o sbr/sbr_libmh_a-terminal.o `test -f 'sbr/terminal.c' || echo
"/usr/include/curses.h", line 86: invalid type combination
cc: acomp failed for sbr/terminal.c
    85  #if !defined(__cplusplus) && !defined(_BOOL)
    86  typedef char bool;
    87  #endif /* !defined(__cplusplus) && !defined(_BOOL) */

Can you confirm config.h doesn't have HAVE_STDBOOL_H #defined?
h/nmh.h does

    #ifdef HAVE_STDBOOL_H
    # include <stdbool.h>
    # define bool int
    # define true 1
    # define false 0

and that's probably upsetting things.
Does your Solaris C compilation environment have a stdbool.h?
Is gcc available?

Cheers, Ralph.


<Prev in Thread] Current Thread [Next in Thread>