+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/qpasswd-0.5/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/qpasswd-0.5/work.log ===> Building for qpasswd-0.5 => Substituting "paths" in man/checkqpasswd.8 man/qpasswd.5 qpasswd_gethome.c usage.c do_checkqpasswd.c params.h params.h do_checkqpasswd.c qpasswd_gethome.c usage.c INFO: [subst.mk:paths] Nothing changed in "params.h". INFO: [subst.mk:paths] Nothing changed in "do_checkqpasswd.c". INFO: [subst.mk:paths] Nothing changed in "qpasswd_gethome.c". INFO: [subst.mk:paths] Nothing changed in "usage.c". --- buffer.o --- --- buffer_flush.o --- --- buffer_put.o --- --- buffer_write.o --- --- buffer.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c buffer.c -o buffer.o --- buffer_flush.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c buffer_flush.c -o buffer_flush.o --- buffer_put.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c buffer_put.c -o buffer_put.o --- buffer_write.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c buffer_write.c -o buffer_write.o --- buffer_put.o --- In file included from buffer.h:4, from buffer_put.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | buffer_put.c: In function 'buffer_put': buffer_put.c:5:27: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 5 | size_t len=strlen(msg); | ^~~ | | | const u8 * {aka const unsigned char *} In file included from /usr/include/string.h:34, from qpasswd.h:22: /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'const u8 *' {aka 'const unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ buffer_put.c:14:43: warning: pointer targets in passing argument 2 of 'buffer_write' differ in signedness [-Wpointer-sign] 14 | rlen+=buffer_write(b->fd, msg, len); | ^~~ | | | const u8 * {aka const unsigned char *} buffer.h:15:45: note: expected 'const char *' but argument is of type 'const u8 *' {aka 'const unsigned char *'} 15 | extern int buffer_write(int fd, const char *s, ssize_t n); | ~~~~~~~~~~~~^ --- buffer.o --- In file included from buffer.h:4, from buffer.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- buffer_flush.o --- In file included from buffer.h:4, from buffer_flush.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | buffer_flush.c: In function 'buffer_flush': buffer_flush.c:8:43: warning: pointer targets in passing argument 2 of 'buffer_write' differ in signedness [-Wpointer-sign] 8 | rlen=buffer_write(b->fd, b->b, b->l); | ~^~~ | | | u8 * {aka unsigned char *} buffer.h:15:45: note: expected 'const char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 15 | extern int buffer_write(int fd, const char *s, ssize_t n); | ~~~~~~~~~~~~^ --- die1.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c die1.c -o die1.o --- buffer_write.o --- In file included from buffer_write.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- die111.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c die111.c -o die111.o --- die2.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c die2.c -o die2.o --- die1.o --- In file included from die1.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- die_env.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c die_env.c -o die_env.o --- die_msg.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c die_msg.c -o die_msg.o --- die_env.o --- In file included from die_env.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- die111.o --- In file included from die111.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- die_shell.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c die_shell.c -o die_shell.o --- die2.o --- In file included from die2.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- do_checkpasswd.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c do_checkpasswd.c -o do_checkpasswd.o --- do_checkqpasswd.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c do_checkqpasswd.c -o do_checkqpasswd.o --- die_msg.o --- In file included from die_msg.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- die_shell.o --- In file included from die_shell.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- do_checkqpasswd.o --- In file included from do_checkqpasswd.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- doexit.o --- --- do_checkqpasswd.o --- do_checkqpasswd.c: In function 'do_checkqpasswd': do_checkqpasswd.c:50:40: warning: pointer targets in passing argument 1 of 'case_diffb' differ in signedness [-Wpointer-sign] 50 | if (case_diffb(e_sasl, len, sasl[i]) == 0) | ^~~~~~ | | | char * In file included from do_checkqpasswd.c:4: case.h:6:33: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 6 | extern int case_diffb(const u8 *s, int len, const u8 *t); | ~~~~~~~~~~^ do_checkqpasswd.c:50:57: warning: pointer targets in passing argument 3 of 'case_diffb' differ in signedness [-Wpointer-sign] 50 | if (case_diffb(e_sasl, len, sasl[i]) == 0) | ~~~~^~~ | | | const char * case.h:6:55: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'const char *' 6 | extern int case_diffb(const u8 *s, int len, const u8 *t); | ~~~~~~~~~~^ do_checkqpasswd.c:93:36: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 93 | method=2; e=encrypted; | ^ do_checkqpasswd.c:99:44: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 99 | if (!strcmp(r_pass,encrypted)) goto okay; | ^~~~~~~~~ | | | unsigned char * In file included from /usr/include/string.h:34, from qpasswd.h:22: /usr/include/iso/string_iso.h:74:33: note: expected 'const char *' but argument is of type 'unsigned char *' 74 | extern int strcmp(const char *, const char *); | ^~~~~~~~~~~~ do_checkqpasswd.c:105:36: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 105 | method=3; e=encrypted; | ^ do_checkqpasswd.c:106:34: warning: pointer targets in passing argument 1 of 'hmac_md5' differ in signedness [-Wpointer-sign] 106 | hmac_md5(r_pass, l_pass, digest); | ^~~~~~ | | | char * In file included from crypto.h:5, from do_checkqpasswd.c:3: md5.h:28:26: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 28 | extern void hmac_md5(u8 *text, u8 *key, u8 *digest); | ~~~~^~~~ do_checkqpasswd.c:106:42: warning: pointer targets in passing argument 2 of 'hmac_md5' differ in signedness [-Wpointer-sign] 106 | hmac_md5(r_pass, l_pass, digest); | ^~~~~~ | | | char * md5.h:28:36: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 28 | extern void hmac_md5(u8 *text, u8 *key, u8 *digest); | ~~~~^~~ do_checkqpasswd.c:112:45: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 112 | if (!strcmp(r_greet,encrypted)) goto okay; | ^~~~~~~~~ | | | unsigned char * /usr/include/iso/string_iso.h:74:33: note: expected 'const char *' but argument is of type 'unsigned char *' 74 | extern int strcmp(const char *, const char *); | ^~~~~~~~~~~~ do_checkqpasswd.c:119:36: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 119 | method=4; e=encrypted; | ^ do_checkqpasswd.c:120:35: warning: pointer targets in passing argument 1 of 'hmac_sha1' differ in signedness [-Wpointer-sign] 120 | hmac_sha1(r_pass, l_pass, digest); | ^~~~~~ | | | char * In file included from crypto.h:6: sha1.h:22:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 22 | extern void hmac_sha1(u8 *text, u8 *key, u8 *digest); | ~~~~^~~~ do_checkqpasswd.c:120:43: warning: pointer targets in passing argument 2 of 'hmac_sha1' differ in signedness [-Wpointer-sign] 120 | hmac_sha1(r_pass, l_pass, digest); | ^~~~~~ | | | char * sha1.h:22:37: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 22 | extern void hmac_sha1(u8 *text, u8 *key, u8 *digest); | ~~~~^~~ do_checkqpasswd.c:126:45: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 126 | if (!strcmp(r_greet,encrypted)) goto okay; | ^~~~~~~~~ | | | unsigned char * /usr/include/iso/string_iso.h:74:33: note: expected 'const char *' but argument is of type 'unsigned char *' 74 | extern int strcmp(const char *, const char *); | ^~~~~~~~~~~~ do_checkqpasswd.c:133:36: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 133 | method=5; e=encrypted; | ^ do_checkqpasswd.c:134:37: warning: pointer targets in passing argument 1 of 'hmac_rmd160' differ in signedness [-Wpointer-sign] 134 | hmac_rmd160(r_pass, l_pass, digest); | ^~~~~~ | | | char * In file included from crypto.h:7: rmd.h:19:29: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 19 | extern void hmac_rmd160(u8 *text, u8 *key, u8 *digest); | ~~~~^~~~ --- doexit.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c doexit.c -o doexit.o --- do_checkpasswd.o --- In file included from do_checkpasswd.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- do_checkqpasswd.o --- do_checkqpasswd.c:134:45: warning: pointer targets in passing argument 2 of 'hmac_rmd160' differ in signedness [-Wpointer-sign] 134 | hmac_rmd160(r_pass, l_pass, digest); | ^~~~~~ | | | char * rmd.h:19:39: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 19 | extern void hmac_rmd160(u8 *text, u8 *key, u8 *digest); | ~~~~^~~ do_checkqpasswd.c:140:45: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 140 | if (!strcmp(r_greet,encrypted)) goto okay; | ^~~~~~~~~ | | | unsigned char * /usr/include/iso/string_iso.h:74:33: note: expected 'const char *' but argument is of type 'unsigned char *' 74 | extern int strcmp(const char *, const char *); | ^~~~~~~~~~~~ do_checkqpasswd.c:165:36: warning: pointer targets in passing argument 1 of 'open_file' differ in signedness [-Wpointer-sign] 165 | fd=open_ro(r_greet); | ^~~~~~~ | | | char * qpasswd.h:70:31: note: in definition of macro 'open_ro' 70 | #define open_ro(fn) open_file(fn,O_RDONLY) | ^~ qpasswd.h:69:43: note: expected 'const unsigned char *' but argument is of type 'char *' 69 | extern int open_file(const unsigned char *fn, int flags); | ~~~~~~~~~~~~~~~~~~~~~^~ do_checkqpasswd.c:207:31: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 207 | for (e=ea1,j=0; j<16; j++) { | ^ do_checkqpasswd.c:218:31: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 218 | for (e=ea2,j=0; j<16; j++) { | ^ do_checkqpasswd.c:237:31: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 237 | for (e=encrypted,j=0; j<16; j++) { | ^ do_checkqpasswd.c:242:44: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 242 | if (!strcmp(r_pass,encrypted)) { | ^~~~~~~~~ | | | unsigned char * /usr/include/iso/string_iso.h:74:33: note: expected 'const char *' but argument is of type 'unsigned char *' 74 | extern int strcmp(const char *, const char *); | ^~~~~~~~~~~~ do_checkqpasswd.c:247:39: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 247 | for (e=ea2,j=0; j<16; j++) { | ^ do_checkqpasswd.c:266:39: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 266 | for (e=encrypted,j=0; j<16; j++) { | ^ do_checkqpasswd.c:271:47: warning: pointer targets in passing argument 1 of 'open_file' differ in signedness [-Wpointer-sign] 271 | fd=open_trunc(r_greet); | ^~~~~~~ | | | char * qpasswd.h:73:34: note: in definition of macro 'open_trunc' 73 | #define open_trunc(fn) open_file(fn,O_RDWR|O_TRUNC|O_CREAT) | ^~ qpasswd.h:69:43: note: expected 'const unsigned char *' but argument is of type 'char *' 69 | extern int open_file(const unsigned char *fn, int flags); | ~~~~~~~~~~~~~~~~~~~~~^~ do_checkqpasswd.c:280:44: warning: pointer targets in passing argument 1 of 'fmt_str' differ in signedness [-Wpointer-sign] 280 | e+=fmt_str(e, "DIGEST_RESPONSE="); | ^ | | | char * In file included from qpasswd.h:36: fmt.h:7:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~^~~ do_checkqpasswd.c:280:47: warning: pointer targets in passing argument 2 of 'fmt_str' differ in signedness [-Wpointer-sign] 280 | e+=fmt_str(e, "DIGEST_RESPONSE="); | ^~~~~~~~~~~~~~~~~~ | | | char * fmt.h:7:42: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~~~~~~~^~~ do_checkqpasswd.c:281:44: warning: pointer targets in passing argument 1 of 'fmt_str' differ in signedness [-Wpointer-sign] 281 | e+=fmt_str(e, r_greet); | ^ | | | char * fmt.h:7:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~^~~ do_checkqpasswd.c:281:47: warning: pointer targets in passing argument 2 of 'fmt_str' differ in signedness [-Wpointer-sign] 281 | e+=fmt_str(e, r_greet); | ^~~~~~~ | | | char * fmt.h:7:42: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~~~~~~~^~~ --- doname.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c doname.c -o doname.o --- douser.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c douser.c -o douser.o --- doexit.o --- In file included from doexit.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- dozero.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c dozero.c -o dozero.o --- douser.o --- In file included from douser.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | douser.c: In function 'douser': douser.c:10:20: warning: pointer targets in passing argument 1 of 'fmt_str' differ in signedness [-Wpointer-sign] 10 | s+=fmt_str(s, " uid="); | ^ | | | char * In file included from qpasswd.h:36: fmt.h:7:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~^~~ douser.c:10:23: warning: pointer targets in passing argument 2 of 'fmt_str' differ in signedness [-Wpointer-sign] 10 | s+=fmt_str(s, " uid="); | ^~~~~~~ | | | char * fmt.h:7:42: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~~~~~~~^~~ douser.c:11:20: warning: pointer targets in passing argument 1 of 'fmt_u32' differ in signedness [-Wpointer-sign] 11 | s+=fmt_u32(s,getuid()); | ^ | | | char * fmt.h:8:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 8 | extern size_t fmt_u32(u8 *dst, const u32 i); | ~~~~^~~ douser.c:12:20: warning: pointer targets in passing argument 1 of 'fmt_str' differ in signedness [-Wpointer-sign] 12 | s+=fmt_str(s, " gid="); | ^ | | | char * fmt.h:7:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~^~~ douser.c:12:23: warning: pointer targets in passing argument 2 of 'fmt_str' differ in signedness [-Wpointer-sign] 12 | s+=fmt_str(s, " gid="); | ^~~~~~~ | | | char * fmt.h:7:42: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~~~~~~~^~~ douser.c:13:20: warning: pointer targets in passing argument 1 of 'fmt_u32' differ in signedness [-Wpointer-sign] 13 | s+=fmt_u32(s,getgid()); | ^ | | | char * fmt.h:8:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 8 | extern size_t fmt_u32(u8 *dst, const u32 i); | ~~~~^~~ douser.c:14:20: warning: pointer targets in passing argument 1 of 'fmt_str' differ in signedness [-Wpointer-sign] 14 | s+=fmt_str(s, " euid="); | ^ | | | char * fmt.h:7:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~^~~ douser.c:14:23: warning: pointer targets in passing argument 2 of 'fmt_str' differ in signedness [-Wpointer-sign] 14 | s+=fmt_str(s, " euid="); | ^~~~~~~~ | | | char * fmt.h:7:42: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~~~~~~~^~~ douser.c:15:20: warning: pointer targets in passing argument 1 of 'fmt_u32' differ in signedness [-Wpointer-sign] 15 | s+=fmt_u32(s,geteuid()); | ^ | | | char * fmt.h:8:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 8 | extern size_t fmt_u32(u8 *dst, const u32 i); | ~~~~^~~ douser.c:16:20: warning: pointer targets in passing argument 1 of 'fmt_str' differ in signedness [-Wpointer-sign] 16 | s+=fmt_str(s, " egid="); | ^ | | | char * fmt.h:7:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~^~~ douser.c:16:23: warning: pointer targets in passing argument 2 of 'fmt_str' differ in signedness [-Wpointer-sign] 16 | s+=fmt_str(s, " egid="); | ^~~~~~~~ | | | char * fmt.h:7:42: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~~~~~~~^~~ douser.c:17:20: warning: pointer targets in passing argument 1 of 'fmt_u32' differ in signedness [-Wpointer-sign] 17 | s+=fmt_u32(s,getegid()); | ^ | | | char * fmt.h:8:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 8 | extern size_t fmt_u32(u8 *dst, const u32 i); | ~~~~^~~ --- dozero.o --- In file included from dozero.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- doname.o --- In file included from doname.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | doname.c: In function 'doname': doname.c:10:47: warning: pointer targets in passing argument 3 of 'log3' differ in signedness [-Wpointer-sign] 10 | if (name && s) { log3(name, ": pid ", s); } | ^ | | | u8 * {aka unsigned char *} qpasswd.h:49:61: note: expected 'const char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 49 | extern int log3(const char *s1, const char *s2, const char *s3); | ~~~~~~~~~~~~^~ doname.c:13:28: warning: pointer targets in passing argument 2 of 'log3' differ in signedness [-Wpointer-sign] 13 | if (s) { log3("[", s, "] "); } | ^ | | | u8 * {aka unsigned char *} qpasswd.h:49:45: note: expected 'const char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 49 | extern int log3(const char *s1, const char *s2, const char *s3); | ~~~~~~~~~~~~^~ --- fd_size.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c fd_size.c -o fd_size.o --- fd_write.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c fd_write.c -o fd_write.o --- fmt_str.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c fmt_str.c -o fmt_str.o --- fd_write.o --- In file included from fd_write.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- fd_size.o --- In file included from fd_size.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- fmt_strn.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c fmt_strn.c -o fmt_strn.o --- fmt_u32.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c fmt_u32.c -o fmt_u32.o --- hextab.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c hextab.c -o hextab.o --- case_diffb.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c case_diffb.c -o case_diffb.o --- hmac_md5.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c hmac_md5.c -o hmac_md5.o --- hmac_rmd160.o --- --- hmac_md5.o --- hmac_md5.c: In function 'hmac_md5': hmac_md5.c:18:32: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 18 | size_t text_len=strlen(text); | ^~~~ | | | u8 * {aka unsigned char *} --- hmac_sha1.o --- --- hmac_md5.o --- In file included from /usr/include/string.h:34, from md5.h:5, from hmac_md5.c:1: /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ hmac_md5.c:19:31: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 19 | size_t key_len=strlen(key); | ^~~ | | | u8 * {aka unsigned char *} /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ --- hmac_rmd160.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c hmac_rmd160.c -o hmac_rmd160.o --- hmac_sha1.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c hmac_sha1.c -o hmac_sha1.o --- log.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c log.c -o log.o --- hmac_sha1.o --- hmac_sha1.c: In function 'hmac_sha1': hmac_sha1.c:18:32: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 18 | size_t text_len=strlen(text); | ^~~~ | | | u8 * {aka unsigned char *} In file included from /usr/include/string.h:34, from sha1.h:5, from hmac_sha1.c:1: /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ hmac_sha1.c:19:31: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 19 | size_t key_len=strlen(key); | ^~~ | | | u8 * {aka unsigned char *} /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ --- hmac_rmd160.o --- hmac_rmd160.c: In function 'hmac_rmd160': hmac_rmd160.c:18:32: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 18 | size_t text_len=strlen(text); | ^~~~ | | | u8 * {aka unsigned char *} In file included from /usr/include/string.h:34, from rmd.h:5, from hmac_rmd160.c:1: /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ hmac_rmd160.c:19:31: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 19 | size_t key_len=strlen(key); | ^~~ | | | u8 * {aka unsigned char *} /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ --- lognl.o --- --- log.o --- In file included from log.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- m_checkpassword.o --- --- log.o --- log.c: In function 'log4': log.c:46:30: warning: pointer targets in passing argument 1 of 'scan_i32' differ in signedness [-Wpointer-sign] 46 | if (scan_i32(e, &fd) > 0) | ^ | | | char * In file included from qpasswd.h:34: scan.h:7:34: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t scan_i32(const u8 *src, i32 *dst); | ~~~~~~~~~~^~~ log.c:52:42: warning: pointer targets in passing argument 2 of 'buffer_put' differ in signedness [-Wpointer-sign] 52 | if (s1) len+=buffer_put(&logbuf, s1); | ^~ | | | const char * In file included from qpasswd.h:33: buffer.h:13:49: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'const char *' 13 | extern size_t buffer_put(buffer_t *b, const u8 *msg); | ~~~~~~~~~~^~~ log.c:53:42: warning: pointer targets in passing argument 2 of 'buffer_put' differ in signedness [-Wpointer-sign] 53 | if (s2) len+=buffer_put(&logbuf, s2); | ^~ | | | const char * buffer.h:13:49: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'const char *' 13 | extern size_t buffer_put(buffer_t *b, const u8 *msg); | ~~~~~~~~~~^~~ log.c:54:42: warning: pointer targets in passing argument 2 of 'buffer_put' differ in signedness [-Wpointer-sign] 54 | if (s3) len+=buffer_put(&logbuf, s3); | ^~ | | | const char * buffer.h:13:49: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'const char *' 13 | extern size_t buffer_put(buffer_t *b, const u8 *msg); | ~~~~~~~~~~^~~ log.c:55:42: warning: pointer targets in passing argument 2 of 'buffer_put' differ in signedness [-Wpointer-sign] 55 | if (s4) len+=buffer_put(&logbuf, s4); | ^~ | | | const char * buffer.h:13:49: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'const char *' 13 | extern size_t buffer_put(buffer_t *b, const u8 *msg); | ~~~~~~~~~~^~~ --- lognl.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c lognl.c -o lognl.o --- m_checkpassword.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c m_checkpassword.c -o m_checkpassword.o --- m_multicheckpw.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c m_multicheckpw.c -o m_multicheckpw.o --- m_qpasswd.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c m_qpasswd.c -o m_qpasswd.o --- lognl.o --- In file included from lognl.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- m_checkpassword.o --- In file included from m_checkpassword.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- maildirmake.o --- --- m_multicheckpw.o --- In file included from m_multicheckpw.c:8: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- maildirmake.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c maildirmake.c -o maildirmake.o --- m_multicheckpw.o --- m_multicheckpw.c: In function 'm_multicheckpw': m_multicheckpw.c:17:26: warning: pointer targets in passing argument 1 of 'scan_u32' differ in signedness [-Wpointer-sign] 17 | if (scan_u32(argv[1],&nprogs) == 0) { | ~~~~^~~ | | | char * In file included from qpasswd.h:34: scan.h:6:34: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 6 | extern size_t scan_u32(const u8 *src, u32 *dst); | ~~~~~~~~~~^~~ m_multicheckpw.c:17:30: warning: pointer targets in passing argument 2 of 'scan_u32' differ in signedness [-Wpointer-sign] 17 | if (scan_u32(argv[1],&nprogs) == 0) { | ^~~~~~~ | | | int * scan.h:6:44: note: expected 'u32 *' {aka 'unsigned int *'} but argument is of type 'int *' 6 | extern size_t scan_u32(const u8 *src, u32 *dst); | ~~~~~^~~ --- m_qpasswd.o --- In file included from m_qpasswd.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- maildirmake.o --- In file included from maildirmake.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- main.o --- --- md5.o --- --- main.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c main.c -o main.o --- md5.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c md5.c -o md5.o --- mmap_file.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c mmap_file.c -o mmap_file.o --- debug.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c debug.c -o debug.o --- main.o --- In file included from main.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- md5.o --- md5.c: In function 'MD5_Final': md5.c:230:30: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] 230 | memset(ctx, 0, sizeof(ctx)); | ^ --- open_file.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c open_file.c -o open_file.o --- mmap_file.o --- In file included from mmap_file.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | mmap_file.c: In function 'mmap_file': mmap_file.c:5:24: warning: pointer targets in passing argument 1 of 'open_file' differ in signedness [-Wpointer-sign] 5 | int fd=open_ro(fn); | ^~ | | | const char * qpasswd.h:70:31: note: in definition of macro 'open_ro' 70 | #define open_ro(fn) open_file(fn,O_RDONLY) | ^~ qpasswd.h:69:43: note: expected 'const unsigned char *' but argument is of type 'const char *' 69 | extern int open_file(const unsigned char *fn, int flags); | ~~~~~~~~~~~~~~~~~~~~~^~ --- debug.o --- In file included from debug.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- qpasswd_gethome.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c qpasswd_gethome.c -o qpasswd_gethome.o --- qpasswd_getpass.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c qpasswd_getpass.c -o qpasswd_getpass.o --- open_file.o --- In file included from open_file.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | open_file.c: In function 'open_file': open_file.c:10:17: warning: pointer targets in passing argument 1 of 'open' differ in signedness [-Wpointer-sign] 10 | fd=open(fn, O_NONBLOCK|flags, 0600); | ^~ | | | const unsigned char * In file included from qpasswd.h:24: /usr/include/fcntl.h:132:17: note: expected 'const char *' but argument is of type 'const unsigned char *' 132 | extern int open(const char *, int, ...); | ^~~~~~~~~~~~ --- qpasswd_lastpop_check.o --- --- qpasswd_gethome.o --- In file included from qpasswd_gethome.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | qpasswd_gethome.c: In function 'qpasswd_gethome': qpasswd_gethome.c:59:42: warning: pointer targets in passing argument 1 of 'fmt_strn' differ in signedness [-Wpointer-sign] 59 | homebuf[fmt_strn(homebuf, map+tmp+1, sep1-tmp-1)]=0; | ^~~~~~~ | | | char * In file included from qpasswd.h:36: fmt.h:6:28: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 6 | extern size_t fmt_strn(u8 *dst, const u8 *src, size_t limit); | ~~~~^~~ qpasswd_gethome.c:59:58: warning: pointer targets in passing argument 2 of 'fmt_strn' differ in signedness [-Wpointer-sign] 59 | homebuf[fmt_strn(homebuf, map+tmp+1, sep1-tmp-1)]=0; | ~~~~~~~^~ | | | char * fmt.h:6:43: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 6 | extern size_t fmt_strn(u8 *dst, const u8 *src, size_t limit); | ~~~~~~~~~~^~~ qpasswd_gethome.c:62:46: warning: pointer targets in passing argument 1 of 'scan_u32' differ in signedness [-Wpointer-sign] 62 | if (scan_u32(map+sep1+1, uid) < 1) goto next; | ~~~~~~~~^~ | | | char * In file included from qpasswd.h:34: scan.h:6:34: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 6 | extern size_t scan_u32(const u8 *src, u32 *dst); | ~~~~~~~~~~^~~ qpasswd_gethome.c:62:50: warning: pointer targets in passing argument 2 of 'scan_u32' differ in signedness [-Wpointer-sign] 62 | if (scan_u32(map+sep1+1, uid) < 1) goto next; | ^~~ | | | int * scan.h:6:44: note: expected 'u32 *' {aka 'unsigned int *'} but argument is of type 'int *' 6 | extern size_t scan_u32(const u8 *src, u32 *dst); | ~~~~~^~~ qpasswd_gethome.c:63:46: warning: pointer targets in passing argument 1 of 'scan_u32' differ in signedness [-Wpointer-sign] 63 | if (scan_u32(map+sep2+1, gid) < 1) goto next; | ~~~~~~~~^~ | | | char * scan.h:6:34: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 6 | extern size_t scan_u32(const u8 *src, u32 *dst); | ~~~~~~~~~~^~~ qpasswd_gethome.c:63:50: warning: pointer targets in passing argument 2 of 'scan_u32' differ in signedness [-Wpointer-sign] 63 | if (scan_u32(map+sep2+1, gid) < 1) goto next; | ^~~ | | | int * scan.h:6:44: note: expected 'u32 *' {aka 'unsigned int *'} but argument is of type 'int *' 6 | extern size_t scan_u32(const u8 *src, u32 *dst); | ~~~~~^~~ --- qpasswd_getpass.o --- In file included from qpasswd_getpass.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- qpasswd_lastpop_check.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c qpasswd_lastpop_check.c -o qpasswd_lastpop_check.o --- qpasswd_gethome.o --- qpasswd_gethome.c:84:58: warning: pointer targets in passing argument 1 of 'fmt_strn' differ in signedness [-Wpointer-sign] 84 | homebuf[fmt_strn(homebuf, | ^~~~~~~ | | | char * fmt.h:6:28: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 6 | extern size_t fmt_strn(u8 *dst, const u8 *src, size_t limit); | ~~~~^~~ qpasswd_gethome.c:85:64: warning: pointer targets in passing argument 2 of 'fmt_strn' differ in signedness [-Wpointer-sign] 85 | map+tmp+userlen+1, | ~~~~~~~~~~~~~~~^~ | | | char * fmt.h:6:43: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 6 | extern size_t fmt_strn(u8 *dst, const u8 *src, size_t limit); | ~~~~~~~~~~^~~ --- qpasswd_getpass.o --- qpasswd_getpass.c: In function 'qpasswd_getpass': --- qpasswd_gethome.o --- qpasswd_gethome.c:90:52: warning: pointer targets in passing argument 1 of 'fmt_str' differ in signedness [-Wpointer-sign] 90 | s+=fmt_str(s, "/"); | ^ | | | char * fmt.h:7:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~^~~ --- qpasswd_getpass.o --- qpasswd_getpass.c:10:19: warning: pointer targets in passing argument 1 of 'fmt_str' differ in signedness [-Wpointer-sign] 10 | i=fmt_str(pwfile, home); | ^~~~~~ | | | char * --- qpasswd_gethome.o --- qpasswd_gethome.c:90:55: warning: pointer targets in passing argument 2 of 'fmt_str' differ in signedness [-Wpointer-sign] 90 | s+=fmt_str(s, "/"); | ^~~ | | | char * fmt.h:7:42: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~~~~~~~^~~ --- qpasswd_getpass.o --- In file included from qpasswd.h:36: fmt.h:7:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~^~~ qpasswd_getpass.c:10:27: warning: pointer targets in passing argument 2 of 'fmt_str' differ in signedness [-Wpointer-sign] 10 | i=fmt_str(pwfile, home); | ^~~~ | | | char * fmt.h:7:42: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~~~~~~~^~~ --- qpasswd_gethome.o --- qpasswd_gethome.c:91:53: warning: pointer targets in passing argument 1 of 'fmt_strn' differ in signedness [-Wpointer-sign] 91 | s+=fmt_strn(s, map+tmp+userlen+1, | ^ | | | char * fmt.h:6:28: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 6 | extern size_t fmt_strn(u8 *dst, const u8 *src, size_t limit); | ~~~~^~~ qpasswd_gethome.c:91:71: warning: pointer targets in passing argument 2 of 'fmt_strn' differ in signedness [-Wpointer-sign] 91 | s+=fmt_strn(s, map+tmp+userlen+1, | ~~~~~~~~~~~~~~~^~ | | | char * fmt.h:6:43: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 6 | extern size_t fmt_strn(u8 *dst, const u8 *src, size_t limit); | ~~~~~~~~~~^~~ --- qpasswd_getpass.o --- qpasswd_getpass.c:11:30: warning: pointer targets in passing argument 1 of 'fmt_str' differ in signedness [-Wpointer-sign] 11 | pwfile[fmt_str(pwfile+i, "/.qpasswd")+i]=0; | ~~~~~~^~ | | | char * fmt.h:7:27: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~^~~ qpasswd_getpass.c:11:34: warning: pointer targets in passing argument 2 of 'fmt_str' differ in signedness [-Wpointer-sign] 11 | pwfile[fmt_str(pwfile+i, "/.qpasswd")+i]=0; | ^~~~~~~~~~~ | | | char * fmt.h:7:42: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t fmt_str(u8 *dst, const u8 *src); | ~~~~~~~~~~^~~ --- qpasswd_lastpop_check.o --- In file included from qpasswd_lastpop_check.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- qpasswd_lastpop_update.o --- --- read3.o --- --- qpasswd_lastpop_update.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c qpasswd_lastpop_update.c -o qpasswd_lastpop_update.o --- read3.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c read3.c -o read3.o --- rmd160.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c rmd160.c -o rmd160.o --- read3.o --- In file included from read3.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | read3.c: In function 'read3': read3.c:11:30: warning: pointer targets in passing argument 1 of 'scan_i32' differ in signedness [-Wpointer-sign] 11 | if (scan_i32(e, &fd) == 0) | ^ | | | char * In file included from qpasswd.h:34: scan.h:7:34: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 7 | extern size_t scan_i32(const u8 *src, i32 *dst); | ~~~~~~~~~~^~~ --- qpasswd_lastpop_update.o --- In file included from qpasswd_lastpop_update.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- scan_i32.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c scan_i32.c -o scan_i32.o --- scan_ip4.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c scan_ip4.c -o scan_ip4.o --- scan_plusminus.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c scan_plusminus.c -o scan_plusminus.o --- scan_ip4.o --- In file included from scan.h:4, from scan_ip4.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- scan_plusminus.o --- In file included from scan.h:4, from scan_plusminus.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- scan_i32.o --- In file included from scan.h:4, from scan_i32.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- scan_u32.o --- --- sha1.o --- --- scan_u32.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c scan_u32.c -o scan_u32.o --- sha1.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c sha1.c -o sha1.o --- sig_catch.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c sig_catch.c -o sig_catch.o sig_catch.c: In function 'sig_catch': sig_catch.c:5:26: error: storage size of 'sa' isn't known 5 | struct sigaction sa; | ^~ sig_catch.c:9:9: warning: implicit declaration of function 'sigemptyset' [-Wimplicit-function-declaration] 9 | sigemptyset(&sa.sa_mask); | ^~~~~~~~~~~ sig_catch.c:10:9: warning: implicit declaration of function 'sigaction' [-Wimplicit-function-declaration] 10 | sigaction(sig, &sa, (struct sigaction *)0); | ^~~~~~~~~ sig_catch.c:5:26: warning: unused variable 'sa' [-Wunused-variable] 5 | struct sigaction sa; | ^~ --- scan_u32.o --- In file included from scan.h:4, from scan_u32.c:1: qpasswd.h:48:12: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 48 | extern int log2(const char *s1, const char *s2); | ^~~~ qpasswd.h:37:1: note: 'log2' is declared in header '' 36 | #include "fmt.h" +++ |+#include 37 | --- sig_catch.o --- *** [sig_catch.o] Error code 1 bmake: stopped making "it" in /home/pbulk/build/sysutils/qpasswd/work/qpasswd-0.5 bmake: 1 error bmake: stopped making "it" in /home/pbulk/build/sysutils/qpasswd/work/qpasswd-0.5 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/qpasswd *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/qpasswd