=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for openvmps-1.3nb2 /usr/pkg/bin/bmake all-am if cc -DHAVE_CONFIG_H -I. -I. -I. -DSYSCONFDIR="\"/usr/pkg/etc\"" -O2 -march=i586 -MT vmpsd-vmpsd.o -MD -MP -MF ".deps/vmpsd-vmpsd.Tpo" -c -o vmpsd-vmpsd.o `test -f 'vmpsd.c' || echo './'`vmpsd.c; then mv -f ".deps/vmpsd-vmpsd.Tpo" ".deps/vmpsd-vmpsd.Po"; else rm -f ".deps/vmpsd-vmpsd.Tpo"; exit 1; fi vmpsd.c:40:5: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned int)' strncpy(external_prog, optarg, 255); ^ vmpsd.c:40:5: note: please include the header or explicitly provide a declaration for 'strncpy' vmpsd.c:51:10: warning: implicitly declaring library function 'sscanf' with type 'int (const char *restrict, const char *restrict, ...)' if ( sscanf(optarg,"%x",&log_level) != 1) return 0; ^ vmpsd.c:51:10: note: please include the header or explicitly provide a declaration for 'sscanf' vmpsd.c:70:2: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' printf("\n"); ^ vmpsd.c:70:2: note: please include the header or explicitly provide a declaration for 'printf' vmpsd.c:95:2: warning: implicit declaration of function 'parse_db_file' is invalid in C99 [-Wimplicit-function-declaration] parse_db_file(db_fname); ^ vmpsd.c:107:2: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' strcat(db_fname,"/vlan.db"); ^ vmpsd.c:107:2: note: please include the header or explicitly provide a declaration for 'strcat' vmpsd.c:114:16: warning: implicit declaration of function 'daemon_start' is invalid in C99 [-Wimplicit-function-declaration] if ( !debug ) daemon_start(1); ^ vmpsd.c:117:3: warning: implicit declaration of function 'spawn_external' is invalid in C99 [-Wimplicit-function-declaration] spawn_external(); ^ vmpsd.c:127:2: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned int)' bzero( (char *) &serv_addr, sizeof(serv_addr) ); ^ vmpsd.c:127:2: note: please include the header or explicitly provide a declaration for 'bzero' 8 warnings generated. if cc -DHAVE_CONFIG_H -I. -I. -I. -DSYSCONFDIR="\"/usr/pkg/etc\"" -O2 -march=i586 -MT vmpsd-daemon.o -MD -MP -MF ".deps/vmpsd-daemon.Tpo" -c -o vmpsd-daemon.o `test -f 'daemon.c' || echo './'`daemon.c; then mv -f ".deps/vmpsd-daemon.Tpo" ".deps/vmpsd-daemon.Po"; else rm -f ".deps/vmpsd-daemon.Tpo"; exit 1; fi daemon.c:39:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] daemon_start(ignsigcld) ^~~~~~~~~~~~ daemon.c:65:13: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] childpid = fork(); ^ daemon.c:68:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(1); ^ daemon.c:68:3: note: please include the header or explicitly provide a declaration for 'exit' daemon.c:75:7: warning: implicit declaration of function 'setpgrp' is invalid in C99 [-Wimplicit-function-declaration] if ( setpgrp(0, getpid()) == -1 ) { ^ daemon.c:75:18: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] if ( setpgrp(0, getpid()) == -1 ) { ^ daemon.c:82:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ daemon.c:117:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 7 warnings generated. if cc -DHAVE_CONFIG_H -I. -I. -I. -DSYSCONFDIR="\"/usr/pkg/etc\"" -O2 -march=i586 -MT vmpsd-data.o -MD -MP -MF ".deps/vmpsd-data.Tpo" -c -o vmpsd-data.o `test -f 'data.c' || echo './'`data.c; then mv -f ".deps/vmpsd-data.Tpo" ".deps/vmpsd-data.Po"; else rm -f ".deps/vmpsd-data.Tpo"; exit 1; fi data.c:509:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ data.c:519:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ data.c:613:3: warning: implicit declaration of function 'parse_error' is invalid in C99 [-Wimplicit-function-declaration] parse_error(device); ^ 3 warnings generated. if cc -DHAVE_CONFIG_H -I. -I. -I. -DSYSCONFDIR="\"/usr/pkg/etc\"" -O2 -march=i586 -MT vmpsd-log.o -MD -MP -MF ".deps/vmpsd-log.Tpo" -c -o vmpsd-log.o `test -f 'log.c' || echo './'`log.c; then mv -f ".deps/vmpsd-log.Tpo" ".deps/vmpsd-log.Po"; else rm -f ".deps/vmpsd-log.Tpo"; exit 1; fi if cc -DHAVE_CONFIG_H -I. -I. -I. -DSYSCONFDIR="\"/usr/pkg/etc\"" -O2 -march=i586 -MT vmpsd-parser.o -MD -MP -MF ".deps/vmpsd-parser.Tpo" -c -o vmpsd-parser.o `test -f 'parser.c' || echo './'`parser.c; then mv -f ".deps/vmpsd-parser.Tpo" ".deps/vmpsd-parser.Po"; else rm -f ".deps/vmpsd-parser.Tpo"; exit 1; fi parser.c:27:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(1); ^ parser.c:27:2: note: please include the header or explicitly provide a declaration for 'exit' parser.c:74:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while ( c = get_char() ) { ~~^~~~~~~~~~~~ parser.c:74:13: note: place parentheses around the assignment to silence this warning while ( c = get_char() ) { ^ ( ) parser.c:74:13: note: use '==' to turn this assignment into an equality comparison while ( c = get_char() ) { ^ == parser.c:83:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while ( c = get_char() ) { ~~^~~~~~~~~~~~ parser.c:83:13: note: place parentheses around the assignment to silence this warning while ( c = get_char() ) { ^ ( ) parser.c:83:13: note: use '==' to turn this assignment into an equality comparison while ( c = get_char() ) { ^ == 3 warnings generated. if cc -DHAVE_CONFIG_H -I. -I. -I. -DSYSCONFDIR="\"/usr/pkg/etc\"" -O2 -march=i586 -MT vmpsd-vqp.o -MD -MP -MF ".deps/vmpsd-vqp.Tpo" -c -o vmpsd-vqp.o `test -f 'vqp.c' || echo './'`vqp.c; then mv -f ".deps/vmpsd-vqp.Tpo" ".deps/vmpsd-vqp.Po"; else rm -f ".deps/vmpsd-vqp.Tpo"; exit 1; fi vqp.c:25:71: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] n = recvfrom(sock, buf, MAX_PACKET_SIZE, 0, (struct sockaddr *)&cli, &addr_len); ^~~~~~~~~ /usr/include/sys/socket.h:632:58: note: passing argument to parameter here struct sockaddr * __restrict, socklen_t * __restrict); ^ vqp.c:43:2: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned int)' memcpy( (void *) &auxli, (void *) p, 4 ); ^ vqp.c:43:2: note: please include the header or explicitly provide a declaration for 'memcpy' vqp.c:48:2: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' strcpy(r->port, ""); ^ vqp.c:48:2: note: please include the header or explicitly provide a declaration for 'strcpy' vqp.c:51:2: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned int)' bzero((void *)r->mac, ETH_ALEN); ^ vqp.c:51:2: note: please include the header or explicitly provide a declaration for 'bzero' vqp.c:154:20: warning: implicitly declaring library function 'strlen' with type 'unsigned int (const char *)' data_len = htons(strlen(vlan_name)); ^ /usr/include/sys/endian.h:128:44: note: expanded from macro 'htons' #define htons(x) bswap16(__CAST(uint16_t, (x))) ^ /usr/include/sys/cdefs.h:577:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ /usr/include/sys/bswap.h:73:25: note: expanded from macro 'bswap16' (__builtin_constant_p((x)) ? \ ^ vqp.c:154:20: note: please include the header or explicitly provide a declaration for 'strlen' /usr/include/sys/endian.h:128:44: note: expanded from macro 'htons' #define htons(x) bswap16(__CAST(uint16_t, (x))) ^ /usr/include/sys/cdefs.h:577:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ /usr/include/sys/bswap.h:73:25: note: expanded from macro 'bswap16' (__builtin_constant_p((x)) ? \ ^ vqp.c:181:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ vqp.c:217:7: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' if ( strcmp(domain,"") && vmps_no_domain_req ) return 1; ^ vqp.c:217:7: note: please include the header or explicitly provide a declaration for 'strcmp' vqp.c:218:13: warning: implicitly declaring library function 'strcasecmp' with type 'int (const char *, const char *)' else if ( !strcasecmp(vmps_domain, domain) ) return 1; ^ vqp.c:218:13: note: please include the header or explicitly provide a declaration for 'strcasecmp' 8 warnings generated. if cc -DHAVE_CONFIG_H -I. -I. -I. -DSYSCONFDIR="\"/usr/pkg/etc\"" -O2 -march=i586 -MT vmpsd-external.o -MD -MP -MF ".deps/vmpsd-external.Tpo" -c -o vmpsd-external.o `test -f 'external.c' || echo './'`external.c; then mv -f ".deps/vmpsd-external.Tpo" ".deps/vmpsd-external.Po"; else rm -f ".deps/vmpsd-external.Tpo"; exit 1; fi external.c:28:79: warning: implicitly declaring library function 'strerror' with type 'char *(int)' vmps_log(SYSTEM|FATAL, "Cannot send TERM signal to external program (%s).", strerror(errno)); ^ external.c:28:79: note: please include the header or explicitly provide a declaration for 'strerror' external.c:29:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(1); ^ external.c:29:3: note: please include the header or explicitly provide a declaration for 'exit' external.c:116:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ external.c:182:23: warning: implicitly declaring library function 'strlen' with type 'unsigned int (const char *)' write(tocli[1], str, strlen(str)); ^ external.c:182:23: note: please include the header or explicitly provide a declaration for 'strlen' external.c:186:2: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned int)' strncpy(vlan_name,vname,VLAN_NAME_MAX); ^ external.c:186:2: note: please include the header or explicitly provide a declaration for 'strncpy' external.c:188:7: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' if ( strcmp(retcode,"ALLOW") ) { strcpy(vlan_name,""); } ^ external.c:188:7: note: please include the header or explicitly provide a declaration for 'strcmp' external.c:188:35: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' if ( strcmp(retcode,"ALLOW") ) { strcpy(vlan_name,""); } ^ external.c:188:35: note: please include the header or explicitly provide a declaration for 'strcpy' external.c:207:4: warning: implicit declaration of function 'send_response' is invalid in C99 [-Wimplicit-function-declaration] send_response(sock, VQP_RSP_DENY, r, NULL); ^ external.c:208:4: warning: implicit declaration of function 'print_action' is invalid in C99 [-Wimplicit-function-declaration] print_action(r,"DENY",vlan_name); ^ 9 warnings generated. cc -O2 -march=i586 -Wl,-R/usr/pkg/lib -o vmpsd vmpsd-vmpsd.o vmpsd-daemon.o vmpsd-data.o vmpsd-log.o vmpsd-parser.o vmpsd-vqp.o vmpsd-external.o vmpsd-daemon.o: In function `sig_child': daemon.c:(.text+0x24): undefined reference to `__wait350' vmpsd-external.o: In function `sig_child_e': external.c:(.text+0xad): undefined reference to `__wait350' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/net/openvmps/work/vmpsd *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/net/openvmps/work/vmpsd *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/openvmps *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/openvmps