+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/multiskkserv-20100128nb1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/multiskkserv-20100128nb1/work.log ===> Building for multiskkserv-20100128nb1 --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in lib --- libstring.lo --- --- dlist.lo --- --- hash.lo --- --- libstring.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o libstring.lo libstring.c --- dlist.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o dlist.lo dlist.c --- hash.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o hash.lo hash.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c hash.c -fPIC -DPIC -o .libs/hash.o --- libstring.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c libstring.c -fPIC -DPIC -o .libs/libstring.o --- dlist.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c dlist.c -fPIC -DPIC -o .libs/dlist.o --- hash.lo --- hash.c: In function 'default_hash_function': hash.c:46:23: warning: variable 'l' set but not used [-Wunused-but-set-variable] 46 | unsigned int h = 0, l; | ^ hash.c: In function 'default_hash_function2': hash.c:63:23: warning: variable 'l' set but not used [-Wunused-but-set-variable] 63 | unsigned int h = 0, l; | ^ --- dlist.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c dlist.c -o dlist.o >/dev/null 2>&1 --- libstring.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c libstring.c -o libstring.o >/dev/null 2>&1 --- hash.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c hash.c -o hash.o >/dev/null 2>&1 --- libutils.la --- /usr/bin/bash ../libtool --tag=CC --mode=link gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -Wl,-R/opt/pkg/lib -o libutils.la libstring.lo dlist.lo hash.lo libtool: link: ar cr .libs/libutils.a .libs/libstring.o .libs/dlist.o .libs/hash.o libtool: link: ranlib .libs/libutils.a libtool: link: ( cd ".libs" && rm -f "libutils.la" && ln -s "../libutils.la" "libutils.la" ) Making all in tinycdb --- cdb_init.lo --- --- cdb_find.lo --- --- cdb_findnext.lo --- --- cdb_seq.lo --- --- cdb_init.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_init.lo cdb_init.c --- cdb_find.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_find.lo cdb_find.c --- cdb_findnext.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_findnext.lo cdb_findnext.c --- cdb_seq.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_seq.lo cdb_seq.c --- cdb_init.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_init.c -fPIC -DPIC -o .libs/cdb_init.o --- cdb_findnext.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_findnext.c -fPIC -DPIC -o .libs/cdb_findnext.o --- cdb_seq.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_seq.c -fPIC -DPIC -o .libs/cdb_seq.o --- cdb_find.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_find.c -fPIC -DPIC -o .libs/cdb_find.o --- cdb_seq.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_seq.c -o cdb_seq.o >/dev/null 2>&1 --- cdb_init.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_init.c -o cdb_init.o >/dev/null 2>&1 --- cdb_seek.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_seek.lo cdb_seek.c --- cdb_findnext.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_findnext.c -o cdb_findnext.o >/dev/null 2>&1 --- cdb_find.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_find.c -o cdb_find.o >/dev/null 2>&1 --- cdb_unpack.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_unpack.lo cdb_unpack.c --- cdb_make_add.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_make_add.lo cdb_make_add.c --- cdb_make_put.lo --- --- cdb_unpack.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_unpack.c -fPIC -DPIC -o .libs/cdb_unpack.o --- cdb_make_put.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_make_put.lo cdb_make_put.c --- cdb_make_add.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_make_add.c -fPIC -DPIC -o .libs/cdb_make_add.o --- cdb_unpack.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_unpack.c -o cdb_unpack.o >/dev/null 2>&1 --- cdb_seek.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_seek.c -fPIC -DPIC -o .libs/cdb_seek.o --- cdb_make_put.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_make_put.c -fPIC -DPIC -o .libs/cdb_make_put.o --- cdb_make.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_make.lo cdb_make.c --- cdb_make_add.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_make_add.c -o cdb_make_add.o >/dev/null 2>&1 --- cdb_make.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_make.c -fPIC -DPIC -o .libs/cdb_make.o --- cdb_seek.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_seek.c -o cdb_seek.o >/dev/null 2>&1 --- cdb_hash.lo --- /usr/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c -o cdb_hash.lo cdb_hash.c --- cdb_make_put.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_make_put.c -o cdb_make_put.o >/dev/null 2>&1 --- cdb_hash.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_hash.c -fPIC -DPIC -o .libs/cdb_hash.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_hash.c -o cdb_hash.o >/dev/null 2>&1 --- cdb_make.lo --- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -pipe -Wall -c cdb_make.c -o cdb_make.o >/dev/null 2>&1 --- libtinycdb.la --- /usr/bin/bash ../libtool --tag=CC --mode=link gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -Wl,-R/opt/pkg/lib -o libtinycdb.la cdb_init.lo cdb_find.lo cdb_findnext.lo cdb_seq.lo cdb_seek.lo cdb_unpack.lo cdb_make_add.lo cdb_make_put.lo cdb_make.lo cdb_hash.lo libtool: link: ar cr .libs/libtinycdb.a .libs/cdb_init.o .libs/cdb_find.o .libs/cdb_findnext.o .libs/cdb_seq.o .libs/cdb_seek.o .libs/cdb_unpack.o .libs/cdb_make_add.o .libs/cdb_make_put.o .libs/cdb_make.o .libs/cdb_hash.o libtool: link: ranlib .libs/libtinycdb.a libtool: link: ( cd ".libs" && rm -f "libtinycdb.la" && ln -s "../libtinycdb.la" "libtinycdb.la" ) Making all in src --- multiskkserv.o --- --- getopt-support.o --- --- getaddrinfo.o --- --- multiskkserv-ctl.o --- --- getopt-support.o --- gcc -DHAVE_CONFIG_H -I. -I.. -I../tinycdb -I.. -I../lib -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c getopt-support.c --- getaddrinfo.o --- gcc -DHAVE_CONFIG_H -I. -I.. -I../tinycdb -I.. -I../lib -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c getaddrinfo.c --- multiskkserv.o --- gcc -DHAVE_CONFIG_H -I. -I.. -I../tinycdb -I.. -I../lib -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c multiskkserv.c --- multiskkserv-ctl.o --- gcc -DHAVE_CONFIG_H -I. -I.. -I../tinycdb -I.. -I../lib -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -pthread -pipe -Wall -c multiskkserv-ctl.c --- getaddrinfo.o --- In file included from getaddrinfo.c:39: getaddrinfo.h:23:8: error: redefinition of 'struct addrinfo' 23 | struct addrinfo { | ^~~~~~~~ In file included from getaddrinfo.c:32: /usr/include/netdb.h:112:8: note: originally defined here 112 | struct addrinfo { | ^~~~~~~~ getaddrinfo.h:35: warning: "AI_PASSIVE" redefined 35 | # define AI_PASSIVE 1 /* Socket address is intended for `bind'. */ | /usr/include/netdb.h:131: note: this is the location of the previous definition 131 | #define AI_PASSIVE 0x0008 /* intended for bind() + listen() */ | getaddrinfo.h:36: warning: "AI_CANONNAME" redefined 36 | # define AI_CANONNAME 2 /* Request for canonical name. */ | /usr/include/netdb.h:132: note: this is the location of the previous definition 132 | #define AI_CANONNAME 0x0010 /* return canonical version of host */ | getaddrinfo.h:37: warning: "AI_NUMERICHOST" redefined 37 | # define AI_NUMERICHOST 3 /* Don't use name resolution. */ | /usr/include/netdb.h:133: note: this is the location of the previous definition 133 | #define AI_NUMERICHOST 0x0020 /* use numeric node address string */ | getaddrinfo.h:40: warning: "EAI_BADFLAGS" redefined 40 | #define EAI_BADFLAGS -1 /* Invalid value for `ai_flags' field. */ | /usr/include/netdb.h:154: note: this is the location of the previous definition 154 | #define EAI_BADFLAGS 3 /* invalid ai_flags */ | getaddrinfo.h:41: warning: "EAI_NONAME" redefined 41 | #define EAI_NONAME -2 /* NAME or SERVICE is unknown. */ | /usr/include/netdb.h:158: note: this is the location of the previous definition 158 | #define EAI_NONAME 8 /* host/servname not known */ | getaddrinfo.h:42: warning: "EAI_AGAIN" redefined 42 | #define EAI_AGAIN -3 /* Temporary failure in name resolution. */ | /usr/include/netdb.h:153: note: this is the location of the previous definition 153 | #define EAI_AGAIN 2 /* DNS temporary failure */ | getaddrinfo.h:43: warning: "EAI_FAIL" redefined 43 | #define EAI_FAIL -4 /* Non-recoverable failure in name res. */ | /usr/include/netdb.h:155: note: this is the location of the previous definition 155 | #define EAI_FAIL 4 /* DNS non-recoverable failure */ | getaddrinfo.h:44: warning: "EAI_NODATA" redefined 44 | #define EAI_NODATA -5 /* No address associated with NAME. */ | /usr/include/netdb.h:151: note: this is the location of the previous definition 151 | #define EAI_NODATA 7 /* no address */ | getaddrinfo.h:45: warning: "EAI_FAMILY" redefined 45 | #define EAI_FAMILY -6 /* `ai_family' not supported. */ | /usr/include/netdb.h:156: note: this is the location of the previous definition 156 | #define EAI_FAMILY 5 /* ai_family not supported */ | getaddrinfo.h:46: warning: "EAI_SOCKTYPE" redefined 46 | #define EAI_SOCKTYPE -7 /* `ai_socktype' not supported. */ | /usr/include/netdb.h:160: note: this is the location of the previous definition 160 | #define EAI_SOCKTYPE 10 /* ai_socktype not supported */ | getaddrinfo.h:47: warning: "EAI_SERVICE" redefined 47 | #define EAI_SERVICE -8 /* SERVICE not supported for `ai_socktype'. */ | /usr/include/netdb.h:159: note: this is the location of the previous definition 159 | #define EAI_SERVICE 9 /* servname not supported for ai_socktype */ | getaddrinfo.h:48: warning: "EAI_ADDRFAMILY" redefined 48 | #define EAI_ADDRFAMILY -9 /* Address family for NAME not supported. */ | /usr/include/netdb.h:150: note: this is the location of the previous definition 150 | #define EAI_ADDRFAMILY 1 /* address family not supported */ | getaddrinfo.h:49: warning: "EAI_MEMORY" redefined 49 | #define EAI_MEMORY -10 /* Memory allocation failure. */ | /usr/include/netdb.h:157: note: this is the location of the previous definition 157 | #define EAI_MEMORY 6 /* memory allocation failure */ | getaddrinfo.h:50: warning: "EAI_SYSTEM" redefined 50 | #define EAI_SYSTEM -11 /* System error returned in `errno'. */ | /usr/include/netdb.h:161: note: this is the location of the previous definition 161 | #define EAI_SYSTEM 11 /* system error in errno */ | getaddrinfo.h:55: warning: "NI_NUMERICHOST" redefined 55 | #define NI_NUMERICHOST 1 /* Don't try to look up hostname. */ | /usr/include/netdb.h:168: note: this is the location of the previous definition 168 | #define NI_NUMERICHOST 0x0002 /* return numeric form of address */ | getaddrinfo.h:56: warning: "NI_NUMERICSERV" redefined 56 | #define NI_NUMERICSERV 2 /* Don't convert port number to name. */ | /usr/include/netdb.h:170: note: this is the location of the previous definition 170 | #define NI_NUMERICSERV 0x0008 | getaddrinfo.h:57: warning: "NI_NOFQDN" redefined 57 | #define NI_NOFQDN 4 /* Only return nodename portion. */ | /usr/include/netdb.h:167: note: this is the location of the previous definition 167 | #define NI_NOFQDN 0x0001 | getaddrinfo.h:58: warning: "NI_NAMEREQD" redefined 58 | #define NI_NAMEREQD 8 /* Don't return numeric addresses. */ | /usr/include/netdb.h:169: note: this is the location of the previous definition 169 | #define NI_NAMEREQD 0x0004 /* request DNS name */ | getaddrinfo.h:59: warning: "NI_DGRAM" redefined 59 | #define NI_DGRAM 16 /* Look up UDP service rather than TCP. */ | /usr/include/netdb.h:171: note: this is the location of the previous definition 171 | #define NI_DGRAM 0x0010 | getaddrinfo.h:64:12: error: conflicting types for 'getaddrinfo'; have 'int(const char *, const char *, const struct addrinfo *, struct addrinfo **)' 64 | extern int getaddrinfo (const char *, const char *, const struct addrinfo *, | ^~~~~~~~~~~ /usr/include/netdb.h:318:17: note: previous declaration of 'getaddrinfo' with type 'int(const char * restrict, const char * restrict, const struct addrinfo * restrict, struct addrinfo ** restrict)' 318 | int getaddrinfo(const char *_RESTRICT_KYWD, | ^~~~~~~~~~~ getaddrinfo.h:67:13: error: conflicting types for 'freeaddrinfo'; have 'void(struct addrinfo *)' 67 | extern void freeaddrinfo (struct addrinfo *ai); | ^~~~~~~~~~~~ /usr/include/netdb.h:322:17: note: previous declaration of 'freeaddrinfo' with type 'void(struct addrinfo *)' 322 | void freeaddrinfo(struct addrinfo *); | ^~~~~~~~~~~~ getaddrinfo.c:41:5: error: conflicting types for 'getaddrinfo'; have 'int(const char *, const char *, const struct addrinfo *, struct addrinfo **)' 41 | int getaddrinfo (hostname, servname, hints, res) | ^~~~~~~~~~~ /usr/include/netdb.h:318:17: note: previous declaration of 'getaddrinfo' with type 'int(const char * restrict, const char * restrict, const struct addrinfo * restrict, struct addrinfo ** restrict)' 318 | int getaddrinfo(const char *_RESTRICT_KYWD, | ^~~~~~~~~~~ getaddrinfo.c: In function 'getaddrinfo': getaddrinfo.c:44:26: error: argument 'hints' doesn't match prototype 44 | const struct addrinfo *hints; | ^~~~~ /usr/include/netdb.h:318:17: error: prototype declaration 318 | int getaddrinfo(const char *_RESTRICT_KYWD, | ^~~~~~~~~~~ getaddrinfo.c:45:21: error: argument 'res' doesn't match prototype 45 | struct addrinfo **res; | ^~~ /usr/include/netdb.h:318:17: error: prototype declaration 318 | int getaddrinfo(const char *_RESTRICT_KYWD, | ^~~~~~~~~~~ getaddrinfo.c:65:5: warning: implicit declaration of function 'perror'; did you mean 'herror'? [-Wimplicit-function-declaration] 65 | perror ("gethostbyname"); | ^~~~~~ | herror getaddrinfo.c:76:9: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] 76 | if (isdigit (servname[0])) | ^~~~~~~ getaddrinfo.c:40:1: note: include '<ctype.h>' or provide a declaration of 'isdigit' 39 | #include "getaddrinfo.h" +++ |+#include <ctype.h> 40 | getaddrinfo.c:75:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 75 | if (servname) | ^ getaddrinfo.c:92:5: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 92 | memcpy (&sin->sin_addr, host->h_addr, host->h_length); | ^~~~~~ getaddrinfo.c:40:1: note: include '<string.h>' or provide a declaration of 'memcpy' 39 | #include "getaddrinfo.h" +++ |+#include <string.h> 40 | getaddrinfo.c:92:5: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 92 | memcpy (&sin->sin_addr, host->h_addr, host->h_length); | ^~~~~~ getaddrinfo.c:92:5: note: include '<string.h>' or provide a declaration of 'memcpy' getaddrinfo.c: At top level: getaddrinfo.c:114:6: error: conflicting types for 'freeaddrinfo'; have 'void(struct addrinfo *)' 114 | void freeaddrinfo (ai) | ^~~~~~~~~~~~ /usr/include/netdb.h:322:17: note: previous declaration of 'freeaddrinfo' with type 'void(struct addrinfo *)' 322 | void freeaddrinfo(struct addrinfo *); | ^~~~~~~~~~~~ getaddrinfo.c: In function 'freeaddrinfo': getaddrinfo.c:115:23: error: argument 'ai' doesn't match prototype 115 | struct addrinfo *ai; | ^~ /usr/include/netdb.h:322:17: error: prototype declaration 322 | void freeaddrinfo(struct addrinfo *); | ^~~~~~~~~~~~ --- multiskkserv.o --- In file included from multiskkserv.c:45: getaddrinfo.h:23:8: error: redefinition of 'struct addrinfo' 23 | struct addrinfo { | ^~~~~~~~ In file included from multiskkserv.c:32: /usr/include/netdb.h:112:8: note: originally defined here 112 | struct addrinfo { | ^~~~~~~~ getaddrinfo.h:35: warning: "AI_PASSIVE" redefined 35 | # define AI_PASSIVE 1 /* Socket address is intended for `bind'. */ | /usr/include/netdb.h:131: note: this is the location of the previous definition 131 | #define AI_PASSIVE 0x0008 /* intended for bind() + listen() */ | getaddrinfo.h:36: warning: "AI_CANONNAME" redefined 36 | # define AI_CANONNAME 2 /* Request for canonical name. */ | /usr/include/netdb.h:132: note: this is the location of the previous definition 132 | #define AI_CANONNAME 0x0010 /* return canonical version of host */ | getaddrinfo.h:37: warning: "AI_NUMERICHOST" redefined 37 | # define AI_NUMERICHOST 3 /* Don't use name resolution. */ | /usr/include/netdb.h:133: note: this is the location of the previous definition 133 | #define AI_NUMERICHOST 0x0020 /* use numeric node address string */ | getaddrinfo.h:40: warning: "EAI_BADFLAGS" redefined 40 | #define EAI_BADFLAGS -1 /* Invalid value for `ai_flags' field. */ | /usr/include/netdb.h:154: note: this is the location of the previous definition 154 | #define EAI_BADFLAGS 3 /* invalid ai_flags */ | getaddrinfo.h:41: warning: "EAI_NONAME" redefined 41 | #define EAI_NONAME -2 /* NAME or SERVICE is unknown. */ | /usr/include/netdb.h:158: note: this is the location of the previous definition 158 | #define EAI_NONAME 8 /* host/servname not known */ | getaddrinfo.h:42: warning: "EAI_AGAIN" redefined 42 | #define EAI_AGAIN -3 /* Temporary failure in name resolution. */ | /usr/include/netdb.h:153: note: this is the location of the previous definition 153 | #define EAI_AGAIN 2 /* DNS temporary failure */ | getaddrinfo.h:43: warning: "EAI_FAIL" redefined 43 | #define EAI_FAIL -4 /* Non-recoverable failure in name res. */ | /usr/include/netdb.h:155: note: this is the location of the previous definition 155 | #define EAI_FAIL 4 /* DNS non-recoverable failure */ | getaddrinfo.h:44: warning: "EAI_NODATA" redefined 44 | #define EAI_NODATA -5 /* No address associated with NAME. */ | /usr/include/netdb.h:151: note: this is the location of the previous definition 151 | #define EAI_NODATA 7 /* no address */ | getaddrinfo.h:45: warning: "EAI_FAMILY" redefined 45 | #define EAI_FAMILY -6 /* `ai_family' not supported. */ | /usr/include/netdb.h:156: note: this is the location of the previous definition 156 | #define EAI_FAMILY 5 /* ai_family not supported */ | getaddrinfo.h:46: warning: "EAI_SOCKTYPE" redefined 46 | #define EAI_SOCKTYPE -7 /* `ai_socktype' not supported. */ | /usr/include/netdb.h:160: note: this is the location of the previous definition 160 | #define EAI_SOCKTYPE 10 /* ai_socktype not supported */ | getaddrinfo.h:47: warning: "EAI_SERVICE" redefined 47 | #define EAI_SERVICE -8 /* SERVICE not supported for `ai_socktype'. */ | /usr/include/netdb.h:159: note: this is the location of the previous definition 159 | #define EAI_SERVICE 9 /* servname not supported for ai_socktype */ | getaddrinfo.h:48: warning: "EAI_ADDRFAMILY" redefined 48 | #define EAI_ADDRFAMILY -9 /* Address family for NAME not supported. */ | /usr/include/netdb.h:150: note: this is the location of the previous definition 150 | #define EAI_ADDRFAMILY 1 /* address family not supported */ | getaddrinfo.h:49: warning: "EAI_MEMORY" redefined 49 | #define EAI_MEMORY -10 /* Memory allocation failure. */ | /usr/include/netdb.h:157: note: this is the location of the previous definition 157 | #define EAI_MEMORY 6 /* memory allocation failure */ | getaddrinfo.h:50: warning: "EAI_SYSTEM" redefined 50 | #define EAI_SYSTEM -11 /* System error returned in `errno'. */ | /usr/include/netdb.h:161: note: this is the location of the previous definition 161 | #define EAI_SYSTEM 11 /* system error in errno */ | getaddrinfo.h:55: warning: "NI_NUMERICHOST" redefined 55 | #define NI_NUMERICHOST 1 /* Don't try to look up hostname. */ | /usr/include/netdb.h:168: note: this is the location of the previous definition 168 | #define NI_NUMERICHOST 0x0002 /* return numeric form of address */ | --- getaddrinfo.o --- *** [getaddrinfo.o] Error code 1 bmake[2]: stopped making "all" in /home/pbulk/build/inputmethod/multiskkserv/work/multiskkserv-20100128-ac/src --- multiskkserv-ctl.o --- In file included from multiskkserv-ctl.c:43: getaddrinfo.h:23:8: error: redefinition of 'struct addrinfo' 23 | struct addrinfo { | ^~~~~~~~ In file included from multiskkserv-ctl.c:32: /usr/include/netdb.h:112:8: note: originally defined here 112 | struct addrinfo { | ^~~~~~~~ getaddrinfo.h:35: warning: "AI_PASSIVE" redefined 35 | # define AI_PASSIVE 1 /* Socket address is intended for `bind'. */ | /usr/include/netdb.h:131: note: this is the location of the previous definition 131 | #define AI_PASSIVE 0x0008 /* intended for bind() + listen() */ | getaddrinfo.h:36: warning: "AI_CANONNAME" redefined 36 | # define AI_CANONNAME 2 /* Request for canonical name. */ | /usr/include/netdb.h:132: note: this is the location of the previous definition 132 | #define AI_CANONNAME 0x0010 /* return canonical version of host */ | getaddrinfo.h:37: warning: "AI_NUMERICHOST" redefined 37 | # define AI_NUMERICHOST 3 /* Don't use name resolution. */ | /usr/include/netdb.h:133: note: this is the location of the previous definition 133 | #define AI_NUMERICHOST 0x0020 /* use numeric node address string */ | getaddrinfo.h:40: warning: "EAI_BADFLAGS" redefined 40 | #define EAI_BADFLAGS -1 /* Invalid value for `ai_flags' field. */ | /usr/include/netdb.h:154: note: this is the location of the previous definition 154 | #define EAI_BADFLAGS 3 /* invalid ai_flags */ | getaddrinfo.h:41: warning: "EAI_NONAME" redefined 41 | #define EAI_NONAME -2 /* NAME or SERVICE is unknown. */ | /usr/include/netdb.h:158: note: this is the location of the previous definition 158 | #define EAI_NONAME 8 /* host/servname not known */ | getaddrinfo.h:42: warning: "EAI_AGAIN" redefined 42 | #define EAI_AGAIN -3 /* Temporary failure in name resolution. */ | /usr/include/netdb.h:153: note: this is the location of the previous definition 153 | #define EAI_AGAIN 2 /* DNS temporary failure */ | getaddrinfo.h:43: warning: "EAI_FAIL" redefined 43 | #define EAI_FAIL -4 /* Non-recoverable failure in name res. */ | /usr/include/netdb.h:155: note: this is the location of the previous definition 155 | #define EAI_FAIL 4 /* DNS non-recoverable failure */ | getaddrinfo.h:44: warning: "EAI_NODATA" redefined 44 | #define EAI_NODATA -5 /* No address associated with NAME. */ | /usr/include/netdb.h:151: note: this is the location of the previous definition 151 | #define EAI_NODATA 7 /* no address */ | getaddrinfo.h:45: warning: "EAI_FAMILY" redefined 45 | #define EAI_FAMILY -6 /* `ai_family' not supported. */ | /usr/include/netdb.h:156: note: this is the location of the previous definition 156 | #define EAI_FAMILY 5 /* ai_family not supported */ | getaddrinfo.h:46: warning: "EAI_SOCKTYPE" redefined 46 | #define EAI_SOCKTYPE -7 /* `ai_socktype' not supported. */ | /usr/include/netdb.h:160: note: this is the location of the previous definition 160 | #define EAI_SOCKTYPE 10 /* ai_socktype not supported */ | getaddrinfo.h:47: warning: "EAI_SERVICE" redefined 47 | #define EAI_SERVICE -8 /* SERVICE not supported for `ai_socktype'. */ | /usr/include/netdb.h:159: note: this is the location of the previous definition 159 | #define EAI_SERVICE 9 /* servname not supported for ai_socktype */ | getaddrinfo.h:48: warning: "EAI_ADDRFAMILY" redefined 48 | #define EAI_ADDRFAMILY -9 /* Address family for NAME not supported. */ | /usr/include/netdb.h:150: note: this is the location of the previous definition 150 | #define EAI_ADDRFAMILY 1 /* address family not supported */ | getaddrinfo.h:49: warning: "EAI_MEMORY" redefined 49 | #define EAI_MEMORY -10 /* Memory allocation failure. */ | /usr/include/netdb.h:157: note: this is the location of the previous definition 157 | #define EAI_MEMORY 6 /* memory allocation failure */ | getaddrinfo.h:50: warning: "EAI_SYSTEM" redefined 50 | #define EAI_SYSTEM -11 /* System error returned in `errno'. */ | /usr/include/netdb.h:161: note: this is the location of the previous definition 161 | #define EAI_SYSTEM 11 /* system error in errno */ | getaddrinfo.h:55: warning: "NI_NUMERICHOST" redefined 55 | #define NI_NUMERICHOST 1 /* Don't try to look up hostname. */ | /usr/include/netdb.h:168: note: this is the location of the previous definition 168 | #define NI_NUMERICHOST 0x0002 /* return numeric form of address */ | getaddrinfo.h:56: warning: "NI_NUMERICSERV" redefined 56 | #define NI_NUMERICSERV 2 /* Don't convert port number to name. */ | /usr/include/netdb.h:170: note: this is the location of the previous definition 170 | #define NI_NUMERICSERV 0x0008 | getaddrinfo.h:57: warning: "NI_NOFQDN" redefined 57 | #define NI_NOFQDN 4 /* Only return nodename portion. */ | /usr/include/netdb.h:167: note: this is the location of the previous definition 167 | #define NI_NOFQDN 0x0001 | getaddrinfo.h:58: warning: "NI_NAMEREQD" redefined 58 | #define NI_NAMEREQD 8 /* Don't return numeric addresses. */ | /usr/include/netdb.h:169: note: this is the location of the previous definition 169 | #define NI_NAMEREQD 0x0004 /* request DNS name */ | getaddrinfo.h:59: warning: "NI_DGRAM" redefined 59 | #define NI_DGRAM 16 /* Look up UDP service rather than TCP. */ | /usr/include/netdb.h:171: note: this is the location of the previous definition 171 | #define NI_DGRAM 0x0010 | getaddrinfo.h:64:12: error: conflicting types for 'getaddrinfo'; have 'int(const char *, const char *, const struct addrinfo *, struct addrinfo **)' 64 | extern int getaddrinfo (const char *, const char *, const struct addrinfo *, | ^~~~~~~~~~~ /usr/include/netdb.h:318:17: note: previous declaration of 'getaddrinfo' with type 'int(const char * restrict, const char * restrict, const struct addrinfo * restrict, struct addrinfo ** restrict)' 318 | int getaddrinfo(const char *_RESTRICT_KYWD, | ^~~~~~~~~~~ getaddrinfo.h:67:13: error: conflicting types for 'freeaddrinfo'; have 'void(struct addrinfo *)' 67 | extern void freeaddrinfo (struct addrinfo *ai); | ^~~~~~~~~~~~ /usr/include/netdb.h:322:17: note: previous declaration of 'freeaddrinfo' with type 'void(struct addrinfo *)' 322 | void freeaddrinfo(struct addrinfo *); | ^~~~~~~~~~~~ multiskkserv-ctl.c: In function 'socket_connect': multiskkserv-ctl.c:134:24: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration] 134 | strncpy(ipbuf, inet_ntoa(sp_v4->sin_addr), sizeof(ipbuf)); | ^~~~~~~~~ multiskkserv-ctl.c:134:24: warning: passing argument 2 of 'strncpy' makes pointer from integer without a cast [-Wint-conversion] 134 | strncpy(ipbuf, inet_ntoa(sp_v4->sin_addr), sizeof(ipbuf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/string.h:34, from ../compat.h:32, from multiskkserv-ctl.c:39: /usr/include/iso/string_iso.h:82:44: note: expected 'const char * restrict' but argument is of type 'int' 82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^ --- multiskkserv.o --- getaddrinfo.h:56: warning: "NI_NUMERICSERV" redefined 56 | #define NI_NUMERICSERV 2 /* Don't convert port number to name. */ | /usr/include/netdb.h:170: note: this is the location of the previous definition 170 | #define NI_NUMERICSERV 0x0008 | getaddrinfo.h:57: warning: "NI_NOFQDN" redefined 57 | #define NI_NOFQDN 4 /* Only return nodename portion. */ | /usr/include/netdb.h:167: note: this is the location of the previous definition 167 | #define NI_NOFQDN 0x0001 | getaddrinfo.h:58: warning: "NI_NAMEREQD" redefined 58 | #define NI_NAMEREQD 8 /* Don't return numeric addresses. */ | /usr/include/netdb.h:169: note: this is the location of the previous definition 169 | #define NI_NAMEREQD 0x0004 /* request DNS name */ | getaddrinfo.h:59: warning: "NI_DGRAM" redefined 59 | #define NI_DGRAM 16 /* Look up UDP service rather than TCP. */ | /usr/include/netdb.h:171: note: this is the location of the previous definition 171 | #define NI_DGRAM 0x0010 | getaddrinfo.h:64:12: error: conflicting types for 'getaddrinfo'; have 'int(const char *, const char *, const struct addrinfo *, struct addrinfo **)' 64 | extern int getaddrinfo (const char *, const char *, const struct addrinfo *, | ^~~~~~~~~~~ /usr/include/netdb.h:318:17: note: previous declaration of 'getaddrinfo' with type 'int(const char * restrict, const char * restrict, const struct addrinfo * restrict, struct addrinfo ** restrict)' 318 | int getaddrinfo(const char *_RESTRICT_KYWD, | ^~~~~~~~~~~ getaddrinfo.h:67:13: error: conflicting types for 'freeaddrinfo'; have 'void(struct addrinfo *)' 67 | extern void freeaddrinfo (struct addrinfo *ai); | ^~~~~~~~~~~~ /usr/include/netdb.h:322:17: note: previous declaration of 'freeaddrinfo' with type 'void(struct addrinfo *)' 322 | void freeaddrinfo(struct addrinfo *); | ^~~~~~~~~~~~ multiskkserv.c: In function 'prepare_listen': multiskkserv.c:186:24: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration] 186 | strncpy(ipbuf, inet_ntoa(sp_v4->sin_addr), sizeof(ipbuf)); | ^~~~~~~~~ multiskkserv.c:186:24: warning: passing argument 2 of 'strncpy' makes pointer from integer without a cast [-Wint-conversion] 186 | strncpy(ipbuf, inet_ntoa(sp_v4->sin_addr), sizeof(ipbuf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/string.h:34, from ../compat.h:32, from multiskkserv.c:39: /usr/include/iso/string_iso.h:82:44: note: expected 'const char * restrict' but argument is of type 'int' 82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^ multiskkserv.c: In function 'main': multiskkserv.c:619:36: warning: passing argument 1 of 'strdup' makes pointer from integer without a cast [-Wint-conversion] 619 | skkconn->peername = strdup(inet_ntoa(sp_v4->sin_addr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int /usr/include/string.h:139:21: note: expected 'const char *' but argument is of type 'int' 139 | extern char *strdup(const char *); | ^~~~~~~~~~~~ multiskkserv.c:586:11: warning: unused variable 'gaierr' [-Wunused-variable] 586 | int gaierr; | ^~~~~~ multiskkserv.c:585:12: warning: variable 'ipbuf' set but not used [-Wunused-but-set-variable] 585 | char ipbuf[INET6_ADDRSTRLEN]; | ^~~~~ --- multiskkserv-ctl.o --- *** [multiskkserv-ctl.o] Error code 1 bmake[2]: stopped making "all" in /home/pbulk/build/inputmethod/multiskkserv/work/multiskkserv-20100128-ac/src --- multiskkserv.o --- *** [multiskkserv.o] Error code 1 bmake[2]: stopped making "all" in /home/pbulk/build/inputmethod/multiskkserv/work/multiskkserv-20100128-ac/src bmake[2]: 3 errors bmake[2]: stopped making "all" in /home/pbulk/build/inputmethod/multiskkserv/work/multiskkserv-20100128-ac/src bmake[1]: stopped making "all-recursive" in /home/pbulk/build/inputmethod/multiskkserv/work/multiskkserv-20100128-ac bmake: stopped making "all" in /home/pbulk/build/inputmethod/multiskkserv/work/multiskkserv-20100128-ac *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/inputmethod/multiskkserv *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/inputmethod/multiskkserv