+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent LUA_VERSION_REQD=54 WRKLOG=/tmp/bulklog/screws-0.56nb29/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent LUA_VERSION_REQD=54 WRKLOG=/tmp/bulklog/screws-0.56nb29/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for screws-0.56nb29
ETCPREFIX?=${PREFIX}
CFGFILE?=${ETCPREFIX}/etc/screws.conf
LOGFILE?=${PREFIX}/var/log/access.log
ERRFILE?=${PREFIX}/var/log/error.log
EXEC?=${PREFIX}/share/screws/exec/main.pl
DIP?=${PREFIX}/share/screws/hsml-inc/
DEP?=/tmp
EXEC_PATH=${PREFIX}/libexec/screws/
MODULE_PATH=${PREFIX}/lib/screws/
DEBUG?=1
POLL?=1
IPV6?=1
LOGS?=1
DLOPEN?=1
SSL?=1
INCORE_LUA?=0
DEFS+= -DPATH_PYTHON=\"${PYTHON}\" -DPATH_SH=\"${SH}\"
DEFS+= -DPATH_LUA=\"${LUA}\" -DPATH_JAVA=\"${JAVA}\"
DEFS+= -DPATH_CSHARP=\"${CSHARP}\"
DEFS+= -DDIP=\"${DIP}\" -DDEP=\"${DEP}\"
make[1]: Entering directory '/home/pbulk/build/www/screws/work/screws-0.56/src/Server'
[O] Options
* USE_POLL
* USE_DEBUG
* USE_SSL
* USE_DLOPEN
[screwsd] Accept.c
Accept.c: In function 'Accept':
Accept.c:67:17: warning: implicit declaration of function 'screws_logs_error' [-Wimplicit-function-declaration]
67 | screws_logs_error(n,ERROR_MAXTHR,"");
| ^~~~~~~~~~~~~~~~~
Accept.c:106:19: warning: implicit declaration of function 'SslShowCertificates' [-Wimplicit-function-declaration]
106 | SslShowCertificates(ssl);
| ^~~~~~~~~~~~~~~~~~~
Accept.c:128:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
128 | sock=(int)ssl;
| ^
Accept.c:137:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
137 | if ((int)b>ERROR_NULL && (int)bERROR_NULL && (int)b0) && ((int)b0) && ((int)b=0))
| ^
Accept.c:190:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
190 | if ( ((int)b=0))
| ^
Accept.c:193:17: warning: implicit declaration of function 'screws_socket_close' [-Wimplicit-function-declaration]
193 | screws_socket_close(s);
| ^~~~~~~~~~~~~~~~~~~
Accept.c:219:17: warning: implicit declaration of function 'screws_heads_parse' [-Wimplicit-function-declaration]
219 | screws_heads_parse((int)ssl,b,head,nheads);
| ^~~~~~~~~~~~~~~~~~
Accept.c:219:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
219 | screws_heads_parse((int)ssl,b,head,nheads);
| ^
Accept.c:234:9: warning: implicit declaration of function 'screws_IO' [-Wimplicit-function-declaration]
234 | screws_IO(sock,n,head);
| ^~~~~~~~~
[screwsd] Args.c
Args.c: In function 'freedup':
Args.c:22:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
22 | return (int)dst;
| ^
[screwsd] Config.c
[screwsd] Engine.c
Config.c: In function 'conf_parse_key':
Config.c:670:36: warning: implicit declaration of function 'screws_module_add'; did you mean 'CONF_module_add'? [-Wimplicit-function-declaration]
670 | if (Svr.strict & ! screws_module_add(b[0]) )
| ^~~~~~~~~~~~~~~~~
| CONF_module_add
Config.c:684:23: warning: implicit declaration of function 'screws_module_option' [-Wimplicit-function-declaration]
684 | if (! screws_module_option(b[0],b[1]) )
| ^~~~~~~~~~~~~~~~~~~~
Config.c: In function 'ReadConfig':
Config.c:742:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
742 | fgets(buf[0],BUFSIZE,f);
| ^~~~~~~~~~~~~~~~~~~~~~~
Engine.c: In function 'launchListen':
Engine.c:155:24: warning: implicit declaration of function 'screws_socket_listen' [-Wimplicit-function-declaration]
155 | Svr.Lis[n].s = screws_socket_listen(
| ^~~~~~~~~~~~~~~~~~~~
Engine.c:168:14: warning: implicit declaration of function 'screws_logs_init' [-Wimplicit-function-declaration]
168 | ok = screws_logs_init(n); // TODO catch FALSE!
| ^~~~~~~~~~~~~~~~
Engine.c:175:9: warning: implicit declaration of function 'screws_ssl_init' [-Wimplicit-function-declaration]
175 | screws_ssl_init(n); // TODO catch FALSE!
| ^~~~~~~~~~~~~~~
Engine.c:177:9: warning: implicit declaration of function 'setParentEnv' [-Wimplicit-function-declaration]
177 | setParentEnv(n);
| ^~~~~~~~~~~~
[screwsd] Env.c
[screwsd] Error.c
Error.c: In function 'Error':
Error.c:53:25: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
53 | free(cwd);
| ^~~~
Error.c:8:1: note: include '' or provide a declaration of 'free'
7 | #include "Error.h"
+++ |+#include
8 |
Error.c:53:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
53 | free(cwd);
| ^~~~
Error.c:53:25: note: include '' or provide a declaration of 'free'
[screwsd] Fmutex.c
Env.c: In function 'setEnv':
Env.c:324:14: warning: implicit declaration of function 'execModule'; did you mean 'execle'? [-Wimplicit-function-declaration]
324 | if ( execModule(MOD_ENV) ) return;
| ^~~~~~~~~~
| execle
[screwsd] Logs.c
Logs.c: In function 'screws_logs_access':
Logs.c:80:14: warning: implicit declaration of function 'execModule'; did you mean 'execle'? [-Wimplicit-function-declaration]
80 | if ( execModule(MOD_LOGS) ) return 0;
| ^~~~~~~~~~
| execle
Logs.c:215:9: warning: implicit declaration of function 'screws_logs_write'; did you mean 'screws_logs_init'? [-Wimplicit-function-declaration]
215 | screws_logs_write( Svr.Lis[n].S[_LOGFILE], b);
| ^~~~~~~~~~~~~~~~~
| screws_logs_init
Logs.c: In function 'screws_logs_write':
Logs.c:289:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
289 | write(fd,msg,strlen(msg));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[screwsd] Signal.c
[screwsd] Ssl.c
Signal.c: In function 'catchTimeout':
Signal.c:40:1: warning: type of 'type' defaults to 'int' [-Wimplicit-int]
40 | catchTimeout(s,time,type)
| ^~~~~~~~~~~~
Signal.c: In function 'catchSignals':
Signal.c:95:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
95 | ret|=(int)( signal(SIGINT,(void *)my_SIGINT ) );
| ^
Signal.c:98:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
98 | ret|=(int)( signal(SIGPIPE,SIG_IGN) );
| ^
[screwsd] Modules.c
Ssl.c: In function 'SslInit':
Ssl.c:86:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
86 | sm=SSLv23_server_method();
| ^
Ssl.c:89:17: warning: 'TLSv1_server_method' is deprecated: Since OpenSSL 1.1.0 [-Wdeprecated-declarations]
89 | sm=TLSv1_server_method();
| ^~
In file included from main.h:45,
from Ssl.h:4,
from Ssl.c:6:
/home/pbulk/build/www/screws/work/.buildlink/include/openssl/ssl.h:2019:50: note: declared here
2019 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_server_method(void);
| ^~~~~~~~~~~~~~~~~~~
Ssl.c:89:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
89 | sm=TLSv1_server_method();
| ^
[screwsd] Request.c
[screwsd] main.c
Request.c: In function 'doExec':
Request.c:39:15: warning: implicit declaration of function 'execModule'; did you mean 'execle'? [-Wimplicit-function-declaration]
39 | if (! execModule(MOD_EXEC) )
| ^~~~~~~~~~
| execle
Request.c: At top level:
Request.c:109:1: warning: return type defaults to 'int' [-Wimplicit-int]
109 | printExecveFailed(n)
| ^~~~~~~~~~~~~~~~~
main.c: In function 'main':
main.c:132:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
132 | exit((int)NULL);
| ^
Request.c: In function 'readRequest':
Request.c:158:21: warning: implicit declaration of function 'screws_socket_recv' [-Wimplicit-function-declaration]
158 | ret=screws_socket_recv(s,b+i,1);
| ^~~~~~~~~~~~~~~~~~
Request.c: In function 'doExec':
Request.c:66:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
66 | fread(buf,2,1,fd);
| ^~~~~~~~~~~~~~~~~
Request.c: In function 'printExecveFailed':
Request.c:113:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result]
113 | getcwd(buf,200);
| ^~~~~~~~~~~~~~~
[screwsd] Headers.c
[screwsd] IO.c
Headers.c: In function 'screws_heads_parse':
Headers.c:159:25: warning: implicit declaration of function 'screws_socket_recv' [-Wimplicit-function-declaration]
159 | screws_socket_recv(s,content,clength);
| ^~~~~~~~~~~~~~~~~~
Headers.c:223:38: warning: implicit declaration of function 'custom_memmem' [-Wimplicit-function-declaration]
223 | printf("FOUND(%s)\n",custom_memmem(begin,strlen(begin),token,strlen(token)));
| ^~~~~~~~~~~~~
[screwsd] IO_direct.c
IO.c: In function 'screws_IO':
IO.c:20:17: warning: implicit declaration of function 'screws_logs_access' [-Wimplicit-function-declaration]
20 | screws_logs_access(n);
| ^~~~~~~~~~~~~~~~~~
IO.c:21:17: warning: implicit declaration of function 'IO_direct' [-Wimplicit-function-declaration]
21 | IO_direct(s,n,head);
| ^~~~~~~~~
IO.c:37:50: warning: implicit declaration of function 'setChildOptions' [-Wimplicit-function-declaration]
37 | if (! Error( Svr.Lis[n].name,setChildOptions(n) ) )
| ^~~~~~~~~~~~~~~
IO.c:50:33: warning: implicit declaration of function 'doExec' [-Wimplicit-function-declaration]
50 | doExec(s,n,head);
| ^~~~~~
IO.c:64:25: warning: implicit declaration of function 'IO_poll'; did you mean 'ppoll'? [-Wimplicit-function-declaration]
64 | IO_poll(s,f_in[1],f_out[0],f_err[0]);
| ^~~~~~~
| ppoll
IO.c:68:25: warning: implicit declaration of function 'IO_buffer'; did you mean 'BIO_f_buffer'? [-Wimplicit-function-declaration]
68 | IO_buffer(n,s,f_out[0]);
| ^~~~~~~~~
| BIO_f_buffer
IO.c:71:25: warning: implicit declaration of function 'IO_select'; did you mean 'pselect'? [-Wimplicit-function-declaration]
71 | IO_select(n,s,f_out[0]);
| ^~~~~~~~~
| pselect
IO.c:25:4: warning: ignoring return value of 'pipe' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | pipe(f_in);
| ^~~~~~~~~~
IO.c:26:9: warning: ignoring return value of 'pipe' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | pipe(f_out);
| ^~~~~~~~~~~
IO.c:27:9: warning: ignoring return value of 'pipe' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | pipe(f_err);
| ^~~~~~~~~~~
IO.c:52:33: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | write(f_out[1],"Internal error\n",15);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[screwsd] IO_buffer.c
IO_direct.c: In function 'IO_direct':
IO_direct.c:23:9: warning: implicit declaration of function 'doExec' [-Wimplicit-function-declaration]
23 | doExec(s,n,head);
| ^~~~~~
[screwsd] IO_poll.c
IO_buffer.c: In function 'IO_buffer':
IO_buffer.c:49:31: warning: passing argument 2 of 'screws_send' makes integer from pointer without a cast [-Wint-conversion]
49 | screws_send(s,buf,1);
| ^~~
| |
| char *
IO_buffer.c:10:28: note: expected 'int' but argument is of type 'char *'
10 | bool screws_send(int s,int b, char *i);
| ~~~~^
IO_buffer.c:49:35: warning: passing argument 3 of 'screws_send' makes pointer from integer without a cast [-Wint-conversion]
49 | screws_send(s,buf,1);
| ^
| |
| int
IO_buffer.c:10:37: note: expected 'char *' but argument is of type 'int'
10 | bool screws_send(int s,int b, char *i);
| ~~~~~~^
[screwsd] IO_select.c
IO_poll.c: In function 'IO_poll':
IO_poll.c:58:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
58 | SSL_read((SSL *)pfd[0].fd, b, tcpwin);
| ^
IO_poll.c:78:25: warning: implicit declaration of function 'setHTTPCode' [-Wimplicit-function-declaration]
78 | setHTTPCode(b,j);
| ^~~~~~~~~~~
IO_poll.c:79:30: warning: implicit declaration of function 'screws_send' [-Wimplicit-function-declaration]
79 | if (!screws_send(s,b,j))
| ^~~~~~~~~~~
IO_poll.c:63:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
63 | write(in,b,nb);
| ^~~~~~~~~~~~~~
IO_poll.c:88:25: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
88 | read(pfd[2].fd, bff,1);
| ^~~~~~~~~~~~~~~~~~~~~~
IO_select.c: In function 'IO_select':
IO_select.c:61:33: warning: implicit declaration of function 'setHTTPCode' [-Wimplicit-function-declaration]
61 | setHTTPCode(buf,nb);
| ^~~~~~~~~~~
[screwsd] Socket.c
IO_select.c:62:33: warning: implicit declaration of function 'screws_send' [-Wimplicit-function-declaration]
62 | screws_send(in,buf,nb);
| ^~~~~~~~~~~
Socket.c: In function 'screws_send':
Socket.c:104:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
104 | ret=SSL_write((SSL*)s,b,i);
| ^
Socket.c: In function 'screws_socket_recv':
Socket.c:136:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
136 | ret=SSL_read((SSL*)s,buf,len);
| ^
[L] Linking...
/bin/ld: Ssl.o: undefined reference to symbol 'OPENSSL_init_crypto@@OPENSSL_3.0.0'
/bin/ld: /usr/pkg/lib/libcrypto.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:28: all] Error 1
make[1]: Leaving directory '/home/pbulk/build/www/screws/work/screws-0.56/src/Server'
/bin/sh: line 3: cd: src/Hsml: No such file or directory
/bin/sh: line 3: cd: src/Utils: No such file or directory
/bin/sh: line 3: cd: src/Modules: No such file or directory
Build is done
=> Creating /home/pbulk/build/www/screws/work/.rc.d/screws