Installing Anubis 4.1.1
under MacOS 10.5.8
using MacPorts ("ports install anubis")

gives the following error when compiling mta.c

/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include  -pipe -O2 
-arch i386 -MT mta.o -MD -MP -MF .deps/mta.Tpo -c -o mta.o mta.c

__________________________________________
mta.c: In function ‘skipws’:
mta.c:516: error: ‘u_char’ undeclared (first use in this function)
mta.c:516: error: (Each undeclared identifier is reported only once
mta.c:516: error: for each function it appears in.)
mta.c:516: error: syntax error before ‘)’ token
mta.c: In function ‘skipword’:
mta.c:524: error: ‘u_char’ undeclared (first use in this function)
mta.c:524: error: syntax error before ‘)’ token
mta.c: In function ‘mta_daemon’:
mta.c:850: warning: pointer targets in passing argument 3 of ‘accept’ differ in 
signedness
minidog:testsuite jas$ more * | grep "u_char"
  while (*str && isspace (*(u_char *) str))
  while (*str && !isspace (*(u_char *) str))
__________________________________________

Adding
#include <sys/types.h>
fixes it.


Regards, Jan


_______________________________________________
Bug-anubis mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-anubis

Reply via email to