=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/www/screws", "all", "LUA_VERSION_REQD=54", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for screws-0.56nb29 gmake[1]: Entering directory '/var/tmp/work/www/screws/work/screws-0.56/src/Server' 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}\" [O] Options * USE_POLL * USE_DEBUG * USE_SSL [screwsd] Accept.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from Accept.c:6: In file included from ./Accept.h:4: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ Accept.c:18:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | custom_memmem(buf,len1,str,len2) | ^ Accept.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | Accept(n) | ^ Accept.c:67:3: warning: call to undeclared function 'screws_logs_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 67 | screws_logs_error(n,ERROR_MAXTHR,""); | ^ Accept.c:73:36: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 73 | s=accept(l,(struct sockaddr *)&sa,&sas); | ^~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:708:73: note: passing argument to parameter here 708 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) | ^ Accept.c:106:5: warning: call to undeclared function 'SslShowCertificates'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 106 | SslShowCertificates(ssl); | ^ Accept.c:128:8: warning: cast to smaller integer type 'int' from 'SSL *' (aka 'struct ssl_st *') [-Wpointer-to-int-cast] 128 | sock=(int)ssl; | ^~~~~~~~ Accept.c:135:26: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] 135 | b = readRequest(sock, &nheads); | ^~~~~~~ ./Request.h:7:24: note: passing argument to parameter 'heads' here 7 | readRequest(int s,int *heads); | ^ Accept.c:137:8: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] 137 | if ((int)b>ERROR_NULL && (int)bERROR_NULL && (int)b0) && ((int)b0) && ((int)b=0)) | ^~~~~~ Accept.c:190:34: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] 190 | if ( ((int)b=0)) | ^~~~~~ Accept.c:192:3: warning: call to undeclared function 'screws_logs_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 192 | screws_logs_error(n,b,""); | ^ Accept.c:193:3: warning: call to undeclared function 'screws_socket_close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 193 | screws_socket_close(s); | ^ Accept.c:210:3: warning: call to undeclared function 'screws_logs_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 210 | screws_logs_error(n,ERROR_MALLOC,""); | ^ Accept.c:219:3: warning: call to undeclared function 'screws_heads_parse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | screws_heads_parse((int)ssl,b,head,nheads); | ^ Accept.c:219:22: warning: cast to smaller integer type 'int' from 'SSL *' (aka 'struct ssl_st *') [-Wpointer-to-int-cast] 219 | screws_heads_parse((int)ssl,b,head,nheads); | ^~~~~~~~ Accept.c:226:46: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 226 | getsockopt(s,SOL_SOCKET, SO_SNDBUF, &tcpwin,&sas); | ^~~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:716:76: note: passing argument to parameter here 716 | int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); | ^ Accept.c:234:2: warning: call to undeclared function 'screws_IO'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 234 | screws_IO(sock,n,head); | ^ Accept.c:248:2: warning: call to undeclared function 'screws_socket_close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 248 | screws_socket_close(s); | ^ 23 warnings generated. [screwsd] Args.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from Args.c:6: In file included from ./Args.h:4: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ Args.c:13:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | freedup(dst,src) | ^ Args.c:22:10: warning: cast to smaller integer type 'int' from 'char **' [-Wpointer-to-int-cast] 22 | return (int)dst; | ^~~~~~~~ Args.c:27:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | showUsage(ret) | ^ Args.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | resetArgs(progname) | ^ Args.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | haveOneArg(i,argc,opt) | ^ Args.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | getArgs(argc,argv) | ^ 7 warnings generated. [screwsd] Config.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from Config.c:7: In file included from ./Config.h:1: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ Config.c:24:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | do_whitespace(buf) | ^ Config.c:42:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | get_int(str,line,u,id) | ^ Config.c:45:7: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 45 | bool u; /* unsigned? */ | ^ ./Config.h:12:28: note: previous declaration is here 12 | int get_int(char *,int,bool,int); | ^ Config.c:106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | set_listen_val(var,ptr,val,id) | ^ Config.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | set_listen_str(var,ptr,str) | ^ Config.c:243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | get_ptr_by_name(name,line) | ^ Config.c:272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | conf_check_args(b,n) | ^ Config.c:315:37: warning: too few arguments in call to 'set_listen_val' 313 | if (set_listen_val(Kons, | ~~~~~~~~~~~~~~ 314 | get_ptr_by_name(b[0],Line), 315 | get_int(b[1],Line,u,Narg)) ) | ^ Config.c:292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | set_value(buf,Narg,Kons,Line,u) | ^ Config.c:670:22: warning: call to undeclared function 'screws_module_add'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 670 | if (Svr.strict & ! screws_module_add(b[0]) ) | ^ Config.c:684:9: warning: call to undeclared function 'screws_module_option'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 684 | if (! screws_module_option(b[0],b[1]) ) | ^ Config.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | conf_parse_key(line,buf,key) | ^ Config.c:717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | ReadConfig(file,reset) | ^ Config.c:743:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 743 | if (p=strchr(buf[0],'#')) | ~^~~~~~~~~~~~~~~~~~~ Config.c:743:8: note: place parentheses around the assignment to silence this warning 743 | if (p=strchr(buf[0],'#')) | ^ | ( ) Config.c:743:8: note: use '==' to turn this assignment into an equality comparison 743 | if (p=strchr(buf[0],'#')) | ^ | == Config.c:753:29: warning: incompatible pointer types passing 'char[2][512]' to parameter of type 'char *' [-Wincompatible-pointer-types] 753 | err=conf_parse_key(line,buf,i); | ^~~ 16 warnings generated. [screwsd] Engine.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from Engine.c:6: In file included from ./Engine.h:4: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ Engine.c:15:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | setProcPrio(n) | ^ Engine.c:23:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | setProcLimi(cpu,mem) | ^ Engine.c:45:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | setProcPerm(uid,euid,gid,egid) | ^ Engine.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | setProcDirs(dir,root) | ^ Engine.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | setProcOptions(n) | ^ Engine.c:95:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | setChildOptions(n) | ^ Engine.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | launchListen(n) | ^ Engine.c:139:24: warning: format string contains '\0' within the string body [-Wformat] 139 | sprintf(av[0],"[%d] %s\0",n,Svr.Lis[n].name); | ~~~~~~~~^~~ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ Engine.c:151:42: warning: passing arguments to 'catchSignals' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | if ( Error(Svr.Lis[n].name, catchSignals(WHO_CHILDREN)) ) | ^ Engine.c:155:17: warning: call to undeclared function 'screws_socket_listen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 155 | Svr.Lis[n].s = screws_socket_listen( | ^ Engine.c:168:7: warning: call to undeclared function 'screws_logs_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 168 | ok = screws_logs_init(n); // TODO catch FALSE! | ^ Engine.c:175:2: warning: call to undeclared function 'screws_ssl_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 175 | screws_ssl_init(n); // TODO catch FALSE! | ^ Engine.c:177:2: warning: call to undeclared function 'setParentEnv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 177 | setParentEnv(n); | ^ 14 warnings generated. [screwsd] Env.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from Env.c:9: In file included from ./Env.h:5: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ Env.c:130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | setEnv(n,sa,win) | ^ Env.c:324:7: warning: call to undeclared function 'execModule'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 324 | if ( execModule(MOD_ENV) ) return; | ^ 3 warnings generated. [screwsd] Error.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] Error.c:42:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | Error(str,err) | ^ Error.c:53:4: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 53 | free(cwd); | ^ Error.c:53:4: note: include the header or explicitly provide a declaration for 'free' 2 warnings generated. [screwsd] Fmutex.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from Fmutex.c:7: In file included from ./Fmutex.h:3: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ Fmutex.c:12:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | fmutex_init(file) | ^ Fmutex.c:36:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | fmutex_lock(file) | ^ Fmutex.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | fmutex_unlock(file,mode) | ^ 4 warnings generated. [screwsd] Logs.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from Logs.c:24: In file included from ./Logs.h:8: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ Logs.c:80:7: warning: call to undeclared function 'execModule'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 80 | if ( execModule(MOD_LOGS) ) return 0; | ^ Logs.c:165:28: warning: format specifies type 'unsigned int' but the argument has type 'time_t' (aka 'long') [-Wformat] 165 | l=sprintf(sb,"0x%.12x",time(0)); | ~~~~~ ^~~~~~~ | %.12lx /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ Logs.c:204:48: warning: data argument not used by format string [-Wformat-extra-args] 204 | printf("[?] Unknown percentage '%%c' :(\n",str[i2]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ Logs.c:215:2: warning: call to undeclared function 'screws_logs_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 215 | screws_logs_write( Svr.Lis[n].S[_LOGFILE], b); | ^ Logs.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | screws_logs_access(n) | ^ Logs.c:232:31: warning: format specifies type 'unsigned int' but the argument has type 'time_t' (aka 'long') [-Wformat] 232 | sprintf(str,"0x%x - %s %s\n",time(0),SCREWS_errlist[err],msg); | ~~ ^~~~~~~ | %lx /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ Logs.c:232:59: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 232 | sprintf(str,"0x%x - %s %s\n",time(0),SCREWS_errlist[err],msg); | ~~ ^~~ | %d /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ Logs.c:234:2: warning: call to undeclared function 'screws_logs_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 234 | screws_logs_write( Svr.Lis[n].S[_ERRFILE], str ); | ^ Logs.c:223:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | screws_logs_error(n,err,msg) | ^ Logs.c:250:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 250 | syslog(LOG_ERR,msg); | ^~~ Logs.c:250:18: note: treat the string as an argument to avoid this 250 | syslog(LOG_ERR,msg); | ^ | "%s", Logs.c:284:39: warning: incompatible pointer to integer conversion passing 'char[1]' to parameter of type 'int' [-Wint-conversion] 284 | screws_logs_error(-1,ERROR_OPENLOG,""); | ^~ Logs.c:241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | screws_logs_write(file,msg) | ^ Logs.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | logSignal(status) | ^ 14 warnings generated. [screwsd] Signal.c [screwsd] Ssl.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from Signal.c:6: In file included from ./Signal.h:1: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ In file included from Ssl.c:6: In file included from ./Ssl.h:4: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ Signal.c:14:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | my_SIGALRM(sig) | ^ Signal.c:40:21: warning: parameter 'type' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 40 | catchTimeout(s,time,type) | ^ 41 | int s,time; /* time enables/disables timeout */ 42 | { Signal.c:40:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | catchTimeout(s,time,type) | ^ Signal.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | my_SIGINT(sig) | ^ Signal.c:78:1: warning: non-void function does not return a value [-Wreturn-type] 78 | } | ^ Ssl.c:11:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | SslLoadCertificates(ctx,cert,key) | ^ Signal.c:95:8: warning: cast to smaller integer type 'int' from 'void (*)(int)' [-Wpointer-to-int-cast] 95 | ret|=(int)( signal(SIGINT,(void *)my_SIGINT ) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signal.c:98:8: warning: cast to smaller integer type 'int' from 'void (*)(int)' [-Wpointer-to-int-cast] 98 | ret|=(int)( signal(SIGPIPE,SIG_IGN) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signal.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | catchSignals(who) | ^ In file included from Signal.c:6: ./Signal.h:10:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | int catchSignals(); | ^ Ssl.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | SslShowCertificates( ssl ) | ^ Ssl.c:86:5: warning: assigning to 'SSL_METHOD *' (aka 'struct ssl_method_st *') from 'const SSL_METHOD *' (aka 'const struct ssl_method_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 86 | sm=SSLv23_server_method(); | ^~~~~~~~~~~~~~~~~~~~~~~ Ssl.c:89:6: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations] 89 | sm=TLSv1_server_method(); | ^ /var/tmp/work/www/screws/work/.buildlink/include/openssl/ssl.h:2071:1: note: 'TLSv1_server_method' has been explicitly marked deprecated here 2071 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_server_method(void); | ^ /var/tmp/work/www/screws/work/.buildlink/include/openssl/macros.h:251:33: note: expanded from macro 'OSSL_DEPRECATEDIN_1_1_0' 251 | #define OSSL_DEPRECATEDIN_1_1_0 OSSL_DEPRECATED(1.1.0) | ^ /var/tmp/work/www/screws/work/.buildlink/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) | ^ Ssl.c:89:5: warning: assigning to 'SSL_METHOD *' (aka 'struct ssl_method_st *') from 'const SSL_METHOD *' (aka 'const struct ssl_method_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 89 | sm=TLSv1_server_method(); | ^~~~~~~~~~~~~~~~~~~~~~ Ssl.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | SslInit(n,ctx) | ^ 10 warnings generated. 7 warnings generated. [screwsd] Modules.c [screwsd] Request.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from In file included from Request.cModules.c::66: In file included from ./Request.h:4: In file included from ./main.h:42: ./bool.h: In file included from ./Modules.h::8:9: warning: 4'bool' macro redefined [-Wmacro-redefined]: In file included from ./main.h:42: ./bool.h:8:9 : warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #de fine bool 8 | #defchar i n| e ^ bool char /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h| ^:24:9: note: previous definition is here 24 | #define bool _B/System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.ho:o24l: 9 :| ^note: previous definition is here 24 | #define bool _Bool | ^ Modules.c:22:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | getModuleType(type) | ^ Request.c:39:8: warning: call to undeclared function 'execModule'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 39 | if (! execModule(MOD_EXEC) ) | ^ Modules.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | screws_module_del(name) | ^ Request.c:93:47: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 92 | "Content-Length: %d\r\n" | ~~ | %lu 93 | "Content-Type: text/html\r\n\r\n",VERSION,strlen(buf)); | ^~~~~~~~~~~ Request.c:95:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 95 | printf(buf); | ^~~ Request.c:95:10: note: treat the string as an argument to avoid this 95 | printf(buf); | ^ | "%s", Modules.c:63:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | screws_moRequest.cd:u13l:e1_:a dwarning: da function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | doExec(s,n,he(file) | ^ad ) | ^ Modules.c:173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | screws_module_option(name,opt) | ^ Modules.c:204:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | execModulRequest.c:109:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 109 | printExecveFailed(n) | ^ | int e(type) | ^ Request.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] Request.c:121:1: warning: non-void function does not return a value [-Wreturn-type] 121 | } | ^ Request.c:128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | readRequest(s,heads) | ^ Request.c:139:7: warning: call to undeclared function 'execModule'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 139 | if ( execModule(MOD_REQ) ) | ^ Request.c:158:7: warning: call to undeclared function 'screws_socket_recv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 158 | ret=screws_socket_recv(s,b+i,1); | ^ 6 warnings generated. 11 warnings generated. [screwsd] main.c [screwsd] Headers.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from Headers.c:6: In file included from ./main.h:42: ./bool.hIn file included from :main.c:15: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | 8#d:efine 9b:o ol char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here warning: 24 | #define bool _Bool | ^'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ Headers.c:97:22: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 97 | sprintf(buf,"%d",seek); | ~~ ^~~~ | %ld /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ Headers.c:99:22: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 99 | sprintf(buf,"%d",len); | ~~ ^~~ | %ld /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin_main.c_:64:7: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations] 64 | if (daemon(1,0)<0) // sepha_sprintf_chrka d( sptart,c h0 | ^ , __dar/System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdlib.hw:i319n:_6o:b snote: z'daemon' has been explicitly marked deprecated here( str), 319 | int daemon(int, int) __ DARWIN_1050(daemon) ____VA_ARGOSX_AVAILASBL_E__)B U T| _ ^~~~~~~~~~~D EPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | ^ Headers.c:159:4: warning: call to undeclared function 'screws_socket_recv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 159 | screws_socket_recv(s,content,clength); | ^ main.c:118:34: warning: passing arguments to 'catchSignals' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | if ( Error("-main-",catchSignals(WHO_FHeaders.cA:THER) ) ) 188 | : ^44 : warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 188 | printf("tokenstring(%s)(%d)\n",CONTENT,strlen(CONTENT)); | ~~ ^~~~~~~~~~~~~~~ | %lu main.c:132:7: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 132 | exit((int)NULL); | ^~~~~~~~~ main.c:30:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | main(argcHeaders.c,:a223:24:r gv,envp) | ^ warning: call to undeclared function 'custom_memmem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 223 | printf("FOUND(%s)\n",custom_memmem(begin,strlen(begin),token,strlen(token))); | ^ Headers.c:223:24: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 223 | printf("FOUND(%s)\n",custom_memmem(begin,strlen(begin),token,strlen(token))); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | %d Headers.c:226:28: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 226 | printf("FILESIZE(%d)\n",filesize); | ~~ ^~~~~~~~ | %ld Headers.c:9:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | void screws_heads_parse(s,b,head,nheads) | ^ 5 warnings generated. [screwsd] IO.c 9 warnings generated. [screwsd] IO_direct.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from IO.c:6: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ In file included from IO_direct.c:6: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ IO.c:20:3: warning: call to undeclared function 'screws_logs_access'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 20 | screws_logs_access(n); | ^ IO.c:21:3: warning: call to undeclared function 'IO_direct'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 21 | IO_direct(s,n,head); | ^ IO.c:37:36: warning: call to undeclared function 'setChildOptions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | if (! Error( Svr.Lis[n].name,setChildOptions(n) ) ) | ^ IO.c:50:5: warning: call to undeclared function 'doExec'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | doExec(s,n,head); | ^ IO.c:64:4: warning: call to undeclared function 'IO_poll'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 64 | IO_poll(s,f_in[1],f_out[0],f_err[0]); | ^ IO.c:68:4: warning: call to undeclared function 'IO_buffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 68 | IO_buffer(n,s,f_out[0]); | ^ IO.c:71:4: warning: call to undeclared function 'IO_select'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 71 | IO_select(n,s,f_out[0]); | ^ IO.c:80:4: warning: call to undeclared function 'screws_logs_access'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 80 | screws_logs_access(n); | ^ IO_direct.c:23:2: warning: call to undeclared function 'doExec'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 23 | doExec(s,n,head); | ^ IO_direct.c:10:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | IO_direct(s,n,head) | ^ IO_direct.c:24:1: warning: non-void function does not return a value [-Wreturn-type] 24 | } | ^ 9 warnings generated. 4 warnings generated. [screwsd] IO_buffer.c [screwsd] IO_poll.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from IO_poll.c:In file included from IO_buffer.c:6: In file included from ./IO.h:4: 8: In file included from ./Accept.h:4: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined]In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h :24:9: note: previous definition is here 24 | #define bool _Bool | ^ 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ IO_buffer.c:49:17: warning: incompatible pointer to integer conversion passing 'char[65536]' to parameter of type 'int' [-Wint-conversion] IO_poll.c:58:14: warning: cast to 'SSL *' (aka 'struct ssl_st *') from smaller integer type 'int' [-Wint-to-pointer-cast] 58 | 49 | screws_send(s,buf,1); | ^~~ SSL_read((SSL *)pfd[0].fd, b, tcpwin); | ^~~~~~~~~~~~~~~~ IO_buffer.c:10:28: note: passing argument to parameter 'b' here 10 | bool screws_send(int s,int b, char *i); | ^ IO_buffer.c:49:21: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] 49 | screws_sIO_poll.c:78:4: warning: call to undeclared function 'setHTTPCode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 78 | setHTTPCode(b,j); | ^ eIO_poll.c:79:9n:d (s,buf,1); warning: call to undeclared function 'screws_send'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 79 | if (!| s ^c rews_send(s,b,j)) | ^ IO_buffer.c:10:37: note: passing argument to parameter 'i' here 10 | bool screws_send(int s,int b, char *i); | ^ IO_poll.c:127:3: warning: call to undeclared function 'setHTTPCode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | setHTTPCode(b,j); | ^IO_buffer.c :13:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] IO_poll.c:128:8: warning: call to undeclared function 'screws_send'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 128 | if (!screws_se nd(s13, | bIO_buffer(n,s,out) | ^ ,j) ) // XXX errlog here? | ^ IO_poll.c:13:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | bool IO_poll(s,in,out,err) | ^ 4 warnings generated. 7 warnings generated. [screwsd] IO_select.c [screwsd] Socket.c clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument] In file included from IO_select.c:6: In file included from ./Accept.h:4: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ In file included from Socket.c:6: In file included from ./main.h:42: ./bool.h:8:9: warning: 'bool' macro redefined [-Wmacro-redefined] 8 | #define bool char | ^ /System/Volumes/Data/Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stdbool.h:24:9: note: previous definition is here 24 | #define bool _Bool | ^ IO_select.c:61:5: warning: call to undeclared function 'setHTTPCode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 61 | setHTTPCode(buf,nb); | ^ IO_select.c:62:5: warning: call to undeclared function 'screws_send'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | screws_send(in,buf,nb); | ^ IO_select.c:11:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | bool IO_select(s,in,out,err) | ^ Socket.c:17:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | int screws_socket_new(family) | ^ Socket.c:42:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | bool screws_socket_listen(family,ip,port) // TODO catch errors (...) | ^ Socket.c:104:18: warning: cast to 'SSL *' (aka 'struct ssl_st *') from smaller integer type 'int' [-Wint-to-pointer-cast] 104 | ret=SSL_write((SSL*)s,b,i); | ^~~~~~~ Socket.c:94:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | bool screws_send(s,b,i) | ^ 4 warnings generated. Socket.c:136:16: warning: cast to 'SSL *' (aka 'struct ssl_st *') from smaller integer type 'int' [-Wint-to-pointer-cast] 136 | ret=SSL_read((SSL*)s,buf,len); | ^~~~~~~ 6 warnings generated. [L] Linking... ld: library 'ssl' not found clang: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [Makefile:28: all] Error 1 gmake[1]: Leaving directory '/var/tmp/work/www/screws/work/screws-0.56/src/Server' /opt/pkg/bin/mksh: cd: /var/tmp/work/www/screws/work/screws-0.56/src/Server/src/Hsml: No such file or directory /opt/pkg/bin/mksh: cd: /var/tmp/work/www/screws/work/screws-0.56/src/Server/src/Utils: No such file or directory /opt/pkg/bin/mksh: cd: /var/tmp/work/www/screws/work/screws-0.56/src/Server/src/Modules: No such file or directory Build is done => Creating /var/tmp/work/www/screws/work/.rc.d/screws