From: Mij <mi...@ss...> - 2011-01-12 17:27:19
|
Hi Peter, Hmm I didn't expect NetBSD to be this far from _BSD_SOURCE's semantics. Does it help if you (manually) run that failing gcc command with -D_XOPEN_SOURCE=500 instead? I might take a look at it from a VirtualBox machine in the future. On Sep 18, 2010, at 18:17 , Peter Kerwien wrote: > 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 > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Sshguard-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/sshguard-users |