=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for srp-client-1.4.4nb2 --- all-recursive --- Making all in libsrp --- t_client.o --- --- t_conf.o --- --- t_conv.o --- --- t_client.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_client.c --- t_conf.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_conf.c --- t_conv.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_conv.c --- t_client.o --- t_client.c:70:21: warning: passing 'char [32]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, tc->username, strlen(tc->username)); ^~~~~~~~~~~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ t_client.c:134:21: warning: passing 'char [32]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, tc->username, strlen(tc->username)); ^~~~~~~~~~~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ t_client.c:135:21: warning: passing 'char [2]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, ":", 1); ^~~ --- t_conf.o --- t_conf.c:97:43: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (tc->tcbuf.modulus.len = t_fromb64(tc->modbuf, b64buf)) > 0 && ^~~~~~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ t_conf.c:99:45: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (tc->tcbuf.generator.len = t_fromb64(tc->genbuf, b64buf)) > 0) { ^~~~~~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ t_conf.c:139:38: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- t_conv.o --- t_conv.c:79:2: warning: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)' [-Wimplicit-function-declaration] sprintf(chp, "%.2x", * (unsigned char *) src); ^ t_conv.c:79:2: note: include the header or explicitly provide a declaration for 'sprintf' --- t_client.o --- ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ t_client.c:136:21: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, password, strlen(password)); ^~~~~~~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ --- t_conf.o --- (tc->tcbuf.modulus.len = t_fromb64(tc->modbuf, b64buf)) > 0 && ^~~~~~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ t_conf.c:141:40: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (tc->tcbuf.generator.len = t_fromb64(tc->genbuf, b64buf)) > 0) { ^~~~~~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ t_conf.c:224:12: warning: passing 'char [256]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] t_random(parambuf, i); ^~~~~~~~ ./t_pwd.h:253:42: note: passing argument to parameter here _TYPE( void ) t_random P((unsigned char *, unsigned)); --- t_client.o --- 4 warnings generated. --- t_conv.o --- 1 warning generated. --- t_conf.o --- ^ t_conf.c:225:27: warning: passing 'char [256]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] r = BigIntegerFromBytes(parambuf, i); ^~~~~~~~ ./t_defines.h:126:60: note: passing argument to parameter 'bytes' here _TYPE( BigInteger ) BigIntegerFromBytes P((unsigned char * bytes, int length)); ^ t_conf.c:427:20: warning: passing 'unsigned char *const' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] t_tob64(strbuf, ent->modulus.data, ent->modulus.len)); ^~~~~~~~~~~~~~~~~ ./t_pwd.h:240:42: note: passing argument to parameter here _TYPE( char * ) t_tob64 P((char *, char *, unsigned)); ^ t_conf.c:429:20: warning: passing 'unsigned char *const' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] t_tob64(strbuf, ent->generator.data, ent->generator.len)); ^~~~~~~~~~~~~~~~~~~ ./t_pwd.h:240:42: note: passing argument to parameter here _TYPE( char * ) t_tob64 P((char *, char *, unsigned)); ^ In file included from t_conf.c:477: ./nys_config.h:43:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_YP /* NSSwitch YP (NIS v2) support */ ^ ./nys_config.h:44:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_NIS /* NSSwitch NIS+ (NIS v3) support */ ^ ./nys_config.h:45:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DNS /* NSSwitch DNS/Hesiod support */ ^ ./nys_config.h:46:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DBM /* NSSwitch DBM support */ ^ 12 warnings generated. --- t_getpass.o --- --- t_sha.o --- --- t_math.o --- --- t_getpass.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_getpass.c --- t_sha.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_sha.c --- t_math.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_math.c --- t_getpass.o --- t_getpass.c:165:9: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] kill (getpid (), SIGINT); ^ --- t_sha.o --- t_sha.c:129:43: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] SHA1Transform(context->state, &data[i]); ^~~~~~~~ t_sha.c:49:58: note: passing argument to parameter 'buffer' here static void SHA1Transform(uint32 state[5], unsigned char buffer[64]) ^ --- t_math.o --- t_math.c:89:40: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mpz_init_set_str(rv, t_tohex(hexbuf, bytes, length), 16); ^~~~~ ./t_pwd.h:238:42: note: passing argument to parameter here _TYPE( char * t_tohex ) P((char *, char *, unsigned)); ^ t_math.c:114:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] r = t_fromhex(dest, hexbuf); ^~~~ ./t_pwd.h:239:33: note: passing argument to parameter here _TYPE( int ) t_fromhex P((char *, char *)); ^ --- t_getpass.o --- 1 warning generated. --- t_misc.o --- --- t_math.o --- 2 warnings generated. --- t_pw.o --- --- t_misc.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_misc.c --- t_pw.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_pw.c t_pw.c:157:40: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (tpw->pebuf.password.len = t_fromb64(tpw->pwbuf, passbuf)) > 0 && ^~~~~~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ t_pw.c:159:36: warning: passing 'unsigned char [10]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (tpw->pebuf.salt.len = t_fromb64(tpw->saltbuf, saltstr)) > 0 && ^~~~~~~~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ t_pw.c:203:40: warning: passing 'unsigned char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (tpw->pebuf.password.len = t_fromb64(tpw->pwbuf, passbuf)) > 0 && ^~~~~~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ t_pw.c:205:36: warning: passing 'unsigned char [10]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (tpw->pebuf.salt.len = t_fromb64(tpw->saltbuf, saltstr)) > 0 && ^~~~~~~~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ t_pw.c:259:21: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, user, strlen(user)); ^~~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ t_pw.c:260:21: warning: passing 'char [2]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, ":", 1); ^~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ t_pw.c:261:21: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, pass, strlen(pass)); ^~~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ t_pw.c:292:20: warning: passing 'unsigned char *const' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] t_tob64(strbuf, ent->password.data, ent->password.len), ^~~~~~~~~~~~~~~~~~ ./t_pwd.h:240:42: note: passing argument to parameter here _TYPE( char * ) t_tob64 P((char *, char *, unsigned)); ^ t_pw.c:293:21: warning: passing 'unsigned char *const' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] t_tob64(saltbuf, ent->salt.data, ent->salt.len), ent->index); ^~~~~~~~~~~~~~ ./t_pwd.h:240:42: note: passing argument to parameter here _TYPE( char * ) t_tob64 P((char *, char *, unsigned)); ^ t_pw.c:318:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ t_pw.c:348:6: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] (unlink(bakfile2) < 0 || (bakfp = fopen(bakfile2, "w")) == NULL)) ^ --- t_misc.o --- t_misc.c:60:23: warning: passing 'char [256]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, ebuf, strlen(ebuf)); ^~~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ t_misc.c:114:35: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] sprintf(dotpath, "/tmp/rnd.$$", getpid()); ^ t_misc.c:114:35: warning: data argument not used by format string [-Wformat-extra-args] sprintf(dotpath, "/tmp/rnd.$$", getpid()); ~~~~~~~~~~~~~ ^ t_misc.c:117:3: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink(dotpath); ^ --- t_pw.o --- t_pw.c:357:27: warning: passing 'const struct t_pwent *' to parameter of type 'struct t_pwent *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] t_pwcopy(bakfp, passfp, diff); ^~~~ t_pw.c:367:3: warning: implicit declaration of function 'link' is invalid in C99 [-Wimplicit-function-declaration] link(pwname, bakfile); ^ In file included from t_pw.c:404: ./nys_config.h:43:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_YP /* NSSwitch YP (NIS v2) support */ ^ ./nys_config.h:44:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_NIS /* NSSwitch NIS+ (NIS v3) support */ ^ ./nys_config.h:45:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DNS /* NSSwitch DNS/Hesiod support */ ^ --- t_misc.o --- t_misc.c:175:20: warning: implicit declaration of function 'raw_truerand' is invalid in C99 [-Wimplicit-function-declaration] preseed.trand1 = raw_truerand(); ^ t_misc.c:190:17: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] preseed.pid = getpid(); ^ t_misc.c:194:18: warning: implicit declaration of function 'getppid' is invalid in C99 [-Wimplicit-function-declaration] preseed.ppid = getppid(); ^ t_misc.c:201:5: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] read(i, preseed.devrand, sizeof(preseed.devrand)); ^ t_misc.c:202:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(i); ^ t_misc.c:228:18: warning: implicit declaration of function 'raw_truerand' is invalid in C99 [-Wimplicit-function-declaration] rawrand[i] = raw_truerand(); ^ --- t_pw.o --- ./nys_config.h:46:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DBM /* NSSwitch DBM support */ ^ --- t_misc.o --- 10 warnings generated. --- t_read.o --- --- t_pw.o --- 17 warnings generated. --- t_server.o --- --- t_read.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_read.c --- t_server.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_server.c --- t_truerand.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c t_truerand.c --- t_sha.o --- 1 warning generated. --- yp_misc.o --- --- t_server.o --- t_server.c:96:21: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, ent->name, strlen(ent->name)); ^~~~~~~~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ 1 warning generated. --- yp_misc.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c yp_misc.c --- yp_tpasswd.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c yp_tpasswd.c --- yp_misc.o --- In file included from yp_misc.c:28: ./nys_config.h:43:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_YP /* NSSwitch YP (NIS v2) support */ ^ ./nys_config.h:44:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_NIS /* NSSwitch NIS+ (NIS v3) support */ ^ ./nys_config.h:45:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DNS /* NSSwitch DNS/Hesiod support */ ^ ./nys_config.h:46:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DBM /* NSSwitch DBM support */ ^ --- t_truerand.o --- t_truerand.c:88:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ --- yp_misc.o --- 4 warnings generated. --- yp_tpasswd.o --- In file included from yp_tpasswd.c:28: ./nys_config.h:43:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_YP /* NSSwitch YP (NIS v2) support */ ^ ./nys_config.h:44:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_NIS /* NSSwitch NIS+ (NIS v3) support */ ^ ./nys_config.h:45:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DNS /* NSSwitch DNS/Hesiod support */ ^ ./nys_config.h:46:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DBM /* NSSwitch DBM support */ ^ 4 warnings generated. --- t_truerand.o --- 1 warning generated. --- yp_tconf.o --- --- nsw_tpasswd.o --- --- nsw_tconf.o --- --- yp_tconf.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c yp_tconf.c --- nsw_tpasswd.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c nsw_tpasswd.c --- nsw_tconf.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c nsw_tconf.c --- yp_tconf.o --- In file included from yp_tconf.c:28: --- nsw_tconf.o --- In file included from nsw_tconf.c:26: ./nys_config.h:43:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_YP /* NSSwitch YP (NIS v2) support */ ^ ./nys_config.h:44:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_NIS /* NSSwitch NIS+ (NIS v3) support */ ^ ./nys_config.h:45:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DNS /* NSSwitch DNS/Hesiod support */ ^ ./nys_config.h:46:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DBM /* NSSwitch DBM support */ ^ 4 warnings generated. --- yp_tconf.o --- ./nys_config.h:43:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_YP /* NSSwitch YP (NIS v2) support */ ^ ./nys_config.h:44:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_NIS /* NSSwitch NIS+ (NIS v3) support */ ^ ./nys_config.h:45:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DNS /* NSSwitch DNS/Hesiod support */ ^ ./nys_config.h:46:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DBM /* NSSwitch DBM support */ ^ 4 warnings generated. --- nsw_tpasswd.o --- In file included from nsw_tpasswd.c:26: ./nys_config.h:43:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_YP /* NSSwitch YP (NIS v2) support */ ^ ./nys_config.h:44:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_NIS /* NSSwitch NIS+ (NIS v3) support */ ^ ./nys_config.h:45:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DNS /* NSSwitch DNS/Hesiod support */ ^ ./nys_config.h:46:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DBM /* NSSwitch DBM support */ ^ 4 warnings generated. --- nsswitch.o --- --- clitest.o --- --- srvtest.o --- --- nsswitch.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c nsswitch.c --- clitest.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c clitest.c --- srvtest.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c srvtest.c --- nsswitch.o --- In file included from nsswitch.c:27: ./nys_config.h:43:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_YP /* NSSwitch YP (NIS v2) support */ ^ ./nys_config.h:44:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_NIS /* NSSwitch NIS+ (NIS v3) support */ ^ ./nys_config.h:45:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DNS /* NSSwitch DNS/Hesiod support */ ^ ./nys_config.h:46:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DBM /* NSSwitch DBM support */ ^ nsswitch.c:220:38: warning: ignoring return value of function declared with pure attribute [-Wunused-value] for (i = 0; i < nswcache_cnt && (strcmp(name, nswcache[i].name),1); i++) ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ --- clitest.o --- clitest.c:28:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() ^ clitest.c:46:10: warning: assigning to 'unsigned char *' from 'char [256]' converts between pointers to integer types with different sign [-Wpointer-sign] n.data = buf1; ^ ~~~~ clitest.c:47:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] n.len = t_fromb64(n.data, hexbuf); ^~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ clitest.c:50:10: warning: assigning to 'unsigned char *' from 'char [256]' converts between pointers to integer types with different sign [-Wpointer-sign] g.data = buf2; ^ ~~~~ clitest.c:51:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- srvtest.o --- srvtest.c:90:49: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("n (to client): %s\n", t_tob64(hexbuf, ts->n.data, ts->n.len)); ^~~~~~~~~~ ./t_pwd.h:240:42: note: passing argument to parameter here _TYPE( char * ) t_tob64 P((char *, char *, unsigned)); ^ srvtest.c:91:49: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("g (to client): %s\n", t_tob64(hexbuf, ts->g.data, ts->g.len)); ^~~~~~~~~~ ./t_pwd.h:240:42: note: passing argument to parameter here _TYPE( char * ) t_tob64 P((char *, char *, unsigned)); ^ --- clitest.o --- g.len = t_fromb64(g.data, hexbuf); ^~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ clitest.c:54:10: warning: assigning to 'unsigned char *' from 'char [32]' converts between pointers to integer types with different sign [-Wpointer-sign] s.data = buf3; ^ ~~~~ clitest.c:55:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s.len = t_fromb64(s.data, hexbuf); ^~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ clitest.c:60:49: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("A (to server): %s\n", t_tob64(hexbuf, A->data, A->len)); --- srvtest.o --- srvtest.c:92:52: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("salt (to client): %s\n", t_tob64(hexbuf, ts->s.data, ts->s.len)); ^~~~~~~~~~ ./t_pwd.h:240:42: note: passing argument to parameter here _TYPE( char * ) t_tob64 P((char *, char *, unsigned)); ^ srvtest.c:97:10: warning: assigning to 'unsigned char *' from 'char [256]' converts between pointers to integer types with different sign [-Wpointer-sign] A.data = buf; ^ ~~~ srvtest.c:98:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] A.len = t_fromb64(A.data, hexbuf); ^~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ srvtest.c:100:49: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("B (to client): %s\n", t_tob64(hexbuf, B->data, B->len)); ^~~~~~~ ./t_pwd.h:240:42: note: passing argument to parameter here _TYPE( char * ) t_tob64 P((char *, char *, unsigned)); ^ srvtest.c:103:47: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("Session key: %s\n", t_tohex(hexbuf, skey, 40)); ^~~~ ./t_pwd.h:238:42: note: passing argument to parameter here _TYPE( char * t_tohex ) P((char *, char *, unsigned)); ^ srvtest.c:109:13: warning: passing 'unsigned char [20]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] t_fromhex(cbuf, hexbuf); ^~~~ ./t_pwd.h:239:33: note: passing argument to parameter here _TYPE( int ) t_fromhex P((char *, char *)); ^ 8 warnings generated. --- clitest.o --- ^~~~~~~ ./t_pwd.h:240:42: note: passing argument to parameter here _TYPE( char * ) t_tob64 P((char *, char *, unsigned)); ^ clitest.c:67:10: warning: assigning to 'unsigned char *' from 'char [256]' converts between pointers to integer types with different sign [-Wpointer-sign] B.data = buf1; ^ ~~~~ clitest.c:68:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] B.len = t_fromb64(B.data, hexbuf); ^~~~~~ ./t_pwd.h:241:33: note: passing argument to parameter here _TYPE( int ) t_fromb64 P((char *, char *)); ^ clitest.c:71:47: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("Session key: %s\n", t_tohex(hexbuf, skey, 40)); ^~~~ ./t_pwd.h:238:42: note: passing argument to parameter here _TYPE( char * t_tohex ) P((char *, char *, unsigned)); ^ clitest.c:73:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] t_tohex(hexbuf, t_clientresponse(tc), RESPONSE_LEN)); ^~~~~~~~~~~~~~~~~~~~ ./t_pwd.h:238:42: note: passing argument to parameter here _TYPE( char * t_tohex ) P((char *, char *, unsigned)); ^ 12 warnings generated. --- getpwtest.o --- --- srptest.o --- --- getpwtest.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c getpwtest.c --- nsswitch.o --- 5 warnings generated. --- srpbench.o --- --- srptest.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c srptest.c --- srpbench.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c srpbench.c --- getpwtest.o --- getpwtest.c:4:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ getpwtest.c:13:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ getpwtest.c:13:5: note: include the header or explicitly provide a declaration for 'exit' 2 warnings generated. --- ./stamp-h.in --- cd . && autoheader --- srptest.o --- srptest.c:29:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ srptest.c:45:12: warning: passing 'char [513]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] t_random(hexbuf, 64); ^~~~~~ ./t_pwd.h:253:42: note: passing argument to parameter here _TYPE( void ) t_random P((unsigned char *, unsigned)); ^ srptest.c:91:25: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, ent->name, strlen(ent->name)); ^~~~~~~~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ srptest.c:92:25: warning: passing 'char [2]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, ":", 1); ^~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ srptest.c:93:25: warning: passing 'char [128]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&ctxt, pass, strlen(pass)); ^~~~ ./t_sha.h:23:60: note: passing argument to parameter 'data' here void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len)); ^ --- srpbench.o --- srpbench.c:121:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ srpbench.c:131:37: warning: passing 'unsigned char [2]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("0x%s ^ ", t_tohex(hexbuf, testbase, sizeof(testbase))); ^~~~~~~~ ./t_pwd.h:238:42: note: passing argument to parameter here _TYPE( char * t_tohex ) P((char *, char *, unsigned)); ^ srpbench.c:133:39: warning: passing 'unsigned char [3]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("0x%s mod ", t_tohex(hexbuf, testexp, sizeof(testexp))); ^~~~~~~ ./t_pwd.h:238:42: note: passing argument to parameter here _TYPE( char * t_tohex ) P((char *, char *, unsigned)); ^ srpbench.c:135:37: warning: passing 'unsigned char [8]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] printf("0x%s = ", t_tohex(hexbuf, testmod, sizeof(testmod))); ^~~~~~~ ./t_pwd.h:238:42: note: passing argument to parameter here _TYPE( char * t_tohex ) P((char *, char *, unsigned)); ^ 4 warnings generated. --- libsrp.a --- --- srptest.o --- 5 warnings generated. --- libsrp.a --- rm -f libsrp.a ar cru libsrp.a t_client.o t_conf.o t_conv.o t_getpass.o t_sha.o t_math.o t_misc.o t_pw.o t_read.o t_server.o t_truerand.o yp_misc.o yp_tpasswd.o yp_tconf.o nsw_tpasswd.o nsw_tconf.o nsswitch.o --- ./stamp-h.in --- WARNING: 'autoheader' is missing on your system. You should only need it if you modified 'acconfig.h' or 'configure.in'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site. --- libsrp.a --- ranlib libsrp.a --- clitest --- --- srvtest --- --- clitest --- clang -O2 -Wno-error=return-type -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o clitest clitest.o libsrp.a -L../lib -lgmp --- srvtest --- clang -O2 -Wno-error=return-type -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o srvtest srvtest.o libsrp.a -L../lib -lgmp --- clitest --- clitest.o: In function `main': clitest.c:(.text+0x31): warning: warning: this program uses gets(), which is unsafe. --- srvtest --- srvtest.o: In function `main': srvtest.c:(.text+0x100): warning: warning: this program uses gets(), which is unsafe. --- getpwtest --- --- srptest --- --- getpwtest --- clang -O2 -Wno-error=return-type -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o getpwtest getpwtest.o libsrp.a -L../lib -lgmp --- srptest --- clang -O2 -Wno-error=return-type -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o srptest srptest.o libsrp.a -L../lib -lgmp srptest.o: In function `main': srptest.c:(.text+0x210): warning: warning: this program uses gets(), which is unsafe. --- srpbench --- --- stamp-h --- --- srpbench --- clang -O2 -Wno-error=return-type -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o srpbench srpbench.o libsrp.a -L../lib -lgmp --- stamp-h --- cd . && CONFIG_FILES= CONFIG_HEADERS=config.h /bin/sh ./config.status creating config.h config.h is unchanged Making all in libkrypto --- cipher_bench.o --- --- cipher_imp_none.o --- --- cipher.o --- --- cipher_bench.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_bench.c --- cipher_imp_none.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_imp_none.c --- cipher.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher.c --- cipher_crypt_cbc.o --- --- cipher_bench.o --- cipher_bench.c:65:3: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] memset(data, 0, 8); ^ cipher_bench.c:65:3: note: include the header or explicitly provide a declaration for 'memset' cipher_bench.c:80:70: warning: format specifies type 'char *' but the argument has type 'unsigned int' [-Wformat] printf("*** %s encryption/decryption error: [%08x %08x] != 0\n", *lo, *hi); ~~ ^~~ %u cipher_bench.c:80:58: warning: more '%' conversions than data arguments [-Wformat] printf("*** %s encryption/decryption error: [%08x %08x] != 0\n", *lo, *hi); ~~~^ cipher_bench.c:82:14: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 2 * NRUNS, elapsedus / 1000000, elapsedus % 1000000, ^~~~~~~~~~~~~~~~~~~ cipher_bench.c:82:35: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 2 * NRUNS, elapsedus / 1000000, elapsedus % 1000000, ^~~~~~~~~~~~~~~~~~~ --- cipher_crypt_cbc.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_crypt_cbc.c --- cipher_bench.o --- 5 warnings generated. --- cipher.o --- cipher.c:133:17: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned char' declared in a previous prototype [-Wknr-promoted-parameter] unsigned char id; ^ ./krypto.h:105:61: note: previous declaration is here extern cipher_desc *cipher_getdescbyid _PROTO((unsigned char)); ^ cipher.c:145:17: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned char' declared in a previous prototype [-Wknr-promoted-parameter] unsigned char id; ^ ./krypto.h:107:67: note: previous declaration is here extern int cipher_supported _PROTO((unsigned char *, unsigned char)); ^ cipher.c:149:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- cipher_crypt_cfb.o --- --- cipher.o --- for (i = 0; i < strlen (list); i++) ^~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ --- cipher_crypt_cfb.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_crypt_cfb.c --- cipher.o --- 3 warnings generated. --- cipher_crypt_ecb.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_crypt_ecb.c --- cipher_crypt_ofb.o --- --- cipher_test.o --- --- cipher_crypt_ofb.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_crypt_ofb.c --- cipher_test.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_test.c --- hash.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c hash.c --- hash_test.o --- --- cipher_test.o --- cipher_test.c:381:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (i = 0; i < strlen (list); i++) ^~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ cipher_test.c:428:25: warning: passing 'char [40]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] cipher_crypt (ciph, test_data, out, len); ^~~~~~~~~ ./krypto.h:117:59: note: passing argument to parameter here extern void cipher_crypt _PROTO((cipher *, unsigned char *, unsigned char *, ^ cipher_test.c:453:25: warning: passing 'char [40]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] cipher_crypt (ciph, test_data, out, len); ^~~~~~~~~ ./krypto.h:117:59: note: passing argument to parameter here extern void cipher_crypt _PROTO((cipher *, unsigned char *, unsigned char *, ^ cipher_test.c:478:25: warning: passing 'char [40]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] cipher_crypt (ciph, test_data, out, len); ^~~~~~~~~ ./krypto.h:117:59: note: passing argument to parameter here extern void cipher_crypt _PROTO((cipher *, unsigned char *, unsigned char *, ^ cipher_test.c:532:25: warning: passing 'char [40]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] cipher_crypt (ciph, test_data, out, len); ^~~~~~~~~ --- hash_test.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c hash_test.c --- hash.o --- hash.c:79:17: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned char' declared in a previous prototype [-Wknr-promoted-parameter] unsigned char id; ^ ./krypto.h:147:57: note: previous declaration is here extern hash_desc *hash_getdescbyid _PROTO((unsigned char)); ^ hash.c:91:17: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned char' declared in a previous prototype [-Wknr-promoted-parameter] unsigned char id; ^ ./krypto.h:149:65: note: previous declaration is here extern int hash_supported _PROTO((unsigned char *, unsigned char)); ^ hash.c:95:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (i = 0; i < strlen (list); i++) --- cipher_test.o --- ./krypto.h:117:59: note: passing argument to parameter here extern void cipher_crypt _PROTO((cipher *, unsigned char *, unsigned char *, ^ cipher_test.c:641:25: warning: passing 'char [40]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] cipher_crypt (ciph, test_data, out, len); ^~~~~~~~~ ./krypto.h:117:59: note: passing argument to parameter here extern void cipher_crypt _PROTO((cipher *, unsigned char *, unsigned char *, ^ --- hash.o --- ^~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ --- hash_test.o --- hash_test.c:94:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (i = 0; i < strlen (list); i++) ^~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ --- hash.o --- 3 warnings generated. --- krypto.o --- --- cipher_test.o --- 6 warnings generated. --- krypto_rand_conf.o --- --- krypto.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c krypto.c --- hash_test.o --- 1 warning generated. --- krypto_rand_conf.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c krypto_rand_conf.c --- krypto_test.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c krypto_test.c --- cipher_imp_blowfish.o --- --- krypto.o --- krypto.c:215:5: warning: implicit declaration of function 'krypto_rand_conf' is invalid in C99 [-Wimplicit-function-declaration] krypto_rand_conf (confounder, conflen); ^ --- cipher_imp_blowfish.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_imp_blowfish.c --- krypto.o --- 1 warning generated. --- krypto_test.o --- krypto_test.c:59:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (i = 0; i < strlen (clist); i++) ^~~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ krypto_test.c:60:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (j = 0; j < strlen (hlist); j++) ^~~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ krypto_test.c:73:41: warning: passing 'unsigned char [26]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (memcmp (message1, buf2, strlen (message1))) ^~~~~~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ krypto_test.c:79:41: warning: passing 'unsigned char [45]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (memcmp (message2, buf2, strlen (message2))) ^~~~~~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ krypto_test.c:85:41: warning: passing 'unsigned char [26]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (memcmp (message1, buf2, strlen (message1))) ^~~~~~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ --- cipher_imp_des.o --- --- krypto_test.o --- krypto_test.c:91:41: warning: passing 'unsigned char [45]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (memcmp (message2, buf2, strlen (message2))) ^~~~~~~~ /usr/include/string.h:95:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ 6 warnings generated. --- cipher_imp_des.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_imp_des.c --- cipher_imp_cast.o --- --- hash_imp_md5.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c hash_imp_md5.c --- cipher_imp_cast.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c cipher_imp_cast.c --- hash_imp_md5.o --- hash_imp_md5.c:158:27: warning: 'memset' call operates on objects of type 'struct md5Context' while the size is based on a different type 'struct md5Context *' [-Wsizeof-pointer-memaccess] memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ ~~~ ^~~ hash_imp_md5.c:158:27: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)? memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ ^~~ --- cipher_imp_des.o --- cipher_imp_des.c:453:38: warning: 'memcmp' call operates on objects of type 'des_cblock' (aka 'unsigned char [8]') while the size is based on a different type 'des_cblock (*)' (aka 'unsigned char (*)[8]') [-Wsizeof-pointer-memaccess] if (memcmp(weak_keys[i],key,sizeof(key)) == 0) return(1); ~~~ ^~~ cipher_imp_des.c:453:38: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)? if (memcmp(weak_keys[i],key,sizeof(key)) == 0) return(1); ^~~ --- hash_imp_sha.o --- --- hash_imp_md5.o --- 1 warning generated. --- hash_imp_sha.o --- clang -DPACKAGE=\"libkrypto\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_SRAND48=1 -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_GETPID=1 -DCIPHER_BLOWFISH=1 -DCIPHER_DES=1 -DCIPHER_CAST5=1 -DHASH_MD5=1 -DHASH_SHA=1 -I. -I. -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c hash_imp_sha.c --- cipher_imp_des.o --- 1 warning generated. --- libkrypto.a --- rm -f libkrypto.a ar cru libkrypto.a krypto.o cipher.o cipher_crypt_ecb.o cipher_crypt_cbc.o cipher_crypt_cfb.o cipher_crypt_ofb.o hash.o krypto_rand_conf.o cipher_imp_cast.o cipher_imp_blowfish.o cipher_imp_des.o cipher_imp_none.o hash_imp_md5.o hash_imp_sha.o ranlib libkrypto.a --- cipher_test --- --- hash_test --- --- krypto_test --- --- cipher_test --- clang -O2 -Wno-error=return-type -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o cipher_test cipher_test.o libkrypto.a --- hash_test --- clang -O2 -Wno-error=return-type -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o hash_test hash_test.o libkrypto.a --- krypto_test --- clang -O2 -Wno-error=return-type -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o krypto_test krypto_test.o libkrypto.a --- cipher_bench --- clang -O2 -Wno-error=return-type -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o cipher_bench cipher_bench.o libkrypto.a Making all in base --- ./stamp-h.in --- cd . && autoheader WARNING: 'autoheader' is missing on your system. You should only need it if you modified 'acconfig.h' or 'configure.in'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site. --- all-recursive-am --- /usr/pkg/bin/bmake all-recursive --- all-recursive --- Making all in lib --- gshadow.o --- --- lockpw.o --- --- sgroupio.o --- --- gshadow.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c gshadow.c --- lockpw.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c lockpw.c --- sgroupio.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c sgroupio.c --- shadow.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c shadow.c --- lockpw.o --- In file included from lockpw.c:37: ./prototypes.h:20:10: fatal error: 'utmp.h' file not found #include ^~~~~~~~ --- utent.o --- --- lockpw.o --- 1 error generated. *** [lockpw.o] Error code 1 bmake[3]: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4/base/lib --- utent.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/usr/pkg/include -O2 -Wno-error=return-type -I/usr/pkg/include -c utent.c --- shadow.o --- In file included from shadow.c:39: ./prototypes.h:20:10: fatal error: 'utmp.h' file not found #include ^~~~~~~~ 1 error generated. *** [shadow.o] Error code 1 bmake[3]: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4/base/lib --- utent.o --- utent.c:37:10: fatal error: 'utmp.h' file not found #include ^~~~~~~~ 1 error generated. *** [utent.o] Error code 1 bmake[3]: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4/base/lib 3 errors bmake[3]: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4/base/lib *** [all-recursive] Error code 1 bmake[2]: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4/base 1 error bmake[2]: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4/base *** [all-recursive-am] Error code 2 bmake[1]: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4/base 1 error bmake[1]: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4/base *** [all-recursive] Error code 1 bmake: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4 1 error bmake: stopped in /var/pkgsrc/work/security/srp_client/work/srp-1.4.4 *** Error code 2 Stop. bmake[1]: stopped in /usr/pkgsrc/security/srp_client *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/security/srp_client