=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for upclient-4.2.1.23nb4 /usr/pkg/bin/bmake LDFLAGS='-Wl,-R/usr/pkg/lib -lkvm' OBJECTS='stats-bsd.c network.c base64.c options.c' CFLAGS='-O2 -march=i586 -DPKG_SYSCONFDIR="\"/usr/pkg/etc\"" -DPLATFORM_BSD -DCONFIGFILE=\"upclient.conf\"' upclient cc -O2 -march=i586 -DPKG_SYSCONFDIR="\"/usr/pkg/etc\"" -DPLATFORM_BSD -DCONFIGFILE=\"upclient.conf\" -Wl,-R/usr/pkg/lib -lkvm stats-bsd.c network.c base64.c options.c upclient.c -o upclient stats-bsd.c:55:5: warning: implicit declaration of function 'getloadavg' is invalid in C99 [-Wimplicit-function-declaration] getloadavg(loadavgs, 3); ^ stats-bsd.c:78:5: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned int)' strncpy(os, uts.sysname, OS_SIZE - 1); ^ stats-bsd.c:78:5: note: please include the header or explicitly provide a declaration for 'strncpy' stats-bsd.c:126:7: warning: implicit declaration of function 'setgid' is invalid in C99 [-Wimplicit-function-declaration] setgid(getgid()); ^ stats-bsd.c:126:14: warning: implicit declaration of function 'getgid' is invalid in C99 [-Wimplicit-function-declaration] setgid(getgid()); ^ stats-bsd.c:131:9: warning: implicit declaration of function 'warn' is invalid in C99 [-Wimplicit-function-declaration] warn("kvm_openfiles: %s",errbuf); ^ stats-bsd.c:137:18: error: use of undeclared identifier 'CPUSTATES' long ctime[CPUSTATES]; ^ stats-bsd.c:138:25: error: use of undeclared identifier 'CPUSTATES' static long stime[CPUSTATES]; ^ stats-bsd.c:147:11: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] sleep(1); /* to avoid the initial 0 idle value */ ^ stats-bsd.c:156:30: error: use of undeclared identifier 'CPUSTATES' for(state = 0; state or explicitly provide a declaration for 'strlen' base64.c:35:44: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned int)' unsigned char *result = (unsigned char *)malloc(((length + 3 - length % 3) * 4 / 3 + 1) * sizeof(char)); ^ base64.c:35:44: note: please include the header or explicitly provide a declaration for 'malloc' base64.c:41:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(1); ^ base64.c:41:5: note: please include the header or explicitly provide a declaration for 'exit' 3 warnings generated. options.c:75:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' if(strcmp(key, "AuthKey") == 0) { ^ options.c:75:6: note: please include the header or explicitly provide a declaration for 'strcmp' options.c:76:8: warning: implicitly declaring library function 'strlen' with type 'unsigned int (const char *)' if(strlen(value) == AUTHKEY_REQUIRED_LEN) { ^ options.c:76:8: note: please include the header or explicitly provide a declaration for 'strlen' options.c:77:7: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' strcpy(cfg_authkey, value); ^ options.c:77:7: note: please include the header or explicitly provide a declaration for 'strcpy' options.c:80:7: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(-1); ^ options.c:80:7: note: please include the header or explicitly provide a declaration for 'exit' options.c:84:20: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration] cfg_interval = atol(value); ^ options.c:170:9: warning: implicit declaration of function 'isblank' is invalid in C99 [-Wimplicit-function-declaration] while(isblank(line[pos])) ^ options.c:212:9: warning: implicit declaration of function 'isalnum' is invalid in C99 [-Wimplicit-function-declaration] while(isalnum(line[pos]) && i < MAX_KEY_LEN) { ^ options.c:243:9: warning: implicit declaration of function 'isgraph' is invalid in C99 [-Wimplicit-function-declaration] while(isgraph(line[pos]) && line[pos] != '#' && i < MAX_VAL_LEN) { ^ 8 warnings generated. upclient.c:165:24: warning: passing 'char [128]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s2 = base64_encode(auth); ^~~~ ./base64.h:10:58: note: passing argument to parameter here extern unsigned char *base64_encode(const unsigned char *); ^ upclient.c:165:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s2 = base64_encode(auth); ^ ~~~~~~~~~~~~~~~~~~~ upclient.c:319:3: warning: implicit declaration of function 'read_config' is invalid in C99 [-Wimplicit-function-declaration] read_config(); ^ 3 warnings generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/net/upclient/work/upclient-4.2.1.23/src *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/net/upclient/work/upclient-4.2.1.23/src *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/upclient *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/upclient