Seems like AFS support uses a structure in ioctl.h that requires sys/ioccom.h to be included beforehand. The following patch checks for this header file, and makes sure it is included. I don't have the latest auto* tools, so I hand-synthesized "configure"; hopefully this doesn't mask typo's in its sources. --- config.h.in.ORIG Sat Nov 3 19:25:33 2001 +++ config.h.in Thu Nov 8 13:40:24 2001 @@ -459,6 +459,9 @@ /* Define if you have the `innetgr' function. */ #undef HAVE_INNETGR +/* Define if you have the <sys/ioccom.h> header file. */ +#undef HAVE_SYS_IOCCOM_H + /* Define if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H --- configure.ac.ORIG Sat Nov 3 14:09:33 2001 +++ configure.ac Thu Nov 8 13:37:21 2001 @@ -437,6 +437,7 @@ netinet/in_systm.h paths.h poll.h pty.h regex.h \ security/pam_appl.h shadow.h stddef.h stdint.h \ strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ + sys/ioccom.h \ sys/poll.h sys/queue.h sys/select.h sys/stat.h \ sys/stropts.h sys/sysmacros.h sys/time.h \ sys/ttcompat.h sys/un.h time.h ttyent.h usersec.h \ --- configure.ORIG Sat Nov 3 19:25:32 2001 +++ configure Thu Nov 8 13:38:31 2001 @@ -5895,6 +5895,7 @@ netinet/in_systm.h paths.h poll.h pty.h regex.h \ security/pam_appl.h shadow.h stddef.h stdint.h \ strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ + sys/ioccom.h \ sys/poll.h sys/queue.h sys/select.h sys/stat.h \ sys/stropts.h sys/sysmacros.h sys/time.h \ sys/ttcompat.h sys/un.h time.h ttyent.h usersec.h \ --- includes.h.ORIG Wed Sep 19 22:07:51 2001 +++ includes.h Thu Nov 8 13:41:10 2001 @@ -25,6 +25,9 @@ #include <sys/types.h> #include <sys/socket.h> +#ifdef HAVE_SYS_IOCCOM_H +#include <sys/ioccom.h> +#endif #include <sys/ioctl.h> #include <sys/wait.h> #include <sys/resource.h> -- R. Lindsay Todd email: toddr at rpi.edu Senior Systems Programmer phone: 518-276-2605 Rensselaer Polytechnic Institute fax: 518-276-2809 Troy, NY 12180-3590 WWW: http://www.rpi.edu/~toddr