+ 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/eblook-1.6.1nb2/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/eblook-1.6.1nb2/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for eblook-1.6.1nb2 --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in dos --- eblook.o --- --- codeconv.o --- --- getopt.o --- --- getopt1.o --- --- getopt.o --- if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.o getopt.c; then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/getopt.Tpo"; exit 1; fi --- getopt1.o --- if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -MT getopt1.o -MD -MP -MF ".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f ".deps/getopt1.Tpo"; exit 1; fi --- eblook.o --- if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -MT eblook.o -MD -MP -MF ".deps/eblook.Tpo" -c -o eblook.o eblook.c; then mv -f ".deps/eblook.Tpo" ".deps/eblook.Po"; else rm -f ".deps/eblook.Tpo"; exit 1; fi --- codeconv.o --- if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -MT codeconv.o -MD -MP -MF ".deps/codeconv.Tpo" -c -o codeconv.o codeconv.c; then mv -f ".deps/codeconv.Tpo" ".deps/codeconv.Po"; else rm -f ".deps/codeconv.Tpo"; exit 1; fi In file included from codeconv.c:27: codeconv.h:48:29: error: unknown type name 'FILE' 48 | extern int xvfprintf PROTO((FILE *fp, const char *fmt, va_list ap)); | ^~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:32:1: note: 'FILE' is defined in header ''; this is probably fixable by adding '#include ' 31 | #include +++ |+#include 32 | #define USE_STDARG_H codeconv.h:49:28: error: unknown type name 'FILE' 49 | extern int xfprintf PROTO((FILE *fp, const char *fmt, ...)); | ^~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:49:28: note: 'FILE' is defined in header ''; this is probably fixable by adding '#include ' 49 | extern int xfprintf PROTO((FILE *fp, const char *fmt, ...)); | ^~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:51:43: error: unknown type name 'FILE' 51 | extern int xfputs PROTO((const char *str, FILE *fp)); | ^~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:51:43: note: 'FILE' is defined in header ''; this is probably fixable by adding '#include ' 51 | extern int xfputs PROTO((const char *str, FILE *fp)); | ^~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:53:49: error: unknown type name 'FILE' 53 | extern char *xfgets PROTO((char *str, int size, FILE *fp)); | ^~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:53:49: note: 'FILE' is defined in header ''; this is probably fixable by adding '#include ' 53 | extern char *xfgets PROTO((char *str, int size, FILE *fp)); | ^~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:57:8: error: unknown type name 'size_t' 57 | extern size_t current_to_euc PROTO((char **current, size_t *in_len, | ^~~~~~ codeconv.h:32:1: note: 'size_t' is defined in header ''; this is probably fixable by adding '#include ' 31 | #include +++ |+#include 32 | #define USE_STDARG_H codeconv.h:57:53: error: unknown type name 'size_t' 57 | extern size_t current_to_euc PROTO((char **current, size_t *in_len, | ^~~~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:57:53: note: 'size_t' is defined in header ''; this is probably fixable by adding '#include ' 57 | extern size_t current_to_euc PROTO((char **current, size_t *in_len, | ^~~~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:58:49: error: unknown type name 'size_t' 58 | char **euc, size_t *out_len)); | ^~~~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ codeconv.h:58:49: note: 'size_t' is defined in header ''; this is probably fixable by adding '#include ' 58 | char **euc, size_t *out_len)); | ^~~~~~ codeconv.h:41:18: note: in definition of macro 'PROTO' 41 | #define PROTO(p) p | ^ --- getopt.o --- getopt.c: In function '_getopt_internal': getopt.c:577:30: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 577 | if (optind != argc && !strcmp (argv[optind], "--")) | ^~~~~~ getopt.c:111:1: note: include '' or provide a declaration of 'strcmp' 110 | #include "getopt.h" +++ |+#include 111 | getopt.c:653:14: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 653 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | ^~~~~~~ getopt.c:653:14: note: include '' or provide a declaration of 'strncmp' getopt.c:653:50: warning: 'strncmp' argument 3 type is 'long int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 653 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | ~~~~~~~~^~~~~~~~~~ : note: built-in 'strncmp' declared here getopt.c:656:35: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 656 | == (unsigned int) strlen (p->name)) | ^~~~~~ getopt.c:656:35: note: include '' or provide a declaration of 'strlen' getopt.c:656:35: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] getopt.c:656:35: note: include '' or provide a declaration of 'strlen' getopt.c:680:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 680 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:680:23: note: include '' or provide a declaration of 'strlen' getopt.c:710:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 710 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:710:31: note: include '' or provide a declaration of 'strlen' getopt.c:726:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 726 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:726:31: note: include '' or provide a declaration of 'strlen' getopt.c:731:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 731 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:731:23: note: include '' or provide a declaration of 'strlen' getopt.c:840:52: warning: 'strncmp' argument 3 type is 'long int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 840 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | ~~~~~~~~^~~~~~~~~~ : note: built-in 'strncmp' declared here getopt.c:842:58: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 842 | if ((unsigned int) (nameend - nextchar) == strlen (p->name)) | ^~~~~~ getopt.c:842:58: note: include '' or provide a declaration of 'strlen' getopt.c:865:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 865 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:865:25: note: include '' or provide a declaration of 'strlen' getopt.c:885:33: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 885 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:885:33: note: include '' or provide a declaration of 'strlen' getopt.c:899:33: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 899 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:899:33: note: include '' or provide a declaration of 'strlen' getopt.c:903:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 903 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:903:25: note: include '' or provide a declaration of 'strlen' --- eblook.o --- eblook.c: In function 'main': eblook.c:422:7: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 422 | exit (0); | ^~~~ eblook.c:82:1: note: include '' or provide a declaration of 'exit' 81 | #include "eb/binary.h" +++ |+#include 82 | eblook.c:422:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 422 | exit (0); | ^~~~ eblook.c:422:7: note: include '' or provide a declaration of 'exit' eblook.c:448:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 448 | exit (1); | ^~~~ eblook.c:448:5: note: include '' or provide a declaration of 'exit' eblook.c:487:10: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 487 | if (!strncmp (USER_INIT_FILE, "~/", 2)) { | ^~~~~~~ eblook.c:82:1: note: include '' or provide a declaration of 'strncmp' 81 | #include "eb/binary.h" +++ |+#include 82 | eblook.c:487:41: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 487 | if (!strncmp (USER_INIT_FILE, "~/", 2)) { | ^ : note: built-in 'strncmp' declared here eblook.c:497:7: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 497 | strcpy (buff, getenv ("HOME")); | ^~~~~~ eblook.c:497:7: note: include '' or provide a declaration of 'strcpy' eblook.c:497:7: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] eblook.c:497:7: note: include '' or provide a declaration of 'strcpy' eblook.c:497:21: error: implicit declaration of function 'getenv' [-Wimplicit-function-declaration] 497 | strcpy (buff, getenv ("HOME")); | ^~~~~~ eblook.c:497:21: note: 'getenv' is defined in header ''; this is probably fixable by adding '#include ' eblook.c:497:21: error: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion] 497 | strcpy (buff, getenv ("HOME")); | ^~~~~~~~~~~~~~~ | | | int eblook.c:497:21: note: expected 'const char *' but argument is of type 'int' eblook.c:498:7: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 498 | strcat (buff, USER_INIT_FILE + 1); | ^~~~~~ eblook.c:498:7: note: include '' or provide a declaration of 'strcat' eblook.c:498:7: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] eblook.c:498:7: note: include '' or provide a declaration of 'strcat' eblook.c:501:7: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 501 | strcpy (buff, USER_INIT_FILE); | ^~~~~~ eblook.c:501:7: note: include '' or provide a declaration of 'strcpy' eblook.c:584:13: error: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration] 584 | if (strcasecmp (s, "JIS") == 0) | ^~~~~~~~~~ --- codeconv.o --- codeconv.c: In function 'iconv_test': codeconv.c:216:20: error: passing argument 2 of 'libiconv' from incompatible pointer type [-Wincompatible-pointer-types] 216 | if (iconv(etoc,&test1,&ilen,&test2,&olen) == ((size_t)-1)) | ^~~~~~ | | | char ** In file included from codeconv.c:44: /home/pbulk/build/textproc/eblook/work/.buildlink/include/iconv.h:82:48: note: expected 'const char **' but argument is of type 'char **' 82 | extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft); | ~~~~~~~~~~~~~~^~~~~ codeconv.c:225:20: error: passing argument 2 of 'libiconv' from incompatible pointer type [-Wincompatible-pointer-types] 225 | if (iconv(ctoe,&test2,&ilen,&test3,&olen) == ((size_t)-1)) | ^~~~~~ | | | char ** /home/pbulk/build/textproc/eblook/work/.buildlink/include/iconv.h:82:48: note: expected 'const char **' but argument is of type 'char **' 82 | extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft); | ~~~~~~~~~~~~~~^~~~~ codeconv.c: In function 'locale_init': codeconv.h:36:24: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073709551615' to '-1' [-Woverflow] 36 | #define CODECONV_ERROR ((size_t)-1) | ^ codeconv.c:351:20: note: in expansion of macro 'CODECONV_ERROR' 351 | return CODECONV_ERROR; | ^~~~~~~~~~~~~~ --- getopt.o --- *** [getopt.o] Error code 1 bmake[2]: stopped making "all-am" in /home/pbulk/build/textproc/eblook/work/eblook-1.6.1 --- eblook.o --- eblook.c: In function 'excute_command': eblook.c:735:7: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 735 | if (strcmp (argv[0], "quit") == 0) | ^~~~~~ eblook.c:735:7: note: include '' or provide a declaration of 'strcmp' eblook.c: In function 'parse_command_line': eblook.c:768:7: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 768 | strcpy (p, p + 1); | ^~~~~~ eblook.c:768:7: note: include '' or provide a declaration of 'strcpy' eblook.c: In function 'command_list': eblook.c:940:11: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 940 | strcat(buff2[i], buff); | ^~~~~~ eblook.c:940:11: note: include '' or provide a declaration of 'strcat' --- codeconv.o --- codeconv.c: In function 'current_to_euc': codeconv.c:664:32: error: passing argument 2 of 'libiconv' from incompatible pointer type [-Wincompatible-pointer-types] 664 | ret = iconv(cur_to_euc,in_buf,in_len,out_buf,out_len); | ^~~~~~ | | | char ** /home/pbulk/build/textproc/eblook/work/.buildlink/include/iconv.h:82:48: note: expected 'const char **' but argument is of type 'char **' 82 | extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft); | ~~~~~~~~~~~~~~^~~~~ codeconv.c: In function 'euc_to_current': codeconv.c:773:32: error: passing argument 2 of 'libiconv' from incompatible pointer type [-Wincompatible-pointer-types] 773 | ret = iconv(euc_to_cur,in_buf,in_len,out_buf,out_len); | ^~~~~~ | | | char ** /home/pbulk/build/textproc/eblook/work/.buildlink/include/iconv.h:82:48: note: expected 'const char **' but argument is of type 'char **' 82 | extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft); | ~~~~~~~~~~~~~~^~~~~ --- eblook.o --- eblook.c: In function 'command_search': eblook.c:1103:22: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 1103 | length = pattern ? atoi (pattern) : 0; | ^~~~ eblook.c: In function 'command_pbm': eblook.c:1187:65: error: passing argument 4 of 'eb_read_rawtext' from incompatible pointer type [-Wincompatible-pointer-types] 1187 | ret = eb_read_rawtext(¤t_book, w*h/8, (char *)buffer, &len); | ^~~~ | | | int * In file included from eblook.c:77: /home/pbulk/build/textproc/eblook/work/.buildlink/include/eb/text.h:145:26: note: expected 'ssize_t *' {aka 'long int *'} but argument is of type 'int *' 145 | char *text, ssize_t *text_length); | ~~~~~~~~~^~~~~~~~~~~ eblook.c: In function 'command_xbm': eblook.c:1262:65: error: passing argument 4 of 'eb_read_rawtext' from incompatible pointer type [-Wincompatible-pointer-types] 1262 | ret = eb_read_rawtext(¤t_book, w*h/8, (char *)buffer, &len); | ^~~~ | | | int * /home/pbulk/build/textproc/eblook/work/.buildlink/include/eb/text.h:145:26: note: expected 'ssize_t *' {aka 'long int *'} but argument is of type 'int *' 145 | char *text, ssize_t *text_length); | ~~~~~~~~~^~~~~~~~~~~ eblook.c: In function 'command_bmp': eblook.c:1324:48: error: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] 1324 | xprintf("NG: fopen %s: %s\n", argv[2], strerror(errno)); | ^~~~~~~~ eblook.c: In function 'command_jpeg': eblook.c:1440:50: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1440 | strncmp((char *)binary_data, "data", 4) == 0 && | ^ : note: built-in 'strncmp' declared here eblook.c:1441:53: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 1441 | strncmp((char *)binary_data+14, "JFIF", 4) == 0) { | ^ : note: built-in 'strncmp' declared here eblook.c: In function 'parse_entry_id': eblook.c:1830:17: error: implicit declaration of function 'strtol' [-Wimplicit-function-declaration] 1830 | pos->page = strtol (code, &endp, 0); | ^~~~~~ eblook.c:1870:9: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration] 1870 | qsort(list, num, sizeof(EB_Hit), hitcomp); | ^~~~~ eblook.c: In function 'search_pattern': eblook.c:1964:11: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 1964 | i = strlen (pattern) - 1; | ^~~~~~ eblook.c:1964:11: note: include '' or provide a declaration of 'strlen' eblook.c:1964:11: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] eblook.c:1964:11: note: include '' or provide a declaration of 'strlen' eblook.c: In function 'hook_decoration': eblook.c:2424:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 2424 | strcpy (buff, ""); | ^~~~~~ eblook.c:2424:5: note: include '' or provide a declaration of 'strcpy' eblook.c: In function 'hook_img': eblook.c:2547:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 2547 | strcpy (buff, ""); | ^~~~~~ eblook.c:2547:5: note: include '' or provide a declaration of 'strcpy' eblook.c: In function 'hook_tags': eblook.c:2584:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 2584 | strcpy (buff, ""); | ^~~~~~ eblook.c:2584:5: note: include '' or provide a declaration of 'strcpy' eblook.c: In function 'set_error_message': eblook.c:2659:27: error: passing argument 3 of 'salist_set' makes pointer from integer without a cast [-Wint-conversion] 2659 | variable_set ("_error", strerror (errno)); | ^~~~~~~~~~~~~~~~ | | | int eblook.c:218:56: note: in definition of macro 'variable_set' 218 | variable_alist = salist_set (variable_alist, key, value) | ^~~~~ eblook.c:210:55: note: expected 'const char *' but argument is of type 'int' 210 | StringAlist *salist_set (StringAlist *, const char *, const char *); | ^~~~~~~~~~~~ eblook.c: In function 'eblook_search_keyword': --- codeconv.o --- *** [codeconv.o] Error code 1 bmake[2]: stopped making "all-am" in /home/pbulk/build/textproc/eblook/work/eblook-1.6.1 --- eblook.o --- eblook.c:2677:13: error: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] 2677 | char *p = strdup(pattern); | ^~~~~~ eblook.c:2677:13: warning: incompatible implicit declaration of built-in function 'strdup' [-Wbuiltin-declaration-mismatch] eblook.c:2680:16: error: implicit declaration of function 'strtok' [-Wimplicit-function-declaration] 2680 | keyword[0] = strtok(p, "="); | ^~~~~~ eblook.c:2680:14: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2680 | keyword[0] = strtok(p, "="); | ^ eblook.c:2683:16: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2683 | keyword[i] = strtok(0, "="); | ^ eblook.c:2687:3: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 2687 | free(p); | ^~~~ eblook.c:2687:3: note: include '' or provide a declaration of 'free' eblook.c:2687:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] eblook.c:2687:3: note: include '' or provide a declaration of 'free' eblook.c: In function 'eblook_search_multi': eblook.c:2698:13: warning: incompatible implicit declaration of built-in function 'strdup' [-Wbuiltin-declaration-mismatch] 2698 | char *p = strdup(pattern); | ^~~~~~ eblook.c:2706:16: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2706 | candidate[0] = strtok(p, ":"); | ^ eblook.c:2709:18: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2709 | candidate[i] = strtok(0, ":"); | ^ eblook.c:2728:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 2728 | free(p); | ^~~~ eblook.c:2728:3: note: include '' or provide a declaration of 'free' eblook.c: In function 'salist_set': eblook.c:2749:19: warning: incompatible implicit declaration of built-in function 'strdup' [-Wbuiltin-declaration-mismatch] 2749 | char *p = strdup (value); | ^~~~~~ eblook.c:2751:11: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 2751 | free (var->value); | ^~~~ eblook.c:2751:11: note: include '' or provide a declaration of 'free' eblook.c:2760:11: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 2760 | free (var->key); | ^~~~ eblook.c:2760:11: note: include '' or provide a declaration of 'free' eblook.c:2770:18: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 2770 | if ((var = malloc (sizeof (StringAlist))) == NULL) { | ^~~~~~ eblook.c:2770:18: note: include '' or provide a declaration of 'malloc' eblook.c:2770:18: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] eblook.c:2770:18: note: include '' or provide a declaration of 'malloc' eblook.c:2772:30: warning: incompatible implicit declaration of built-in function 'strdup' [-Wbuiltin-declaration-mismatch] 2772 | } else if ((var->key = strdup (key)) == NULL || | ^~~~~~ eblook.c:2775:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 2775 | free (var->key); | ^~~~ eblook.c:2775:9: note: include '' or provide a declaration of 'free' eblook.c:2796:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 2796 | free (var->key); | ^~~~ eblook.c:2796:9: note: include '' or provide a declaration of 'free' eblook.c: In function 'can_menu_begin': eblook.c:2844:5: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 2844 | memset(can_word, 0, sizeof(can_word)); | ^~~~~~ eblook.c:2844:5: note: include '' or provide a declaration of 'memset' eblook.c:2844:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] eblook.c:2844:5: note: include '' or provide a declaration of 'memset' eblook.c: In function 'can_menu_end': eblook.c:2862:16: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 2862 | head = malloc(sizeof(struct multi_can)); | ^~~~~~ eblook.c:2862:16: note: include '' or provide a declaration of 'malloc' eblook.c:2870:22: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 2870 | tail->next = malloc(sizeof(struct multi_can)); | ^~~~~~ eblook.c:2870:22: note: include '' or provide a declaration of 'malloc' eblook.c:2877:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 2877 | memset(tail, 0, sizeof(struct multi_can)); | ^~~~~~ eblook.c:2877:5: note: include '' or provide a declaration of 'memset' eblook.c:2878:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 2878 | strcpy(tail->text, can_word); | ^~~~~~ eblook.c:2878:5: note: include '' or provide a declaration of 'strcpy' eblook.c: In function 'can_menu_narrow_char': eblook.c:3002:5: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 3002 | strcat(can_word, (char *)outchars); | ^~~~~~ eblook.c:3002:5: note: include '' or provide a declaration of 'strcat' eblook.c: In function 'can_menu_wide_char': eblook.c:3022:5: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 3022 | strcat(can_word, (char *)outchars); | ^~~~~~ eblook.c:3022:5: note: include '' or provide a declaration of 'strcat' eblook.c: In function 'can_menu_gaiji': eblook.c:3050:5: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 3050 | strcat(can_word, workbuf); | ^~~~~~ eblook.c:3050:5: note: include '' or provide a declaration of 'strcat' eblook.c: In function 'process_child': eblook.c:3109:83: error: passing argument 7 of 'eb_read_text' from incompatible pointer type [-Wincompatible-pointer-types] 3109 | error_code = eb_read_text(book, 0, &multi_candidate_hookset, NULL, 2047, buf, &buflen); | ^~~~~~~ | | | int * /home/pbulk/build/textproc/eblook/work/.buildlink/include/eb/text.h:140:14: note: expected 'ssize_t *' {aka 'long int *'} but argument is of type 'int *' 140 | ssize_t *text_length); | ~~~~~~~~~^~~~~~~~~~~ eblook.c: In function 'show_candidates_level': eblook.c:3127:14: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 3127 | indent = malloc(level+1); | ^~~~~~ eblook.c:3127:14: note: include '' or provide a declaration of 'malloc' eblook.c:3132:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 3132 | memset(indent, '\t', level); | ^~~~~~ eblook.c:3132:5: note: include '' or provide a declaration of 'memset' eblook.c:3145:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 3145 | free(indent); | ^~~~ eblook.c:3145:5: note: include '' or provide a declaration of 'free' eblook.c: In function 'free_candidates_tree': eblook.c:3160:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 3160 | free(can); | ^~~~ eblook.c:3160:9: note: include '' or provide a declaration of 'free' eblook.c: In function 'show_candidate': eblook.c:3186:42: error: passing argument 7 of 'eb_read_text' from incompatible pointer type [-Wincompatible-pointer-types] 3186 | 2047, buf, &buflen); | ^~~~~~~ | | | int * /home/pbulk/build/textproc/eblook/work/.buildlink/include/eb/text.h:140:14: note: expected 'ssize_t *' {aka 'long int *'} but argument is of type 'int *' 140 | ssize_t *text_length); | ~~~~~~~~~^~~~~~~~~~~ *** [eblook.o] Error code 1 bmake[2]: stopped making "all-am" in /home/pbulk/build/textproc/eblook/work/eblook-1.6.1 bmake[2]: 3 errors bmake[2]: stopped making "all-am" in /home/pbulk/build/textproc/eblook/work/eblook-1.6.1 *** [all-recursive] Error code 1 bmake[1]: stopped making "all-recursive" in /home/pbulk/build/textproc/eblook/work/eblook-1.6.1 bmake[1]: 1 error bmake[1]: stopped making "all-recursive" in /home/pbulk/build/textproc/eblook/work/eblook-1.6.1 *** [all] Error code 2 bmake: stopped making "all" in /home/pbulk/build/textproc/eblook/work/eblook-1.6.1 bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/textproc/eblook/work/eblook-1.6.1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/textproc/eblook *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/textproc/eblook