=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for pks-0.9.4nb5 --- pksclient.o --- --- kd_add.o --- --- kd_delete.o --- --- kd_disable.o --- --- kd_generic.o --- --- kd_get.o --- --- kd_index.o --- --- kd_search.o --- --- pksclient.o --- gcc -Wall -pedantic -g -O -I/usr/pkg/include/db2 -DDEBUG -DHAVE_SYS_SELECT_H=1 -DHAVE_MMAP=1 -DHAVE_MADVISE=1 -DHAVE_SOCKLEN_T=1 -c pksclient.c --- kd_delete.o --- gcc -Wall -pedantic -g -O -I/usr/pkg/include/db2 -DDEBUG -DHAVE_SYS_SELECT_H=1 -DHAVE_MMAP=1 -DHAVE_MADVISE=1 -DHAVE_SOCKLEN_T=1 -c kd_delete.c --- kd_add.o --- gcc -Wall -pedantic -g -O -I/usr/pkg/include/db2 -DDEBUG -DHAVE_SYS_SELECT_H=1 -DHAVE_MMAP=1 -DHAVE_MADVISE=1 -DHAVE_SOCKLEN_T=1 -c kd_add.c --- kd_generic.o --- gcc -Wall -pedantic -g -O -I/usr/pkg/include/db2 -DDEBUG -DHAVE_SYS_SELECT_H=1 -DHAVE_MMAP=1 -DHAVE_MADVISE=1 -DHAVE_SOCKLEN_T=1 -c kd_generic.c --- kd_get.o --- gcc -Wall -pedantic -g -O -I/usr/pkg/include/db2 -DDEBUG -DHAVE_SYS_SELECT_H=1 -DHAVE_MMAP=1 -DHAVE_MADVISE=1 -DHAVE_SOCKLEN_T=1 -c kd_get.c --- kd_disable.o --- gcc -Wall -pedantic -g -O -I/usr/pkg/include/db2 -DDEBUG -DHAVE_SYS_SELECT_H=1 -DHAVE_MMAP=1 -DHAVE_MADVISE=1 -DHAVE_SOCKLEN_T=1 -c kd_disable.c --- kd_index.o --- gcc -Wall -pedantic -g -O -I/usr/pkg/include/db2 -DDEBUG -DHAVE_SYS_SELECT_H=1 -DHAVE_MMAP=1 -DHAVE_MADVISE=1 -DHAVE_SOCKLEN_T=1 -c kd_index.c --- kd_search.o --- gcc -Wall -pedantic -g -O -I/usr/pkg/include/db2 -DDEBUG -DHAVE_SYS_SELECT_H=1 -DHAVE_MMAP=1 -DHAVE_MADVISE=1 -DHAVE_SOCKLEN_T=1 -c kd_search.c --- kd_get.o --- In file included from kd_internal.h:11:0, from kd_get.c:18: kd_internal.h:34:9: error: expected identifier or '(' before numeric constant typedef DB_TXN *kd_txn; ^ --- kd_disable.o --- In file included from kd_internal.h:11:0, from kd_disable.c:18: kd_internal.h:34:9: error: expected identifier or '(' before numeric constant typedef DB_TXN *kd_txn; ^ --- kd_get.o --- In file included from kd_get.c:18:0: kd_internal.h:49:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_db_store_keyblock(kd_txn tid, llist *keys, error *err); ^~~~~~ id_t kd_internal.h:51:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_begin(kd_txn *tid, error *err); ^~~~~~ id_t --- kd_disable.o --- In file included from kd_disable.c:18:0: kd_internal.h:49:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_db_store_keyblock(kd_txn tid, llist *keys, error *err); ^~~~~~ id_t --- kd_get.o --- kd_internal.h:52:19: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_commit(kd_txn tid, error *err); ^~~~~~ id_t --- kd_disable.o --- kd_internal.h:51:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_begin(kd_txn *tid, error *err); ^~~~~~ id_t --- kd_get.o --- kd_internal.h:53:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_abort(kd_txn tid, error *err); ^~~~~~ id_t In file included from kd_get.c:19:0: kd_search.h:19:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_disable.o --- kd_internal.h:52:19: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_commit(kd_txn tid, error *err); ^~~~~~ id_t --- kd_add.o --- In file included from kd_add.c:11:0: kd_internal.h:34:9: error: expected identifier or '(' before numeric constant typedef DB_TXN *kd_txn; ^ --- kd_get.o --- kd_search.h:39:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_get_keys_by_keyid(kd_txn tid, unsigned char *keyid, ^~~~~~ id_t --- kd_disable.o --- kd_internal.h:53:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_abort(kd_txn tid, error *err); ^~~~~~ id_t In file included from kd_disable.c:19:0: kd_search.h:19:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_get.o --- kd_search.h:43:17: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_search_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t --- kd_delete.o --- In file included from kd_internal.h:11:0, from kd_delete.c:18: kd_internal.h:34:9: error: expected identifier or '(' before numeric constant typedef DB_TXN *kd_txn; ^ --- kd_add.o --- In file included from kd_add.c:24:0: kd_internal.h:49:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_db_store_keyblock(kd_txn tid, llist *keys, error *err); ^~~~~~ id_t --- kd_disable.o --- kd_search.h:39:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_get_keys_by_keyid(kd_txn tid, unsigned char *keyid, ^~~~~~ id_t --- kd_get.o --- kd_get.c:42:14: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_get_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t --- kd_add.o --- kd_internal.h:51:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_begin(kd_txn *tid, error *err); ^~~~~~ id_t --- kd_disable.o --- kd_search.h:43:17: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_search_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t --- kd_delete.o --- In file included from kd_delete.c:18:0: kd_internal.h:49:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_db_store_keyblock(kd_txn tid, llist *keys, error *err); ^~~~~~ id_t --- kd_get.o --- kd_get.c: In function 'kd_get': kd_get.c:127:4: error: unknown type name 'kd_txn'; did you mean 'id_t'? kd_txn tid; ^~~~~~ id_t --- kd_add.o --- kd_internal.h:52:19: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_commit(kd_txn tid, error *err); ^~~~~~ id_t --- kd_disable.o --- In file included from kd_disable.c:15:0: kd_disable.c: In function 'change_disable': globals.h:21:29: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration] #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_disable.c:41:7: note: in expansion of macro 'fail' fail(); ^~~~ globals.h:21:29: warning: incompatible implicit declaration of built-in function 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_disable.c:41:7: note: in expansion of macro 'fail' fail(); ^~~~ globals.h:21:29: note: include '' or provide a declaration of 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_disable.c:41:7: note: in expansion of macro 'fail' fail(); ^~~~ --- kd_delete.o --- kd_internal.h:51:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_begin(kd_txn *tid, error *err); ^~~~~~ id_t --- kd_add.o --- kd_internal.h:53:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_abort(kd_txn tid, error *err); ^~~~~~ id_t In file included from kd_add.c:25:0: kd_search.h:19:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_disable.o --- kd_disable.c: At top level: kd_disable.c:57:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_disable_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t --- kd_delete.o --- kd_internal.h:52:19: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_commit(kd_txn tid, error *err); ^~~~~~ id_t --- kd_add.o --- kd_search.h:39:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_get_keys_by_keyid(kd_txn tid, unsigned char *keyid, ^~~~~~ id_t --- kd_disable.o --- kd_disable.c: In function 'kd_disable': kd_disable.c:90:4: error: unknown type name 'kd_txn'; did you mean 'id_t'? kd_txn tid; ^~~~~~ id_t --- kd_delete.o --- kd_internal.h:53:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_abort(kd_txn tid, error *err); ^~~~~~ id_t --- kd_add.o --- kd_search.h:43:17: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_search_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t --- kd_delete.o --- In file included from kd_delete.c:19:0: kd_search.h:19:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_add.o --- kd_add.c:60:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_get.o --- kd_get.c:133:8: warning: implicit declaration of function 'kd_txn_begin' [-Wimplicit-function-declaration] if (kd_txn_begin(&tid, &err) && ^~~~~~~~~~~~ --- kd_delete.o --- kd_search.h:39:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_get_keys_by_keyid(kd_txn tid, unsigned char *keyid, ^~~~~~ id_t --- kd_get.o --- kd_get.c:134:8: warning: implicit declaration of function 'kd_get_1'; did you mean 'kd_get'? [-Wimplicit-function-declaration] kd_get_1(tid, userid, len, flags, maxkeys, &armored, &err) && ^~~~~~~~ kd_get --- kd_delete.o --- kd_search.h:43:17: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_search_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t kd_delete.c:24:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ kd_delete.c:30:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_search.o --- In file included from kd_search.c:9:0: kd_internal.h:34:9: error: expected identifier or '(' before numeric constant typedef DB_TXN *kd_txn; ^ --- kd_disable.o --- kd_disable.c:98:8: warning: implicit declaration of function 'kd_txn_begin' [-Wimplicit-function-declaration] if (kd_txn_begin(&tid, &err) && ^~~~~~~~~~~~ --- kd_delete.o --- kd_delete.c: In function 'delete_word_from_worddb': kd_delete.c:43:4: error: unknown type name 'DBC'; did you mean 'DB'? DBC *cursor; ^~~ DB --- kd_search.o --- In file included from kd_search.c:23:0: kd_internal.h:49:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_db_store_keyblock(kd_txn tid, llist *keys, error *err); ^~~~~~ id_t --- kd_disable.o --- kd_disable.c:99:8: warning: implicit declaration of function 'kd_disable_1'; did you mean 'kd_disable'? [-Wimplicit-function-declaration] kd_disable_1(tid, userid, len, flags, &disabled, &err) && ^~~~~~~~~~~~ kd_disable --- kd_search.o --- kd_internal.h:51:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_begin(kd_txn *tid, error *err); ^~~~~~ id_t --- kd_delete.o --- kd_delete.c:59:19: error: 'DB {aka struct __db}' has no member named 'cursor' ret = (*(worddb->cursor))(worddb, s->tid, &cursor, 0); ^~ --- kd_search.o --- kd_internal.h:52:19: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_commit(kd_txn tid, error *err); ^~~~~~ id_t --- kd_get.o --- kd_get.c:135:8: warning: implicit declaration of function 'kd_txn_commit' [-Wimplicit-function-declaration] kd_txn_commit(tid, &err)) { ^~~~~~~~~~~~~ --- kd_search.o --- kd_internal.h:53:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_abort(kd_txn tid, error *err); ^~~~~~ id_t In file included from kd_search.c:24:0: kd_search.h:19:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ kd_search.h:39:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_get_keys_by_keyid(kd_txn tid, unsigned char *keyid, ^~~~~~ id_t kd_search.h:43:17: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_search_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t --- kd_delete.o --- kd_delete.c:61:23: error: 'DB_NOTFOUND' undeclared (first use in this function) if (ret && (ret != DB_NOTFOUND)) { ^~~~~~~~~~~ kd_delete.c:61:23: note: each undeclared identifier is reported only once for each function it appears in In file included from kd_delete.c:15:0: globals.h:21:29: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration] #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_delete.c:64:7: note: in expansion of macro 'fail' fail(); ^~~~ --- kd_disable.o --- kd_disable.c:100:8: warning: implicit declaration of function 'kd_txn_commit' [-Wimplicit-function-declaration] kd_txn_commit(tid, &err)) { ^~~~~~~~~~~~~ --- kd_delete.o --- globals.h:21:29: warning: incompatible implicit declaration of built-in function 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_delete.c:64:7: note: in expansion of macro 'fail' fail(); ^~~~ globals.h:21:29: note: include '' or provide a declaration of 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_delete.c:64:7: note: in expansion of macro 'fail' fail(); ^~~~ --- kd_add.o --- kd_add.c:792:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_delete.o --- kd_delete.c:67:24: error: request for member 'c_get' in something not a structure or union if ((ret = (*(cursor->c_get))(cursor, &key, &data, DB_GET_BOTH))) { ^~ --- kd_get.o --- kd_get.c:144:4: warning: implicit declaration of function 'kd_txn_abort'; did you mean 'kd_log_start'? [-Wimplicit-function-declaration] kd_txn_abort(tid, NULL); ^~~~~~~~~~~~ kd_log_start --- kd_add.o --- kd_add.c: In function 'add_entry_to_db': --- kd_get.o --- kd_get.c:154:20: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] *retlen = strlen((char *) *ret); ^~~~~~ kd_get.c:154:20: warning: incompatible implicit declaration of built-in function 'strlen' kd_get.c:154:20: note: include '' or provide a declaration of 'strlen' --- kd_add.o --- kd_add.c:807:27: warning: passing argument 2 of 'db->get' makes pointer from integer without a cast [-Wint-conversion] ret = (*(db->get))(db, s->tid, key, &data, 0); ^ kd_add.c:807:27: note: expected 'const DBT * {aka const struct *}' but argument is of type 'int' kd_add.c:807:40: warning: passing argument 4 of 'db->get' makes integer from pointer without a cast [-Wint-conversion] ret = (*(db->get))(db, s->tid, key, &data, 0); ^ kd_add.c:807:40: note: expected 'unsigned int' but argument is of type 'DBT * {aka struct *}' kd_add.c:807:11: error: too many arguments to function 'db->get' ret = (*(db->get))(db, s->tid, key, &data, 0); ~^~~~~~~~~~~ --- kd_disable.o --- kd_disable.c:109:4: warning: implicit declaration of function 'kd_txn_abort'; did you mean 'kd_log_start'? [-Wimplicit-function-declaration] kd_txn_abort(tid, NULL); ^~~~~~~~~~~~ kd_log_start --- kd_delete.o --- kd_delete.c:67:55: error: 'DB_GET_BOTH' undeclared (first use in this function) if ((ret = (*(cursor->c_get))(cursor, &key, &data, DB_GET_BOTH))) { ^~~~~~~~~~~ --- kd_disable.o --- In file included from kd_disable.c:15:0: globals.h:21:29: warning: incompatible implicit declaration of built-in function 'abort' #define dabort() if (debug) abort() ^ kd_disable.c:115:3: note: in expansion of macro 'dabort' dabort(); ^~~~~~ globals.h:21:29: note: include '' or provide a declaration of 'abort' #define dabort() if (debug) abort() ^ kd_disable.c:115:3: note: in expansion of macro 'dabort' dabort(); ^~~~~~ --- kd_delete.o --- In file included from kd_delete.c:15:0: globals.h:21:29: warning: incompatible implicit declaration of built-in function 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_delete.c:72:7: note: in expansion of macro 'fail' fail(); ^~~~ globals.h:21:29: note: include '' or provide a declaration of 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_delete.c:72:7: note: in expansion of macro 'fail' fail(); ^~~~ kd_delete.c:81:17: error: request for member 'c_get' in something not a structure or union ret = (*(cursor->c_get))(cursor, &key, &data, DB_NEXT_DUP)) { ^~ --- kd_search.o --- kd_search.c: In function 'make_keys_elem': kd_search.c:394:52: warning: passing argument 5 of 'decode_sig' from incompatible pointer type [-Wincompatible-pointer-types] if (!decode_sig(packet, plen, &keyid, &sigclass, &sig_time)) { ^ In file included from kd_search.c:18:0: pgputil.h:34:5: note: expected 'time_t * {aka long long int *}' but argument is of type 'long int *' int decode_sig(ddesc *data, long len, ddesc *keyid, long *sigclass, ^~~~~~~~~~ --- kd_add.o --- kd_add.c:809:15: error: 'DB_NOTFOUND' undeclared (first use in this function) if (ret == DB_NOTFOUND) { ^~~~~~~~~~~ kd_add.c:809:15: note: each undeclared identifier is reported only once for each function it appears in --- kd_delete.o --- kd_delete.c:81:48: error: 'DB_NEXT_DUP' undeclared (first use in this function) ret = (*(cursor->c_get))(cursor, &key, &data, DB_NEXT_DUP)) { ^~~~~~~~~~~ kd_delete.c:85:27: error: request for member 'c_del' in something not a structure or union if ((ret = (*(cursor->c_del))(cursor, 0))) ^~ kd_delete.c:89:13: error: request for member 'c_close' in something not a structure or union (*(cursor->c_close))(cursor); ^~ In file included from kd_delete.c:15:0: globals.h:21:29: warning: incompatible implicit declaration of built-in function 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_delete.c:95:7: note: in expansion of macro 'fail' fail(); ^~~~ globals.h:21:29: note: include '' or provide a declaration of 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_delete.c:95:7: note: in expansion of macro 'fail' fail(); ^~~~ --- kd_add.o --- kd_add.c:879:32: warning: passing argument 2 of 'db->put' makes pointer from integer without a cast [-Wint-conversion] if ((ret = (*(db->put))(db, s->tid, key, &newdata, 0))) { ^ kd_add.c:879:32: note: expected 'DBT * {aka struct *}' but argument is of type 'int' kd_add.c:879:45: warning: passing argument 4 of 'db->put' makes integer from pointer without a cast [-Wint-conversion] if ((ret = (*(db->put))(db, s->tid, key, &newdata, 0))) { ^ kd_add.c:879:45: note: expected 'unsigned int' but argument is of type 'DBT * {aka struct *}' --- kd_get.o --- *** [kd_get.o] Error code 1 make: stopped in /pbulk/work/security/pks/work/pks-0.9.4 --- kd_add.o --- kd_add.c:879:16: error: too many arguments to function 'db->put' if ((ret = (*(db->put))(db, s->tid, key, &newdata, 0))) { ~^~~~~~~~~~~ --- kd_generic.o --- In file included from kd_generic.c:9:0: kd_internal.h:34:9: error: expected identifier or '(' before numeric constant typedef DB_TXN *kd_txn; ^ --- kd_delete.o --- kd_delete.c: At top level: kd_delete.c:129:17: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_delete_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t --- kd_search.o --- kd_search.c: At top level: kd_search.c:647:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_get_keys_by_keyid(kd_txn tid, unsigned char *keyid, ^~~~~~ id_t --- kd_add.o --- kd_add.c: In function 'add_word_to_worddb': --- kd_delete.o --- kd_delete.c: In function 'kd_delete': kd_delete.c:166:4: error: unknown type name 'kd_txn'; did you mean 'id_t'? kd_txn tid; ^~~~~~ id_t --- kd_add.o --- kd_add.c:916:40: warning: passing argument 2 of 'worddb->put' makes pointer from integer without a cast [-Wint-conversion] if ((ret = (*(worddb->put))(worddb, s->tid, &key, &data, 0))) { ^ kd_add.c:916:40: note: expected 'DBT * {aka struct *}' but argument is of type 'int' --- kd_generic.o --- In file included from kd_generic.c:25:0: kd_internal.h:49:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_db_store_keyblock(kd_txn tid, llist *keys, error *err); ^~~~~~ id_t --- kd_add.o --- kd_add.c:916:54: warning: passing argument 4 of 'worddb->put' makes integer from pointer without a cast [-Wint-conversion] if ((ret = (*(worddb->put))(worddb, s->tid, &key, &data, 0))) { ^ kd_add.c:916:54: note: expected 'unsigned int' but argument is of type 'DBT * {aka struct *}' --- kd_generic.o --- kd_internal.h:51:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_begin(kd_txn *tid, error *err); ^~~~~~ id_t --- kd_add.o --- kd_add.c:916:16: error: too many arguments to function 'worddb->put' if ((ret = (*(worddb->put))(worddb, s->tid, &key, &data, 0))) { ~^~~~~~~~~~~~~~~ --- kd_disable.o --- *** [kd_disable.o] Error code 1 make: stopped in /pbulk/work/security/pks/work/pks-0.9.4 --- kd_generic.o --- kd_internal.h:52:19: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_commit(kd_txn tid, error *err); ^~~~~~ id_t --- kd_add.o --- kd_add.c: At top level: kd_add.c:938:23: error: unknown type name 'kd_txn'; did you mean 'id_t'? int db_store_wordlist(kd_txn tid, llist *keys, error *err) ^~~~~~ id_t --- kd_search.o --- kd_search.c:832:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_generic.o --- kd_internal.h:53:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_abort(kd_txn tid, error *err); ^~~~~~ id_t --- kd_search.o --- kd_search.c: In function 'word_key_intersect': kd_search.c:853:4: error: unknown type name 'DBC'; did you mean 'DB'? DBC *cursor; ^~~ DB --- kd_generic.o --- kd_generic.c:37:8: error: unknown type name 'DB_ENV' static DB_ENV dbenv; ^~~~~~ --- kd_delete.o --- kd_delete.c:174:8: warning: implicit declaration of function 'kd_txn_begin' [-Wimplicit-function-declaration] if (kd_txn_begin(&tid, &err) && ^~~~~~~~~~~~ --- kd_add.o --- kd_add.c:988:24: error: unknown type name 'kd_txn'; did you mean 'id_t'? int db_store_timestamp(kd_txn tid, llist *keys, error *err) ^~~~~~ id_t --- kd_delete.o --- kd_delete.c:175:8: warning: implicit declaration of function 'kd_delete_1'; did you mean 'kd_delete'? [-Wimplicit-function-declaration] kd_delete_1(tid, userid, len, flags, &deleted, &err) && ^~~~~~~~~~~ kd_delete --- kd_search.o --- kd_search.c:873:19: error: 'DB {aka struct __db}' has no member named 'cursor' ret = (*(worddb->cursor))(worddb, s->tid, &cursor, 0); ^~ --- kd_generic.o --- kd_generic.c:152:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_db_store_keyblock(kd_txn tid, llist *keys, error *err) ^~~~~~ id_t --- kd_search.o --- kd_search.c:875:22: error: 'DB_NOTFOUND' undeclared (first use in this function) if (ret && ret != DB_NOTFOUND) { ^~~~~~~~~~~ kd_search.c:875:22: note: each undeclared identifier is reported only once for each function it appears in --- kd_generic.o --- kd_generic.c:217:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_begin(kd_txn *tid, error *err) ^~~~~~ id_t --- kd_search.o --- kd_search.c:886:27: error: request for member 'c_get' in something not a structure or union for (ret = (*(cursor->c_get))(cursor, &key, &data, DB_SET); ^~ --- kd_delete.o --- kd_delete.c:176:8: warning: implicit declaration of function 'kd_txn_commit' [-Wimplicit-function-declaration] kd_txn_commit(tid, &err)) { ^~~~~~~~~~~~~ --- kd_generic.o --- kd_generic.c:235:19: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_commit(kd_txn tid, error *err) ^~~~~~ id_t --- kd_search.o --- kd_search.c:886:58: error: 'DB_SET' undeclared (first use in this function); did you mean 'FD_SET'? for (ret = (*(cursor->c_get))(cursor, &key, &data, DB_SET); ^~~~~~ FD_SET kd_search.c:888:20: error: request for member 'c_get' in something not a structure or union ret = (*(cursor->c_get))(cursor, &key, &data, DB_NEXT_DUP)) { ^~ --- kd_generic.o --- kd_generic.c:267:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_abort(kd_txn tid, error *err) ^~~~~~ id_t kd_generic.c: In function 'kd_open_1': --- kd_add.o --- kd_add.c: In function 'db_key_merge_1': --- kd_generic.o --- kd_generic.c:304:4: error: unknown type name 'DB_INFO'; did you mean 'SIGINFO'? DB_INFO keyinfo, wordinfo, timeinfo; ^~~~~~~ SIGINFO --- kd_delete.o --- kd_delete.c:185:4: warning: implicit declaration of function 'kd_txn_abort'; did you mean 'kd_log_start'? [-Wimplicit-function-declaration] kd_txn_abort(tid, NULL); ^~~~~~~~~~~~ kd_log_start --- kd_add.o --- kd_add.c:1037:9: warning: implicit declaration of function 'kd_get_keys_by_keyid' [-Wimplicit-function-declaration] if (!kd_get_keys_by_keyid(s->tid, ke->keyidbits.buf /* 8 byte keyid */, ^~~~~~~~~~~~~~~~~~~~ --- kd_delete.o --- In file included from kd_delete.c:15:0: globals.h:21:29: warning: incompatible implicit declaration of built-in function 'abort' #define dabort() if (debug) abort() ^ kd_delete.c:191:3: note: in expansion of macro 'dabort' dabort(); ^~~~~~ globals.h:21:29: note: include '' or provide a declaration of 'abort' #define dabort() if (debug) abort() ^ kd_delete.c:191:3: note: in expansion of macro 'dabort' dabort(); ^~~~~~ --- kd_generic.o --- kd_generic.c:314:9: error: request for member 'db_errcall' in something not a structure or union dbenv.db_errcall = kd_errcall; ^ kd_generic.c:318:9: error: request for member 'mp_size' in something not a structure or union dbenv.mp_size = 20*1024*1024; ^ kd_generic.c:320:15: error: 'DB_INIT_MPOOL' undeclared (first use in this function) appflags = DB_INIT_MPOOL|DB_INIT_LOCK|DB_CREATE; ^~~~~~~~~~~~~ kd_generic.c:320:15: note: each undeclared identifier is reported only once for each function it appears in --- kd_add.o --- kd_add.c:1152:9: warning: implicit declaration of function 'kd_db_store_keyblock' [-Wimplicit-function-declaration] if (!kd_db_store_keyblock(s->tid, &db_keys, s->dkms->err)) { ^~~~~~~~~~~~~~~~~~~~ --- kd_index.o --- In file included from kd_internal.h:11:0, from kd_index.c:16: kd_internal.h:34:9: error: expected identifier or '(' before numeric constant typedef DB_TXN *kd_txn; ^ In file included from kd_index.c:16:0: kd_internal.h:49:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_db_store_keyblock(kd_txn tid, llist *keys, error *err); ^~~~~~ id_t --- kd_delete.o --- *** [kd_delete.o] Error code 1 make: stopped in /pbulk/work/security/pks/work/pks-0.9.4 --- kd_generic.o --- kd_generic.c:320:29: error: 'DB_INIT_LOCK' undeclared (first use in this function); did you mean 'DB_INIT_MPOOL'? appflags = DB_INIT_MPOOL|DB_INIT_LOCK|DB_CREATE; ^~~~~~~~~~~~ DB_INIT_MPOOL --- kd_index.o --- kd_internal.h:51:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_begin(kd_txn *tid, error *err); ^~~~~~ id_t kd_internal.h:52:19: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_commit(kd_txn tid, error *err); ^~~~~~ id_t kd_internal.h:53:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_txn_abort(kd_txn tid, error *err); ^~~~~~ id_t In file included from kd_index.c:17:0: kd_search.h:19:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ kd_search.h:39:26: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_get_keys_by_keyid(kd_txn tid, unsigned char *keyid, ^~~~~~ id_t --- kd_generic.o --- kd_generic.c:320:42: error: 'DB_CREATE' undeclared (first use in this function); did you mean 'O_CREAT'? appflags = DB_INIT_MPOOL|DB_INIT_LOCK|DB_CREATE; ^~~~~~~~~ O_CREAT --- kd_index.o --- kd_search.h:43:17: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_search_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t kd_index.c:44:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_generic.o --- kd_generic.c:323:20: error: 'DB_INIT_LOG' undeclared (first use in this function); did you mean 'DB_INIT_LOCK'? appflags |= DB_INIT_LOG|DB_INIT_TXN; ^~~~~~~~~~~ DB_INIT_LOCK --- kd_add.o --- kd_add.c:1159:9: warning: implicit declaration of function 'db_store_wordlist' [-Wimplicit-function-declaration] if (!db_store_wordlist(s->tid, &db_keys, s->dkms->err)) { ^~~~~~~~~~~~~~~~~ --- kd_generic.o --- kd_generic.c:323:32: error: 'DB_INIT_TXN' undeclared (first use in this function); did you mean 'DB_INIT_LOG'? appflags |= DB_INIT_LOG|DB_INIT_TXN; ^~~~~~~~~~~ DB_INIT_LOG kd_generic.c:326:32: error: 'DB_RECOVER' undeclared (first use in this function); did you mean 'DB_RECNO'? appflags |= DB_INIT_LOG|DB_RECOVER; ^~~~~~~~~~ DB_RECNO kd_generic.c:327:13: error: request for member 'db_verbose' in something not a structure or union dbenv.db_verbose = 1; ^ --- kd_index.o --- kd_index.c: In function 'sigs_elem_genindex': kd_index.c:65:9: warning: implicit declaration of function 'kd_get_keys_by_keyid' [-Wimplicit-function-declaration] if (!kd_get_keys_by_keyid(s->tid, se->keyid.buf, &keys, &err)) { ^~~~~~~~~~~~~~~~~~~~ kd_index.c: At top level: kd_index.c:122:4: error: unknown type name 'kd_txn' kd_txn tid; ^~~~~~ --- kd_add.o --- kd_add.c:1166:9: warning: implicit declaration of function 'db_store_timestamp' [-Wimplicit-function-declaration] if (!db_store_timestamp(s->tid, &db_keys, s->dkms->err)) { ^~~~~~~~~~~~~~~~~~ --- kd_generic.o --- kd_generic.c:330:18: warning: implicit declaration of function 'db_appinit' [-Wimplicit-function-declaration] if ((db_err = db_appinit(dbdir, NULL, &dbenv, appflags))) { ^~~~~~~~~~ --- kd_index.o --- In file included from kd_index.c:12:0: kd_index.c: In function 'keys_elem_genindex_cout': globals.h:21:29: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration] #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_index.c:220:7: note: in expansion of macro 'fail' fail(); ^~~~ globals.h:21:29: warning: incompatible implicit declaration of built-in function 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_index.c:220:7: note: in expansion of macro 'fail' fail(); ^~~~ globals.h:21:29: note: include '' or provide a declaration of 'abort' #define dabort() if (debug) abort() ^ globals.h:22:17: note: in expansion of macro 'dabort' #define fail() {dabort(); else return(0); } ^~~~~~ kd_index.c:220:7: note: in expansion of macro 'fail' fail(); ^~~~ kd_index.c: At top level: kd_index.c:231:16: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_index_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t kd_index.c: In function 'kd_index': kd_index.c:283:4: error: unknown type name 'kd_txn'; did you mean 'id_t'? kd_txn tid; ^~~~~~ id_t --- kd_add.o --- kd_add.c: In function 'db_key_merge': kd_add.c:1186:8: warning: implicit declaration of function 'kd_txn_begin' [-Wimplicit-function-declaration] if (kd_txn_begin(&(dkm1s.tid), s->err) && ^~~~~~~~~~~~ --- kd_generic.o --- kd_generic.c:364:25: error: 'DB_TRUNCATE' undeclared (first use in this function); did you mean 'DB_CREATE'? flags = DB_CREATE|DB_TRUNCATE; ^~~~~~~~~~~ DB_CREATE --- kd_index.o --- kd_index.c:290:8: warning: implicit declaration of function 'kd_txn_begin' [-Wimplicit-function-declaration] if (kd_txn_begin(&tid, &err) && ^~~~~~~~~~~~ --- kd_generic.o --- kd_generic.c:391:43: error: 'DB_RDONLY' undeclared (first use in this function); did you mean 'O_RDONLY'? flags = (oflags & KD_OPEN_READONLY)?DB_RDONLY:0; ^~~~~~~~~ O_RDONLY --- kd_index.o --- kd_index.c:291:8: warning: implicit declaration of function 'kd_index_1'; did you mean 'kd_index'? [-Wimplicit-function-declaration] kd_index_1(tid, userid, len, flags, maxkeys, &index, &err) && ^~~~~~~~~~ kd_index --- kd_generic.o --- kd_generic.c:437:11: error: request for member 'db_pagesize' in something not a structure or union keyinfo.db_pagesize = 8192; ^ --- kd_add.o --- kd_add.c:1188:8: warning: implicit declaration of function 'kd_txn_commit' [-Wimplicit-function-declaration] kd_txn_commit(dkm1s.tid, s->err)) ^~~~~~~~~~~~~ --- kd_generic.o --- kd_generic.c:442:21: warning: implicit declaration of function 'db_open'; did you mean 'dbopen'? [-Wimplicit-function-declaration] if ((db_err = db_open(keydbname, DB_HASH, flags, 0644, &dbenv, &keyinfo, ^~~~~~~ dbopen kd_generic.c:449:23: error: too many arguments to function '(*(keydb_files + (sizetype)((unsigned int)i * 4)))->fd' if ((db_err = ((*(keydb_files[i]->fd))(keydb_files[i], &fd)))) { ~^~~~~~~~~~~~~~~~~~~~~~ kd_generic.c:463:12: error: request for member 'db_pagesize' in something not a structure or union wordinfo.db_pagesize = 8192; ^ kd_generic.c:464:12: error: request for member 'dup_compare' in something not a structure or union wordinfo.dup_compare = kd_worddata_compare; ^ kd_generic.c:465:12: error: request for member 'flags' in something not a structure or union wordinfo.flags = DB_DUP | DB_DUPSORT; ^ --- kd_index.o --- kd_index.c:292:8: warning: implicit declaration of function 'kd_txn_commit' [-Wimplicit-function-declaration] kd_txn_commit(tid, &err)) { ^~~~~~~~~~~~~ --- kd_generic.o --- kd_generic.c:465:21: error: 'DB_DUP' undeclared (first use in this function); did you mean 'R_DUP'? wordinfo.flags = DB_DUP | DB_DUPSORT; ^~~~~~ R_DUP --- kd_add.o --- kd_add.c:1191:4: warning: implicit declaration of function 'kd_txn_abort'; did you mean 'kd_log_start'? [-Wimplicit-function-declaration] kd_txn_abort(dkm1s.tid, s->err); ^~~~~~~~~~~~ kd_log_start --- kd_index.o --- kd_index.c:301:4: warning: implicit declaration of function 'kd_txn_abort'; did you mean 'kd_log_start'? [-Wimplicit-function-declaration] kd_txn_abort(tid, NULL); ^~~~~~~~~~~~ kd_log_start --- kd_generic.o --- kd_generic.c:465:30: error: 'DB_DUPSORT' undeclared (first use in this function); did you mean 'DB_DUP'? wordinfo.flags = DB_DUP | DB_DUPSORT; ^~~~~~~~~~ DB_DUP --- kd_index.o --- In file included from kd_index.c:12:0: globals.h:21:29: warning: incompatible implicit declaration of built-in function 'abort' #define dabort() if (debug) abort() ^ kd_index.c:307:3: note: in expansion of macro 'dabort' dabort(); ^~~~~~ globals.h:21:29: note: include '' or provide a declaration of 'abort' #define dabort() if (debug) abort() ^ kd_index.c:307:3: note: in expansion of macro 'dabort' dabort(); ^~~~~~ kd_index.c:311:13: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] *retlen = strlen((char *) *ret); ^~~~~~ kd_index.c:311:13: warning: incompatible implicit declaration of built-in function 'strlen' kd_index.c:311:13: note: include '' or provide a declaration of 'strlen' --- kd_generic.o --- kd_generic.c:474:20: error: too many arguments to function 'worddb->fd' if ((db_err = ((*(worddb->fd))(worddb, &fd)))) { ~^~~~~~~~~~~~~~ kd_generic.c:487:11: error: request for member 'db_pagesize' in something not a structure or union keyinfo.db_pagesize = 8192; ^ kd_generic.c:496:20: error: too many arguments to function 'timedb->fd' if ((db_err = ((*(timedb->fd))(timedb, &fd)))) { ~^~~~~~~~~~~~~~ kd_generic.c: In function 'kd_close_1': kd_generic.c:689:8: error: too many arguments to function 'timedb->close' (*(timedb->close))(timedb, 0); ~^~~~~~~~~~~~~~~~~ kd_generic.c:691:8: error: too many arguments to function 'worddb->close' (*(worddb->close))(worddb, 0); ~^~~~~~~~~~~~~~~~~ kd_generic.c:694:4: error: too many arguments to function '(*(keydb_files + (sizetype)((unsigned int)i * 4)))->close' (*(keydb_files[i]->close))(keydb_files[i], 0); ~^~~~~~~~~~~~~~~~~~~~~~~~~ kd_generic.c:696:13: error: request for member 'tx_info' in something not a structure or union if (dbenv.tx_info) { ^ --- kd_search.o --- kd_search.c:888:51: error: 'DB_NEXT_DUP' undeclared (first use in this function) ret = (*(cursor->c_get))(cursor, &key, &data, DB_NEXT_DUP)) { ^~~~~~~~~~~ --- kd_index.o --- *** [kd_index.o] Error code 1 make: stopped in /pbulk/work/security/pks/work/pks-0.9.4 --- kd_generic.o --- kd_generic.c:701:14: warning: implicit declaration of function 'txn_checkpoint' [-Wimplicit-function-declaration] if ((ret = txn_checkpoint(dbenv.tx_info, 0, 0)) == DB_INCOMPLETE) { ^~~~~~~~~~~~~~ kd_generic.c:701:34: error: request for member 'tx_info' in something not a structure or union if ((ret = txn_checkpoint(dbenv.tx_info, 0, 0)) == DB_INCOMPLETE) { ^ kd_generic.c:701:54: error: 'DB_INCOMPLETE' undeclared (first use in this function) if ((ret = txn_checkpoint(dbenv.tx_info, 0, 0)) == DB_INCOMPLETE) { ^~~~~~~~~~~~~ --- kd_search.o --- kd_search.c: In function 'kd_output_wde': kd_search.c:958:9: warning: implicit declaration of function 'kd_get_keys_by_keyid' [-Wimplicit-function-declaration] if (!kd_get_keys_by_keyid(s->tid, wde+4, &db_keys, s->err)) ^~~~~~~~~~~~~~~~~~~~ --- kd_generic.o --- kd_generic.c:716:34: error: request for member 'tx_info' in something not a structure or union if ((ret = txn_checkpoint(dbenv.tx_info, 0, 0)) == DB_INCOMPLETE) { ^ --- kd_add.o --- *** [kd_add.o] Error code 1 make: stopped in /pbulk/work/security/pks/work/pks-0.9.4 --- kd_generic.o --- kd_generic.c:730:18: warning: implicit declaration of function 'log_archive' [-Wimplicit-function-declaration] if ((ret = log_archive(dbenv.lg_info, &loglist, DB_ARCH_ABS, NULL))) { ^~~~~~~~~~~ kd_generic.c:730:35: error: request for member 'lg_info' in something not a structure or union if ((ret = log_archive(dbenv.lg_info, &loglist, DB_ARCH_ABS, NULL))) { ^ kd_generic.c:730:55: error: 'DB_ARCH_ABS' undeclared (first use in this function) if ((ret = log_archive(dbenv.lg_info, &loglist, DB_ARCH_ABS, NULL))) { ^~~~~~~~~~~ --- kd_search.o --- kd_search.c:993:8: warning: implicit declaration of function 'kd_db_store_keyblock' [-Wimplicit-function-declaration] if (!kd_db_store_keyblock(s->tid, &(ow1s.new_keys_elem), s->err)) ^~~~~~~~~~~~~~~~~~~~ kd_search.c:1006:42: warning: passing argument 2 of 'keydb(&key)->del' makes pointer from integer without a cast [-Wint-conversion] if ((*(keydb(&key)->del))(keydb(&key), s->tid, &key, 0)) { ^ kd_search.c:1006:42: note: expected 'const DBT * {aka const struct *}' but argument is of type 'int' kd_search.c:1006:50: warning: passing argument 3 of 'keydb(&key)->del' makes integer from pointer without a cast [-Wint-conversion] if ((*(keydb(&key)->del))(keydb(&key), s->tid, &key, 0)) { ^ kd_search.c:1006:50: note: expected 'unsigned int' but argument is of type 'DBT * {aka struct *}' kd_search.c:1006:8: error: too many arguments to function 'keydb(&key)->del' if ((*(keydb(&key)->del))(keydb(&key), s->tid, &key, 0)) { ~^~~~~~~~~~~~~~~~~~~~ kd_search.c: At top level: kd_search.c:1059:17: error: unknown type name 'kd_txn'; did you mean 'id_t'? int do_all_keys(kd_txn tid, int flags, llist_iter func, void *c, error *err) ^~~~~~ id_t --- kd_generic.o --- kd_generic.c:751:15: warning: implicit declaration of function 'db_appexit'; did you mean '_exit'? [-Wimplicit-function-declaration] if ((ret = db_appexit(&dbenv))) { ^~~~~~~~~~ _exit --- kd_search.o --- kd_search.c:1178:18: error: unknown type name 'kd_txn'; did you mean 'id_t'? int do_by_userid(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t kd_search.c:1325:17: error: unknown type name 'kd_txn'; did you mean 'id_t'? int kd_search_1(kd_txn tid, unsigned char *userid, long len, int flags, ^~~~~~ id_t kd_search.c:838:12: warning: 'sort_twelvebytes' defined but not used [-Wunused-function] static int sort_twelvebytes(const void *a, const void *b) ^~~~~~~~~~~~~~~~ --- kd_generic.o --- *** [kd_generic.o] Error code 1 make: stopped in /pbulk/work/security/pks/work/pks-0.9.4 --- kd_search.o --- *** [kd_search.o] Error code 1 make: stopped in /pbulk/work/security/pks/work/pks-0.9.4 7 errors make: stopped in /pbulk/work/security/pks/work/pks-0.9.4 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/security/pks *** Error code 1 Stop. make: stopped in /usr/pkgsrc/security/pks