Bugzilla – Bug 156
interfaces.c:84:22: ifaddrs.h: No such file or directory
Last modified: 2004-11-11 13:34:00 MST
# tar xzvf /pub/src/sudo-1.6.8p1.tar.gz # cd sudo-1.6.8p1/ # ./configure --prefix=/usr --sysconfdir=/etc # make gcc -c -I. -I. -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" - D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 - DSUDOERS_MODE=0440 check.c gcc -c -I. -I. -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" - D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 - DSUDOERS_MODE=0440 env.c gcc -c -I. -I. -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" - D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 - DSUDOERS_MODE=0440 getspwuid.c gcc -c -I. -I. -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" - D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 - DSUDOERS_MODE=0440 gettime.c gcc -c -I. -I. -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" - D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 - DSUDOERS_MODE=0440 goodpath.c gcc -c -I. -I. -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" - D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 - DSUDOERS_MODE=0440 fileops.c gcc -c -I. -I. -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" - D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 - DSUDOERS_MODE=0440 find_path.c gcc -c -I. -I. -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" - D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 - DSUDOERS_MODE=0440 interfaces.c interfaces.c:84:22: ifaddrs.h: No such file or directory interfaces.c: In function `load_interfaces': interfaces.c:113: error: dereferencing pointer to incomplete type interfaces.c:115: error: dereferencing pointer to incomplete type interfaces.c:115: error: dereferencing pointer to incomplete type interfaces.c:116: error: dereferencing pointer to incomplete type interfaces.c:119: error: dereferencing pointer to incomplete type interfaces.c:132: error: dereferencing pointer to incomplete type interfaces.c:134: error: dereferencing pointer to incomplete type interfaces.c:134: error: dereferencing pointer to incomplete type interfaces.c:135: error: dereferencing pointer to incomplete type interfaces.c:138: error: dereferencing pointer to incomplete type interfaces.c:141: error: dereferencing pointer to incomplete type interfaces.c:144: error: dereferencing pointer to incomplete type make: *** [interfaces.o] Error 1 Thats about it. /usr/src/linux is 2.4.27-pre5 By the way your "Query existing bug reports" site looks like an alien spaceship in a foreign language I can't understand.
Your Linux installation is probably incomplete if it lacks the ifaddrs.h header but libc has the getifaddrs() function. As a workaround, you can edit config.h and comment out the line: #define HAVE_GETIFADDRS 1