Bug 156 - interfaces.c:84:22: ifaddrs.h: No such file or directory
interfaces.c:84:22: ifaddrs.h: No such file or directory
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.8
PC Linux
: low high
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-08 17:25 MST by www.sudo.ws@hovland.cx
Modified: 2004-11-11 13:34 MST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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