make all-recursive make[1]: Entering directory `/tmp/sources/shadow-4.1.5.1' Making all in po make[2]: Entering directory `/tmp/sources/shadow-4.1.5.1/po' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/sources/shadow-4.1.5.1/po' Making all in man make[2]: Entering directory `/tmp/sources/shadow-4.1.5.1/man' make[3]: Entering directory `/tmp/sources/shadow-4.1.5.1/man' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/tmp/sources/shadow-4.1.5.1/man' make[2]: Leaving directory `/tmp/sources/shadow-4.1.5.1/man' Making all in libmisc make[2]: Entering directory `/tmp/sources/shadow-4.1.5.1/libmisc' gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 -MT utmp.o -MD -MP -MF .deps/utmp.Tpo -c -o utmp.o utmp.c utmp.c: In function 'prepare_utmp': utmp.c:255:27: error: 'AF_INET' undeclared (first use in this function) if (info->ai_family == AF_INET) { ^ utmp.c:255:27: note: each undeclared identifier is reported only once for each function it appears in utmp.c:266:17: error: dereferencing pointer to incomplete type &(sa->sin_addr), ^ In file included from utmp.c:35:0: utmp.c:268:28: error: dereferencing pointer to incomplete type sizeof (sa->sin_addr))); ^ ../lib/defines.h:362:27: note: in definition of macro 'MIN' #define MIN(a,b) (((a) < (b)) ? (a) : (b)) ^ utmp.c:268:28: error: dereferencing pointer to incomplete type sizeof (sa->sin_addr))); ^ ../lib/defines.h:362:40: note: in definition of macro 'MIN' #define MIN(a,b) (((a) < (b)) ? (a) : (b)) ^ utmp.c:269:34: error: 'AF_INET6' undeclared (first use in this function) } else if (info->ai_family == AF_INET6) { ^ utmp.c:273:17: error: dereferencing pointer to incomplete type &(sa->sin6_addr), ^ In file included from utmp.c:35:0: utmp.c:275:28: error: dereferencing pointer to incomplete type sizeof (sa->sin6_addr))); ^ ../lib/defines.h:362:27: note: in definition of macro 'MIN' #define MIN(a,b) (((a) < (b)) ? (a) : (b)) ^ utmp.c:275:28: error: dereferencing pointer to incomplete type sizeof (sa->sin6_addr))); ^ ../lib/defines.h:362:40: note: in definition of macro 'MIN' #define MIN(a,b) (((a) < (b)) ? (a) : (b)) ^ make[2]: *** [utmp.o] Error 1 make[2]: Leaving directory `/tmp/sources/shadow-4.1.5.1/libmisc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/sources/shadow-4.1.5.1' make: *** [all] Error 2