From: Peter K. <pe...@ke...> - 2010-09-18 16:42:46
|
When building sshguard-1.5rc4 on NetBSD-5.0.2 (amd64) it fails with the following error message: $> ./configure --prefix=/usr/local --with-firewall=pf --with-pfctl=/sbin/pfctl $> gmake ... gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_XOPEN_SOURCE -g -O2 -MT sshguard_whitelist.o -MD -MP -MF .deps/sshguard_whitelist.Tpo -c -o sshguard_whitelist.o sshguard_whitelist.c sshguard_whitelist.c: In function 'whitelist_add_block4': sshguard_whitelist.c:252: warning: implicit declaration of function 'inet_pton' sshguard_whitelist.c: In function 'whitelist_add_host': sshguard_whitelist.c:345: warning: implicit declaration of function 'getaddrinfo' sshguard_whitelist.c:347: warning: implicit declaration of function 'gai_strerror' sshguard_whitelist.c:347: warning: format '%s' expects type 'char *', but argument 4 has type 'int' sshguard_whitelist.c:351: error: dereferencing pointer to incomplete type sshguard_whitelist.c:351: warning: left-hand operand of comma expression has no effect sshguard_whitelist.c:351: warning: value computed is not used sshguard_whitelist.c:354: error: dereferencing pointer to incomplete type sshguard_whitelist.c:356: warning: implicit declaration of function 'inet_ntop' sshguard_whitelist.c:356: error: dereferencing pointer to incomplete type sshguard_whitelist.c:356: error: dereferencing pointer to incomplete type sshguard_whitelist.c:356: warning: comparison between pointer and integer sshguard_whitelist.c:361: error: dereferencing pointer to incomplete type sshguard_whitelist.c:361: error: dereferencing pointer to incomplete type sshguard_whitelist.c:361: warning: comparison between pointer and integer sshguard_whitelist.c:371: warning: implicit declaration of function 'freeaddrinfo' gmake[2]: *** [sshguard_whitelist.o] Error 1 gmake[2]: Leaving directory `/root/tmp/sshguard/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/root/tmp/sshguard/src' gmake: *** [all] Error 2 It seems related to arpa/inet.h and what _XOPEN_SOURCE or _NETBSD_SOURCE is defined to. /Peter |