=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for srp-client-1.4.4nb2 --- all-recursive --- Making all in libsrp --- 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_client.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_client.c --- t_conf.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_conf.c --- t_conv.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_conv.c --- t_getpass.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_getpass.c --- t_sha.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_sha.c --- t_math.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_math.c --- t_misc.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_misc.c --- t_pw.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_pw.c --- 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_getpass.o --- t_getpass.c:165:9: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] kill (getpid (), SIGINT); ^ --- 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_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_getpass.o --- 1 warning generated. --- t_read.o --- --- 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()); ~~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ t_misc.c:117:3: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink(dotpath); ^ 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_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_read.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_read.c --- 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] (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_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_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_conf.o --- 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] --- t_conv.o --- 1 warning generated. --- t_conf.o --- /*#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_server.o --- --- t_client.o --- 4 warnings generated. --- t_pw.o --- 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_truerand.o --- --- t_pw.o --- 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: non-void function does not return a value in all control paths [-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_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 */ ^ ./nys_config.h:46:23: warning: '/*' within block comment [-Wcomment] /*#undef ENABLE_DBM /* NSSwitch DBM support */ ^ --- t_server.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_server.c --- t_math.o --- 2 warnings generated. --- yp_misc.o --- --- t_truerand.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c t_truerand.c --- yp_misc.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c yp_misc.c --- t_misc.o --- 10 warnings generated. --- yp_tpasswd.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/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 */ ^ --- yp_tconf.o --- --- yp_misc.o --- 4 warnings generated. --- yp_tconf.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c yp_tconf.c --- nsw_tpasswd.o --- --- t_conf.o --- 12 warnings generated. --- nsw_tpasswd.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c nsw_tpasswd.c --- t_pw.o --- 17 warnings generated. --- 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)); ^ --- nsw_tconf.o --- --- nsswitch.o --- --- nsw_tconf.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c nsw_tconf.c --- nsswitch.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c nsswitch.c --- 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 */ ^ --- t_truerand.o --- t_truerand.c:88:1: warning: non-void function does not return a value [-Wreturn-type] } ^ --- yp_tpasswd.o --- 4 warnings generated. --- yp_tconf.o --- In file included from yp_tconf.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 */ ^ --- clitest.o --- --- yp_tconf.o --- 4 warnings generated. --- clitest.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c clitest.c --- 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 */ ^ --- srvtest.o --- --- nsw_tpasswd.o --- 4 warnings generated. --- t_truerand.o --- 1 warning generated. --- t_server.o --- 1 warning generated. --- 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 */ ^ --- srvtest.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c srvtest.c --- getpwtest.o --- --- srptest.o --- --- nsw_tconf.o --- 4 warnings generated. --- srpbench.o --- --- srptest.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c srptest.c --- getpwtest.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c getpwtest.c --- ./stamp-h.in --- --- 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 */ ^ --- srpbench.o --- clang -DHAVE_CONFIG_H -I. -I. -I. -I../include -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c srpbench.c --- ./stamp-h.in --- cd . && autoheader --- 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)); ^ 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)); ^ --- 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] --- ./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. --- srvtest.o --- 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)); ^ --- 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: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 *)); ^ --- 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)); ^ --- 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' --- 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)); ^ --- 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)); ^ --- clitest.o --- 12 warnings generated. --- nsswitch.o --- 4 warnings generated. --- stamp-h --- --- getpwtest.o --- 2 warnings generated. --- srpbench.o --- 4 warnings generated. --- stamp-h --- cd . && CONFIG_FILES= CONFIG_HEADERS=config.h /bin/sh ./config.status --- srvtest.o --- 8 warnings generated. --- t_sha.o --- 1 warning generated. --- libsrp.a --- rm -f libsrp.a --- srptest.o --- 5 warnings generated. --- 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 --- creating config.h --- libsrp.a --- ranlib libsrp.a --- clitest --- --- srvtest --- --- getpwtest --- --- srptest --- --- srpbench --- --- srvtest --- clang -O2 -Wno-error=return-type -I/opt/pkg/include -L/opt/pkg/lib -o srvtest srvtest.o libsrp.a -L../lib -lgmp --- clitest --- clang -O2 -Wno-error=return-type -I/opt/pkg/include -L/opt/pkg/lib -o clitest clitest.o libsrp.a -L../lib -lgmp --- srptest --- clang -O2 -Wno-error=return-type -I/opt/pkg/include -L/opt/pkg/lib -o srptest srptest.o libsrp.a -L../lib -lgmp --- getpwtest --- clang -O2 -Wno-error=return-type -I/opt/pkg/include -L/opt/pkg/lib -o getpwtest getpwtest.o libsrp.a -L../lib -lgmp --- srpbench --- clang -O2 -Wno-error=return-type -I/opt/pkg/include -L/opt/pkg/lib -o srpbench srpbench.o libsrp.a -L../lib -lgmp --- stamp-h --- config.h is unchanged Making all in libkrypto --- cipher_bench.o --- --- cipher_imp_none.o --- --- cipher.o --- --- cipher_crypt_cbc.o --- --- cipher_crypt_cfb.o --- --- cipher_crypt_ecb.o --- --- cipher_crypt_ofb.o --- --- cipher_test.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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c cipher.c --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c cipher_crypt_cbc.c --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c cipher_crypt_cfb.c --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c cipher_crypt_ecb.c --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c cipher_test.c --- 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, ^~~~~~~~~~~~~~~~~~~ --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c hash.c --- 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++) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ 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); ^~~~~~~~~ ./krypto.h:117:59: note: passing argument to parameter here extern void cipher_crypt _PROTO((cipher *, unsigned char *, unsigned char *, ^ --- cipher_bench.o --- 5 warnings generated. --- cipher_test.o --- 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 *, ^ --- 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] for (i = 0; i < strlen (list); i++) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ --- hash_test.o --- --- krypto.o --- --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c hash_test.c --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c krypto.c --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c krypto_test.c --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c cipher_imp_blowfish.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++) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ --- 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++) ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ --- cipher_test.o --- 6 warnings generated. --- 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_des.o --- --- hash.o --- 3 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c cipher_imp_des.c --- cipher.o --- 3 warnings generated. --- cipher_imp_cast.o --- --- hash_imp_md5.o --- --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c cipher_imp_cast.c --- 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c hash_imp_md5.c --- 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++) ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ 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++) ^~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ 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))) ^~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ 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))) ^~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ 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))) ^~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ 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))) ^~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ --- hash_imp_sha.o --- --- krypto_test.o --- 6 warnings 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/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c hash_imp_sha.c --- krypto.o --- 1 warning generated. --- hash_test.o --- 1 warning generated. --- 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_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 */ ^~~ 1 warning generated. --- 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_bench --- --- cipher_test --- clang -O2 -Wno-error=return-type -I/opt/pkg/include -L/opt/pkg/lib -o cipher_test cipher_test.o libkrypto.a --- hash_test --- clang -O2 -Wno-error=return-type -I/opt/pkg/include -L/opt/pkg/lib -o hash_test hash_test.o libkrypto.a --- cipher_bench --- clang -O2 -Wno-error=return-type -I/opt/pkg/include -L/opt/pkg/lib -o cipher_bench cipher_bench.o libkrypto.a --- krypto_test --- clang -O2 -Wno-error=return-type -I/opt/pkg/include -L/opt/pkg/lib -o krypto_test krypto_test.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. --- stamp-h --- cd . && CONFIG_FILES= CONFIG_HEADERS=config.h /bin/sh ./config.status creating config.h config.h is unchanged --- all-recursive-am --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in lib --- gshadow.o --- --- lockpw.o --- --- sgroupio.o --- --- shadow.o --- --- utent.o --- --- putspent.o --- --- md5.o --- --- putgrent.o --- --- gshadow.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c gshadow.c --- lockpw.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c lockpw.c --- sgroupio.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c sgroupio.c --- shadow.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c shadow.c --- putspent.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c putspent.c --- putgrent.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c putgrent.c --- utent.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c utent.c --- md5.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c md5.c --- commonio.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c commonio.c --- dialchk.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c dialchk.c --- shadow.o --- In file included from shadow.c:39: In file included from ./prototypes.h:25: ./defines.h:56:9: warning: 'bzero' macro redefined [-Wmacro-redefined] #define bzero(ptr, size) memset((ptr), 0, (size)) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ --- lockpw.o --- In file included from lockpw.c:37: In file included from ./prototypes.h:25: ./defines.h:56:9: warning: 'bzero' macro redefined [-Wmacro-redefined] #define bzero(ptr, size) memset((ptr), 0, (size)) ^ --- putspent.o --- In file included from putspent.c:39: In file included from ./prototypes.h:25: ./defines.h:56:9: warning: 'bzero' macro redefined [-Wmacro-redefined] #define bzero(ptr, size) memset((ptr), 0, (size)) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ --- lockpw.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ --- putgrent.o --- In file included from putgrent.c:34: In file included from ./prototypes.h:25: ./defines.h:56:9: warning: 'bzero' macro redefined [-Wmacro-redefined] --- putspent.o --- In file included from putspent.c:39: ./prototypes.h:80:38: warning: 'utmp' is deprecated [-Wdeprecated-declarations] extern void failtmp P_((const struct utmp *)); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ --- putgrent.o --- #define bzero(ptr, size) memset((ptr), 0, (size)) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ --- putspent.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ --- utent.o --- In file included from utent.c:34: ./defines.h:56:9: warning: 'bzero' macro redefined [-Wmacro-redefined] #define bzero(ptr, size) memset((ptr), 0, (size)) ^ --- putgrent.o --- In file included from putgrent.c:34: ./prototypes.h:80:38: warning: 'utmp' is deprecated [-Wdeprecated-declarations] extern void failtmp P_((const struct utmp *)); ^ --- utent.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ --- shadow.o --- In file included from shadow.c:39: ./prototypes.h:80:38: warning: 'utmp' is deprecated [-Wdeprecated-declarations] extern void failtmp P_((const struct utmp *)); ^ --- putgrent.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ --- shadow.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ --- lockpw.o --- In file included from lockpw.c:37: ./prototypes.h:80:38: warning: 'utmp' is deprecated [-Wdeprecated-declarations] extern void failtmp P_((const struct utmp *)); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ --- utent.o --- utent.c:44:15: warning: 'utmp' is deprecated [-Wdeprecated-declarations] static struct utmp utmp_buf; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; --- lockpw.o --- /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ --- utent.o --- ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ --- lockpw.o --- lockpw.c:94:7: warning: implicit declaration of function 'tpw_lock' is invalid in C99 [-Wimplicit-function-declaration] if (tpw_lock ()) ^ --- utent.o --- utent.c:54:24: error: use of undeclared identifier '_UTMP_FILE' if ((utmp_fd = open (_UTMP_FILE, O_RDWR)) == -1) ^ utent.c:55:20: error: use of undeclared identifier '_UTMP_FILE' utmp_fd = open (_UTMP_FILE, O_RDONLY); ^ utent.c:78:8: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp * ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utent.c:99:15: warning: 'utmp' is deprecated [-Wdeprecated-declarations] const struct utmp *utent; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ --- lockpw.o --- lockpw.c:124:43: warning: implicit declaration of function 'tpw_unlock' is invalid in C99 [-Wimplicit-function-declaration] return (pw_unlock () && spw_unlock () && tpw_unlock ()) ? 0:-1; ^ --- utent.o --- utent.c:97:8: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp * ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utent.c:101:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp save; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utent.c:102:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp *new; --- putspent.o --- 2 warnings generated. --- utent.o --- ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ utent.c:105:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (new = getutent ()) ~~~~^~~~~~~~~~~~~ utent.c:105:13: note: place parentheses around the assignment to silence this warning while (new = getutent ()) ^ ( ) utent.c:105:13: note: use '==' to turn this assignment into an equality comparison while (new = getutent ()) ^ == utent.c:111:17: warning: 'utmp' is deprecated [-Wdeprecated-declarations] return (struct utmp *) 0; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ 9 warnings and 2 errors generated. --- dialup.o --- --- utent.o --- *** [utent.o] Error code 1 bmake[3]: stopped in /opt/work/security/srp_client/work/srp-1.4.4/base/lib --- putgrent.o --- 2 warnings generated. --- lockpw.o --- 4 warnings generated. --- dialup.o --- clang -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../../libsrp -Dunix=1 -I/opt/pkg/include -O2 -Wno-error=return-type -I/opt/pkg/include -c dialup.c --- commonio.o --- In file included from commonio.c:7: ./defines.h:56:9: warning: 'bzero' macro redefined [-Wmacro-redefined] #define bzero(ptr, size) memset((ptr), 0, (size)) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ --- shadow.o --- 2 warnings generated. --- commonio.o --- commonio.c:321:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ --- dialchk.o --- In file included from dialchk.c:36: In file included from ./prototypes.h:25: ./defines.h:56:9: warning: 'bzero' macro redefined [-Wmacro-redefined] #define bzero(ptr, size) memset((ptr), 0, (size)) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ In file included from dialchk.c:36: ./prototypes.h:80:38: warning: 'utmp' is deprecated [-Wdeprecated-declarations] extern void failtmp P_((const struct utmp *)); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ 2 warnings generated. --- dialup.o --- In file included from dialup.c:36: In file included from ./prototypes.h:25: ./defines.h:56:9: warning: 'bzero' macro redefined [-Wmacro-redefined] #define bzero(ptr, size) memset((ptr), 0, (size)) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_strings.h:52:9: note: previous definition is here #define bzero(dest, ...) \ ^ In file included from dialup.c:36: ./prototypes.h:80:38: warning: 'utmp' is deprecated [-Wdeprecated-declarations] extern void failtmp P_((const struct utmp *)); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ 2 warnings generated. --- commonio.o --- 2 warnings generated. 1 error bmake[3]: stopped in /opt/work/security/srp_client/work/srp-1.4.4/base/lib *** [all-recursive] Error code 1 bmake[2]: stopped in /opt/work/security/srp_client/work/srp-1.4.4/base 1 error bmake[2]: stopped in /opt/work/security/srp_client/work/srp-1.4.4/base *** [all-recursive-am] Error code 2 bmake[1]: stopped in /opt/work/security/srp_client/work/srp-1.4.4/base 1 error bmake[1]: stopped in /opt/work/security/srp_client/work/srp-1.4.4/base *** [all-recursive] Error code 1 bmake: stopped in /opt/work/security/srp_client/work/srp-1.4.4 1 error bmake: stopped in /opt/work/security/srp_client/work/srp-1.4.4 *** Error code 2 Stop. bmake[1]: stopped in /opt/pkgsrc/security/srp_client *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/security/srp_client