Bug 156

Summary: interfaces.c:84:22: ifaddrs.h: No such file or directory
Product: Sudo Reporter: www.sudo.ws <www.sudo.ws>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: high    
Priority: low    
Version: 1.6.8   
Hardware: PC   
OS: Linux   

Description www.sudo.ws@hovland.cx 2004-11-08 17:25:06 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.
Comment 1 Todd C. Miller 2004-11-11 09:34:00 MST
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