I'm having some problems compiling nmh-0.2{6,7} on aix3.2.5. I think
it's a gcc thing, but I was wondering if someone else has successfully
compiled nmh on an aix3.2.5 machine. Here is what I get using gcc 2.7.2.2:
gcc -c -DHAVE_CONFIG_H -I.. -I../../../nmh-0.27/uip -I../../../nmh-0.27 -O2
../../../nmh-0.27/uip/mshcmds.c
../../../nmh-0.27/uip/mshcmds.c:63: conflicting types for `getws'
/usr/intel/97r1.1/lib/gcc-lib/rs6000-ibm-aix3.2.5/2.7.2.2/include/stdio.h:365:
previous declaration of `getws'
gmake[1]: *** [mshcmds.o] Error 1
gmake: *** [all-recursive] Error 1
This same code works fine on other architecture. According to the man
page, getws is defined as:
wchar_t *getws (WString)
wchar_t *WString;
while nmh wants to define it as:
static int getws (char *, char *, int, struct Msg *);
obviously, it's defined it's own getws. Although I'm confused on why it
works on AIX 4.1. Incorrect gcc?
Any hints would be will appreciated. What versions of gcc are people using
to compile nmh?
sri