Brad, all:

I just found that when compiling autorespond on OS X (jaguar, gcc 3.1), you have to include fcntl.h *before* dirent.h. Otherwise, you get this:

bash-2.05a# make
gcc -Wall -o autorespond autorespond.c
/usr/include/sys/dirent.h:73: undefined type, found `u_int32_t'
/usr/include/sys/dirent.h:74: undefined type, found `u_int16_t'
/usr/include/sys/dirent.h:75: undefined type, found `u_int8_t'
/usr/include/sys/dirent.h:76: undefined type, found `u_int8_t'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
In file included from /usr/include/dirent.h:64,
from autorespond.c:72:
/usr/include/sys/dirent.h:73: parse error before "u_int32_t"
/usr/include/sys/dirent.h:75: parse error before "d_type"
/usr/include/sys/dirent.h:76: parse error before "d_namlen"
/usr/include/sys/dirent.h:83: parse error before '}' token
autorespond.c: In function `main':
autorespond.c:675: dereferencing pointer to incomplete type
autorespond.c:677: dereferencing pointer to incomplete type
autorespond.c:683: dereferencing pointer to incomplete type
autorespond.c:685: dereferencing pointer to incomplete type
make: *** [all] Error 1

Also, there is no group "wheel", so chgrp root /usr/local/bin/autorespond fails.

Regards,

Bill Shupp


Reply via email to