=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for screws-0.56nb21
<ConfigOptions>


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}\"

</ConfigOptions>
<!-- sleeping 1 second... -->
gmake[1]: Entering directory '/data/scratch/www/screws/work/screws-0.56/src/Server'
[screwsd] Env.c
[screwsd] Accept.c
[screwsd] Args.c
[screwsd] Engine.c
[screwsd] Config.c
[screwsd] Signal.c
[screwsd] Fmutex.c
[screwsd] Ssl.c
[screwsd] Error.c
[screwsd] Logs.c
[O] Options
[screwsd] Modules.c
[screwsd] Headers.c
[screwsd] main.c
 * USE_POLL
[screwsd] Request.c
 * USE_DEBUG
 * USE_SSL
[screwsd] IO.c
Error.c:53:4: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
                        free(cwd);
                        ^
1 warning generated.
[screwsd] IO_direct.c
Headers.c:97:22: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
                                sprintf(buf,"%d",seek);
                                             ~~  ^~~~
                                             %ld
Headers.c:99:22: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
                                sprintf(buf,"%d",len);
                                             ~~  ^~~
                                             %ld
Headers.c:159:4: warning: implicit declaration of function 'screws_socket_recv' is invalid in C99 [-Wimplicit-function-declaration]
                        screws_socket_recv(s,content,clength);
                        ^
Headers.c:188:44: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                                printf("tokenstring(%s)(%d)\n",CONTENT,strlen(CONTENT));
                                                        ~~             ^~~~~~~~~~~~~~~
                                                        %lu
Headers.c:223:24: warning: implicit declaration of function 'custom_memmem' is invalid in C99 [-Wimplicit-function-declaration]
                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]
                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]
                        printf("FILESIZE(%d)\n",filesize);
                                         ~~     ^~~~~~~~
                                         %ld
Signal.c:78:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
IO.c:20:3: warning: implicit declaration of function 'screws_logs_access' is invalid in C99 [-Wimplicit-function-declaration]
                screws_logs_access(n);
                ^
IO.c:21:3: warning: implicit declaration of function 'IO_direct' is invalid in C99 [-Wimplicit-function-declaration]
                IO_direct(s,n,head);
                ^
IO.c:37:36: warning: implicit declaration of function 'setChildOptions' is invalid in C99 [-Wimplicit-function-declaration]
                   if (!  Error( Svr.Lis[n].name,setChildOptions(n) )  ) 
                                                 ^
IO.c:50:5: warning: implicit declaration of function 'doExec' is invalid in C99 [-Wimplicit-function-declaration]
                                doExec(s,n,head);
                                ^
IO.c:64:4: warning: implicit declaration of function 'IO_poll' is invalid in C99 [-Wimplicit-function-declaration]
                        IO_poll(s,f_in[1],f_out[0],f_err[0]);
                        ^
IO.c:68:4: warning: implicit declaration of function 'IO_buffer' is invalid in C99 [-Wimplicit-function-declaration]
                        IO_buffer(n,s,f_out[0]);
                        ^
IO.c:71:4: warning: implicit declaration of function 'IO_select' is invalid in C99 [-Wimplicit-function-declaration]
                        IO_select(n,s,f_out[0]);
                        ^
7 warnings generated.
Accept.c:67:3: warning: implicit declaration of function 'screws_logs_error' is invalid in C99 [-Wimplicit-function-declaration]
                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]
        s=accept(l,(struct sockaddr *)&sa,&sas);
                                          ^~~~
/usr/include/sys/socket.h:649:69: note: passing argument to parameter here
int     accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                        ^
Accept.c:106:5: warning: implicit declaration of function 'SslShowCertificates' is invalid in C99 [-Wimplicit-function-declaration]
                  SslShowCertificates(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]
          b = readRequest(sock, &nheads);
                                ^~~~~~~
./Request.h:7:24: note: passing argument to parameter 'heads' here
readRequest(int s,int *heads);
                       ^
Accept.c:193:3: warning: implicit declaration of function 'screws_socket_close' is invalid in C99 [-Wimplicit-function-declaration]
                screws_socket_close(s);
                ^
Accept.c:219:3: warning: implicit declaration of function 'screws_heads_parse' is invalid in C99 [-Wimplicit-function-declaration]
                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]
        getsockopt(s,SOL_SOCKET, SO_SNDBUF, &tcpwin,&sas);
                                                    ^~~~
/usr/include/sys/socket.h:655:71: note: passing argument to parameter here
int     getsockopt(int, int, int, void *__restrict, socklen_t * __restrict);
                                                                          ^
Accept.c:234:2: warning: implicit declaration of function 'screws_IO' is invalid in C99 [-Wimplicit-function-declaration]
        screws_IO(sock,n,head);
        ^
[screwsd] IO_buffer.c
1 warning generated.
[screwsd] IO_poll.c
Logs.c:80:7: warning: implicit declaration of function 'execModule' is invalid in C99 [-Wimplicit-function-declaration]
        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]
                                l=sprintf(sb,"0x%.12x",time(0));
                                                ~~~~~  ^~~~~~~
                                                %.12lx
Logs.c:204:48: warning: data argument not used by format string [-Wformat-extra-args]
                                printf("[?] Unknown percentage '%%c' :(\n",str[i2]);
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
Logs.c:215:2: warning: implicit declaration of function 'screws_logs_write' is invalid in C99 [-Wimplicit-function-declaration]
        screws_logs_write( Svr.Lis[n].S[_LOGFILE], b);
        ^
Request.c:39:8: warning: implicit declaration of function 'execModule' is invalid in C99 [-Wimplicit-function-declaration]
        if (! execModule(MOD_EXEC) )
              ^
Logs.c:232:31: warning: format specifies type 'unsigned int' but the argument has type 'time_t' (aka 'long') [-Wformat]
        sprintf(str,"0x%x - %s %s\n",time(0),SCREWS_errlist[err],msg);
                       ~~            ^~~~~~~
                       %lx
Logs.c:232:59: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
        sprintf(str,"0x%x - %s %s\n",time(0),SCREWS_errlist[err],msg);
                               ~~                                ^~~
                               %d
Logs.c:250:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                syslog(LOG_ERR,msg);
                               ^~~
Logs.c:250:18: note: treat the string as an argument to avoid this
                syslog(LOG_ERR,msg);
                               ^
                               "%s", 
Request.c:93:47: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                                "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]
                printf(buf);
                       ^~~
Request.c:95:10: note: treat the string as an argument to avoid this
                printf(buf);
                       ^
                       "%s", 
Logs.c:284:39: warning: incompatible pointer to integer conversion passing 'char [1]' to parameter of type 'int' [-Wint-conversion]
                        screws_logs_error(-1,ERROR_OPENLOG,"");
                                                           ^~
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]
        bool u; /* unsigned? */
             ^
./Config.h:12:28: note: previous declaration is here
int get_int(char *,int,bool,int);
                           ^
Ssl.c:86:6: warning: implicit declaration of function 'SSLv3_server_method' is invalid in C99 [-Wimplicit-function-declaration]
                sm=SSLv3_server_method();
                   ^
Ssl.c:86:5: warning: incompatible integer to pointer conversion assigning to 'SSL_METHOD *' (aka 'struct ssl_method_st *') from 'int' [-Wint-conversion]
                sm=SSLv3_server_method();
                  ^~~~~~~~~~~~~~~~~~~~~~
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]
                sm=SSLv23_server_method();
                  ^~~~~~~~~~~~~~~~~~~~~~~
Ssl.c:92:6: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations]
                sm=TLSv1_server_method();
                   ^
/usr/include/openssl/ssl.h:1628:1: note: 'TLSv1_server_method' has been explicitly marked deprecated here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* TLSv1.0 */
^
/usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0'
# define DEPRECATEDIN_1_1_0(f)   DECLARE_DEPRECATED(f)
                                 ^
/usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                                    ^
Ssl.c:92: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]
                sm=TLSv1_server_method();
                  ^~~~~~~~~~~~~~~~~~~~~~
7 warnings generated.
Config.c:315:37: warning: too few arguments in call to 'set_listen_val'
                                get_int(b[1],Line,u,Narg)) )
                                                         ^
Request.c:109:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
Modules.cprintExecveFailed(n):
132^:
10: warning: comparison of constant -1 with expression of type 'module_t' is always false [-Wtautological-constant-out-of-range-compare]
        if (type==-1) 
            ~~~~^ ~~
Request.c:121:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Request.c:158:7: warning: implicit declaration of function 'screws_socket_recv' is invalid in C99 [-Wimplicit-function-declaration]
                ret=screws_socket_recv(s,b+i,1);
                    ^
Config.c:673:22: warning: implicit declaration of function 'screws_module_add' is invalid in C99 [-Wimplicit-function-declaration]
                if (Svr.strict & ! screws_module_add(b[0]) )
                                   ^
Config.c:687:9: warning: implicit declaration of function 'screws_module_option' is invalid in C99 [-Wimplicit-function-declaration]
                if (! screws_module_option(b[0],b[1]) )
                      ^
Config.c:746:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
                if (p=strchr(buf[0],'#'))
                    ~^~~~~~~~~~~~~~~~~~~
Config.c:746:8: note: place parentheses around the assignment to silence this warning
                if (p=strchr(buf[0],'#'))
                     ^
                    (                   )
Config.c:746:8: note: use '==' to turn this assignment into an equality comparison
                if (p=strchr(buf[0],'#'))
                     ^
                     ==
Config.c:756:29: warning: incompatible pointer types passing 'char [2][512]' to parameter of type 'char *' [-Wincompatible-pointer-types]
                                err=conf_parse_key(line,buf,i);
                                                        ^~~
5 warnings generated.
8 warnings generated.
[screwsd] IO_select.c
[screwsd] Socket.c
8 warnings generated.
Env.c:324:7: warning: implicit declaration of function 'execModule' is invalid in C99 [-Wimplicit-function-declaration]
        if ( execModule(MOD_ENV) ) return;
             ^
6 warnings generated.
IO_direct.c:23:2: warning: implicit declaration of function 'doExec' is invalid in C99 [-Wimplicit-function-declaration]
        doExec(s,n,head);
        ^
IO_direct.c:24:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Engine.c:139:24: warning: format string contains '\0' within the string body [-Wformat]
        sprintf(av[0],"[%d] %s\0",n,Svr.Lis[n].name);
                      ~~~~~~~~^~~
Engine.c:155:17: warning: implicit declaration of function 'screws_socket_listen' is invalid in C99 [-Wimplicit-function-declaration]
        Svr.Lis[n].s = screws_socket_listen(
                       ^
Engine.c:168:7: warning: implicit declaration of function 'screws_logs_init' is invalid in C99 [-Wimplicit-function-declaration]
        ok = screws_logs_init(n); // TODO catch FALSE!
             ^
Engine.c:175:2: warning: implicit declaration of function 'screws_ssl_init' is invalid in C99 [-Wimplicit-function-declaration]
        screws_ssl_init(n); // TODO catch FALSE!
        ^
Engine.c:177:2: warning: implicit declaration of function 'setParentEnv' is invalid in C99 [-Wimplicit-function-declaration]
        setParentEnv(n);
        ^
1 warning generated.
2 warnings generated.
5 warnings generated.
6 warnings generated.
IO_buffer.c:49:17: warning: incompatible pointer to integer conversion passing 'char [65536]' to parameter of type 'int' [-Wint-conversion]
                screws_send(s,buf,1);
                              ^~~
IO_buffer.c:10:28: note: passing argument to parameter 'b' here
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]
                screws_send(s,buf,1);
                                  ^
IO_buffer.c:10:37: note: passing argument to parameter 'i' here
bool screws_send(int s,int b, char *i);
                                    ^
IO_select.c:61:5: warning: implicit declaration of function 'setHTTPCode' is invalid in C99 [-Wimplicit-function-declaration]
                                setHTTPCode(buf,nb);
                                ^
IO_select.c:62:5: warning: implicit declaration of function 'screws_send' is invalid in C99 [-Wimplicit-function-declaration]
                                screws_send(in,buf,nb);
                                ^
2 warnings generated.
Socket.c:104:18: warning: cast to 'SSL *' (aka 'struct ssl_st *') from smaller integer type 'int' [-Wint-to-pointer-cast]
                        ret=SSL_write((SSL*)s,b,i);
                                      ^
Socket.c:136:16: warning: cast to 'SSL *' (aka 'struct ssl_st *') from smaller integer type 'int' [-Wint-to-pointer-cast]
                ret=SSL_read((SSL*)s,buf,len);
                             ^
2 warnings generated.
IO_poll.c:58:14: warning: cast to 'SSL *' (aka 'struct ssl_st *') from smaller integer type 'int' [-Wint-to-pointer-cast]
                                SSL_read((SSL *)pfd[0].fd, b, tcpwin);
                                         ^
IO_poll.c:78:4: warning: implicit declaration of function 'setHTTPCode' is invalid in C99 [-Wimplicit-function-declaration]
                        setHTTPCode(b,j);
                        ^
IO_poll.c:79:9: warning: implicit declaration of function 'screws_send' is invalid in C99 [-Wimplicit-function-declaration]
                        if (!screws_send(s,b,j))
                             ^
1 warning generated.
2 warnings generated.
3 warnings generated.
[L] Linking...
Ssl.o: In function `SslInit':
/data/scratch/www/screws/work/screws-0.56/src/Server/Ssl.c:86: undefined reference to `SSLv3_server_method'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:27: recipe for target 'all' failed
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory '/data/scratch/www/screws/work/screws-0.56/src/Server'
cd: can't cd to src/Hsml
cd: can't cd to src/Utils
cd: can't cd to src/Modules
Build is done
=> Creating /data/scratch/www/screws/work/.rc.d/screws