+ 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/upclient-4.2.1.23nb4/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/upclient-4.2.1.23nb4/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for upclient-4.2.1.23nb4 --- solaris --- /opt/pkg/bin/bmake CC=gcc LDFLAGS='-lsocket -lnsl' OBJECTS='stats-sol.c network.c base64.c options.c' CFLAGS='-DPKG_SYSCONFDIR="\"/etc/opt/pkg\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DPLATFORM_SOLARIS -DCONFIGFILE=\"upclient.conf\"' upclient --- upclient --- gcc -DPKG_SYSCONFDIR="\"/etc/opt/pkg\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DPLATFORM_SOLARIS -DCONFIGFILE=\"upclient.conf\" -lsocket -lnsl stats-sol.c network.c base64.c options.c upclient.c -o upclient stats-sol.c: In function 'getstats': stats-sol.c:36:5: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 36 | exit(1); | ^~~~ stats-sol.c:22:1: note: include '' or provide a declaration of 'exit' 21 | #include +++ |+#include 22 | stats-sol.c:36:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 36 | exit(1); | ^~~~ stats-sol.c:36:5: note: include '' or provide a declaration of 'exit' stats-sol.c:41:8: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 41 | if(read(fd, &ut, sizeof(ut)) < 0) | ^~~~ | fread stats-sol.c:47:3: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 47 | close(fd); | ^~~~~ | pclose stats-sol.c:51:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 51 | exit (1); | ^~~~ stats-sol.c:51:5: note: include '' or provide a declaration of 'exit' network.c: In function 'socket_write': network.c:28:17: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 28 | write_ret = write(fd, buf+nwritten, nbytes-nwritten); | ^~~~~ | fwrite network.c: In function 'socket_read': network.c:46:16: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 46 | read_ret = read(fd, buf+nread, nbytes-nread); | ^~~~ | fread base64.c: In function 'base64_encode': base64.c:32:16: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 32 | int length = strlen((char *)string); | ^~~~~~ base64.c:14:1: note: include '' or provide a declaration of 'strlen' 13 | #include +++ |+#include 14 | #endif base64.c:32:16: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 32 | int length = strlen((char *)string); | ^~~~~~ base64.c:32:16: note: include '' or provide a declaration of 'strlen' base64.c:35:44: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 35 | unsigned char *result = (unsigned char *)malloc(((length + 3 - length % 3) * 4 / 3 + 1) * sizeof(char)); | ^~~~~~ base64.c:14:1: note: include '' or provide a declaration of 'malloc' 13 | #include +++ |+#include 14 | #endif base64.c:35:44: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 35 | unsigned char *result = (unsigned char *)malloc(((length + 3 - length % 3) * 4 / 3 + 1) * sizeof(char)); | ^~~~~~ base64.c:35:44: note: include '' or provide a declaration of 'malloc' base64.c:41:5: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 41 | exit(1); | ^~~~ base64.c:41:5: note: include '' or provide a declaration of 'exit' base64.c:41:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] base64.c:41:5: note: include '' or provide a declaration of 'exit' options.c: In function 'process_option': options.c:75:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 75 | if(strcmp(key, "AuthKey") == 0) { | ^~~~~~ options.c:12:1: note: include '' or provide a declaration of 'strcmp' 11 | #include "stdio.h" +++ |+#include 12 | options.c:76:8: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 76 | if(strlen(value) == AUTHKEY_REQUIRED_LEN) { | ^~~~~~ options.c:76:8: note: include '' or provide a declaration of 'strlen' options.c:76:8: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] options.c:76:8: note: include '' or provide a declaration of 'strlen' options.c:77:7: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 77 | strcpy(cfg_authkey, value); | ^~~~~~ options.c:77:7: note: include '' or provide a declaration of 'strcpy' options.c:77:7: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] options.c:77:7: note: include '' or provide a declaration of 'strcpy' options.c:80:7: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 80 | exit(-1); | ^~~~ options.c:12:1: note: include '' or provide a declaration of 'exit' 11 | #include "stdio.h" +++ |+#include 12 | options.c:80:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 80 | exit(-1); | ^~~~ options.c:80:7: note: include '' or provide a declaration of 'exit' options.c:84:20: error: implicit declaration of function 'atol' [-Wimplicit-function-declaration] 84 | cfg_interval = atol(value); | ^~~~ options.c:91:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 91 | exit(-1); | ^~~~ options.c:91:7: note: include '' or provide a declaration of 'exit' options.c:99:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 99 | strcpy(cfg_upserver, value); | ^~~~~~ options.c:99:5: note: include '' or provide a declaration of 'strcpy' options.c:102:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 102 | strcpy(cfg_proxyserver, value); | ^~~~~~ options.c:102:5: note: include '' or provide a declaration of 'strcpy' options.c:109:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 109 | exit(-1); | ^~~~ options.c:109:7: note: include '' or provide a declaration of 'exit' options.c:114:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 114 | strcpy(cfg_proxyuser, value); | ^~~~~~ options.c:114:5: note: include '' or provide a declaration of 'strcpy' options.c:118:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 118 | strcpy(cfg_proxypass, value); | ^~~~~~ options.c:118:5: note: include '' or provide a declaration of 'strcpy' options.c:122:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 122 | strcpy(cfg_pidfile, value); | ^~~~~~ options.c:122:5: note: include '' or provide a declaration of 'strcpy' options.c:147:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 147 | exit(-1); | ^~~~ options.c:147:7: note: include '' or provide a declaration of 'exit' options.c: At top level: options.c:161:12: warning: conflicting types for built-in function 'isblank'; expected 'int(int)' [-Wbuiltin-declaration-mismatch] 161 | static int isblank(const char chr) { | ^~~~~~~ options.c:12:1: note: 'isblank' is declared in header '' 11 | #include "stdio.h" +++ |+#include 12 | options.c: In function 'isvalideol': options.c:198:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 198 | if(line[pos] == '#' && line[strlen(line)-1] == '\n') | ^~~~~~ options.c:198:31: note: include '' or provide a declaration of 'strlen' options.c: In function 'getkey': options.c:212:9: error: implicit declaration of function 'isalnum' [-Wimplicit-function-declaration] 212 | while(isalnum(line[pos]) && i < MAX_KEY_LEN) { | ^~~~~~~ options.c:212:9: note: include '' or provide a declaration of 'isalnum' options.c: In function 'getval': options.c:243:9: error: implicit declaration of function 'isgraph' [-Wimplicit-function-declaration] 243 | while(isgraph(line[pos]) && line[pos] != '#' && i < MAX_VAL_LEN) { | ^~~~~~~ options.c:243:9: note: include '' or provide a declaration of 'isgraph' options.c: In function 'read_config': options.c:300:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 300 | exit(-1); | ^~~~ options.c:300:7: note: include '' or provide a declaration of 'exit' options.c:310:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 310 | if(line[strlen(line)-1] != '\n') { | ^~~~~~ options.c:310:13: note: include '' or provide a declaration of 'strlen' options.c:312:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 312 | exit(-1); | ^~~~ options.c:312:7: note: include '' or provide a declaration of 'exit' upclient.c: In function 'main': upclient.c:319:3: error: implicit declaration of function 'read_config'; did you mean 'readconfig'? [-Wimplicit-function-declaration] 319 | read_config(); | ^~~~~~~~~~~ | readconfig *** [upclient] Error code 1 bmake[1]: stopped making "upclient" in /home/pbulk/build/net/upclient/work/upclient-4.2.1.23/src bmake[1]: 1 error bmake[1]: stopped making "upclient" in /home/pbulk/build/net/upclient/work/upclient-4.2.1.23/src *** [solaris] Error code 2 bmake: stopped making "solaris" in /home/pbulk/build/net/upclient/work/upclient-4.2.1.23/src bmake: 1 error bmake: stopped making "solaris" in /home/pbulk/build/net/upclient/work/upclient-4.2.1.23/src *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/upclient *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/upclient