=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for waste-1.0 --- asyncdns.o --- --- config.o --- --- connection.o --- --- asyncdns.o --- clang++ -O2 -I/usr/include -I/usr/include -c asyncdns.cpp --- config.o --- clang++ -O2 -I/usr/include -I/usr/include -c config.cpp --- connection.o --- clang++ -O2 -I/usr/include -I/usr/include -c connection.cpp --- asyncdns.o --- In file included from asyncdns.cpp:21: ./platform.h:74:104: warning: control reaches end of non-void function [-Wreturn-type] static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; } ^ --- config.o --- In file included from config.cpp:20: ./platform.h:74:104: warning: control reaches end of non-void function [-Wreturn-type] static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; } ^ --- connection.o --- In file included from connection.cpp:20: --- asyncdns.o --- 1 warning generated. --- filedb.o --- --- connection.o --- In file included from ./main.h:25: ./platform.h:74:104: warning: control reaches end of non-void function [-Wreturn-type] static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; } ^ In file included from connection.cpp:20: In file included from ./main.h:27: In file included from ./listen.h:22: In file included from ./connection.h:25: ./rsa/global.h:3:1: warning: '/*' within block comment [-Wcomment] /* Copyright (C) RSA Laboratories, a division of RSA Data Security, ^ --- config.o --- config.cpp:100:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] char *t=ReadString(name,""); ^ --- filedb.o --- clang++ -O2 -I/usr/include -I/usr/include -c filedb.cpp --- config.o --- 2 warnings generated. --- listen.o --- --- connection.o --- connection.cpp:41:8: error: no matching function for call to 'memset' else memset(&m_saddr,0,NULL); ^~~~~~ /usr/include/string.h:67:7: note: candidate function not viable: no known conversion from 'nullptr_t' to 'size_t' (aka 'unsigned long') for 3rd argument void *memset(void *, int, size_t); ^ connection.cpp:57:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] debug_printf("connection: call to socket() failed: %d.\n",ERRNO); ^ --- listen.o --- clang++ -O2 -I/usr/include -I/usr/include -c listen.cpp --- filedb.o --- In file included from filedb.cpp:21: --- connection.o --- connection.cpp:86:26: error: non-constant-expression cannot be narrowed from type 'time_t' (aka 'long') to 'unsigned long' in initializer list [-Wc++11-narrowing] --- filedb.o --- In file included from ./main.h:25: --- connection.o --- unsigned long tm[2]={time(NULL),GetTickCount()}; ^~~~~~~~~~ --- listen.o --- In file included from listen.cpp:20: --- filedb.o --- ./platform.h:74:104: warning: control reaches end of non-void function [-Wreturn-type] static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; } --- listen.o --- In file included from ./main.h:25: --- connection.o --- connection.cpp:86:26: note: insert an explicit cast to silence this issue --- filedb.o --- ^ --- connection.o --- unsigned long tm[2]={time(NULL),GetTickCount()}; ^~~~~~~~~~ --- filedb.o --- In file included from filedb.cpp:21: --- connection.o --- static_cast( ) --- listen.o --- ./platform.h:74:104: warning: control reaches end of non-void function [-Wreturn-type] --- filedb.o --- In file included from ./main.h:27: --- listen.o --- static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; } ^ --- filedb.o --- In file included from ./listen.h:22: --- connection.o --- connection.cpp:141:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- listen.o --- In file included from listen.cpp:20: --- connection.o --- debug_printf("connection: got what looks like feedback on bfpubkey.\n"); --- filedb.o --- In file included from ./connection.h:25: --- connection.o --- ^ --- listen.o --- In file included from ./main.h:27: In file included from ./listen.h:22: --- filedb.o --- ./rsa/global.h:3:1: warning: '/*' within block comment [-Wcomment] --- connection.o --- connection.cpp:189:26: error: non-constant-expression cannot be narrowed from type 'time_t' (aka 'long') to 'unsigned long' in initializer list [-Wc++11-narrowing] --- filedb.o --- /* Copyright (C) RSA Laboratories, a division of RSA Data Security, --- listen.o --- In file included from ./connection.h:25: --- connection.o --- unsigned long tm[2]={time(NULL),GetTickCount()}; --- filedb.o --- ^ --- connection.o --- ^~~~~~~~~~ --- listen.o --- ./rsa/global.h:3:1: warning: '/*' within block comment [-Wcomment] /* Copyright (C) RSA Laboratories, a division of RSA Data Security, --- connection.o --- connection.cpp:189:26: note: insert an explicit cast to silence this issue --- filedb.o --- filedb.cpp:702:22: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- listen.o --- ^ --- connection.o --- unsigned long tm[2]={time(NULL),GetTickCount()}; --- filedb.o --- debug_printf("C_FileDB::DoScan(): error calling findfirstfile(%s)!\n",s.cur_path); --- connection.o --- ^~~~~~~~~~ --- filedb.o --- ^ --- connection.o --- static_cast( ) --- filedb.o --- filedb.cpp:1173:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- listen.o --- listen.cpp:30:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- connection.o --- connection.cpp:229:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- filedb.o --- char *modes[4]={"Stereo","Joint Stereo","2 Channel","Mono"}; --- listen.o --- debug_printf("C_Listen: call to socket() failed: %d.\n",ERRNO); --- connection.o --- debug_printf("connection: error encrypting session key\n"); --- filedb.o --- ^ --- listen.o --- ^ --- connection.o --- ^ --- filedb.o --- filedb.cpp:1173:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- listen.o --- listen.cpp:55:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- connection.o --- connection.cpp:258:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- filedb.o --- char *modes[4]={"Stereo","Joint Stereo","2 Channel","Mono"}; --- listen.o --- debug_printf("C_Listen: call to bind() failed: %d.\n",ERRNO); --- connection.o --- debug_printf("connection: error decrypting session key with my own private key (%d,%d)\n",err,m_kl); --- filedb.o --- ^ --- listen.o --- ^ --- connection.o --- ^ --- filedb.o --- filedb.cpp:1173:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- listen.o --- listen.cpp:63:22: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- connection.o --- connection.cpp:289:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- filedb.o --- char *modes[4]={"Stereo","Joint Stereo","2 Channel","Mono"}; --- listen.o --- debug_printf("C_Listen: call to listen() failed: %d.\n",ERRNO); --- connection.o --- debug_printf("connection: zero session key, aborting.\n"); --- filedb.o --- ^ --- listen.o --- ^ --- connection.o --- ^ --- filedb.o --- filedb.cpp:1173:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- listen.o --- listen.cpp:85:10: error: no matching function for call to 'accept' --- connection.o --- connection.cpp:299:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- filedb.o --- char *modes[4]={"Stereo","Joint Stereo","2 Channel","Mono"}; --- listen.o --- int s = accept(m_socket, (struct sockaddr *) &saddr, (socklen_t *)&length); --- connection.o --- debug_printf("connection: CBC IVs are equal, being hacked?\n"); --- filedb.o --- ^ --- listen.o --- ^~~~~~ --- connection.o --- ^ --- listen.o --- /usr/include/sys/socket.h:615:5: note: candidate function not viable: no known conversion from 'int *' to 'socklen_t *' (aka 'unsigned int *') for 3rd argument int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); --- connection.o --- connection.cpp:307:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] --- listen.o --- ^ --- connection.o --- debug_printf("connection: error decrypting session key (signature is wrong, being hacked?)\n"); ^ --- listen.o --- 5 warnings and 1 error generated. *** [listen.o] Error code 1 bmake: stopped in /var/pkgsrc/work/net/waste/work/waste --- connection.o --- connection.cpp:409:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] debug_printf("connection: error resolving hostname\n"); ^ connection.cpp:420:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] debug_printf("connection: connect() returned error: %d\n",ERRNO); ^ connection.cpp:437:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] debug_printf("connection::run: select() returned error: %d\n",ERRNO); ^ connection.cpp:442:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] debug_printf("connection::run: select() notified of error\n"); ^ connection.cpp:676:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] debug_printf("connection::decrypt_buffer(): len=%d (&7)\n",len); ^ connection.cpp:704:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] debug_printf("connection::encrypt_buffer(): len=%d (&7)\n",len); ^ connection.cpp:771:54: error: cannot initialize a parameter of type 'socklen_t *' (aka 'unsigned int *') with an rvalue of type 'int *' if (::getsockname(m_socket,(struct sockaddr *)&sin,(socklen_t *)&len)) return 0; ^~~~~~~~~~~~~~~~~ /usr/include/sys/socket.h:624:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ 15 warnings and 4 errors generated. *** [connection.o] Error code 1 bmake: stopped in /var/pkgsrc/work/net/waste/work/waste --- filedb.o --- 7 warnings generated. 2 errors bmake: stopped in /var/pkgsrc/work/net/waste/work/waste *** Error code 2 Stop. bmake[1]: stopped in /usr/pkgsrc/net/waste *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/waste