nmh-workers
[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
    -DNMHBINDIR='"/export/home/edcs/nmh/bin"'
    -DNMHLIBEXECDIR='"/export/home/edcs/nmh/libexec/nmh"'
    -DNMHETCDIR='"/export/home/edcs/nmh/etc/nmh"'
    -DNMHDOCDIR='"/export/home/edcs/nmh/share/doc/nmh"'
    -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
    './'`sbr/terminal.c
"/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>
    #else
    # define bool int
    # define true 1
    # define false 0
    #endif

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

-- 
Cheers, Ralph.

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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