* Package: app-text/hnb-1.9.18-r1 * Repository: gentoo * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking hnb-1.9.18.tar.gz to /var/tmp/portage/app-text/hnb-1.9.18-r1/work >>> Source unpacked in /var/tmp/portage/app-text/hnb-1.9.18-r1/work >>> Preparing source in /var/tmp/portage/app-text/hnb-1.9.18-r1/work/hnb-1.9.18 ... * Applying hnb-1.9.18-flags.patch ... [ ok ] * Applying hnb-1.9.18-include.patch ... [ ok ] * Applying hnb-1.9.18-printf.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-text/hnb-1.9.18-r1/work/hnb-1.9.18 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/app-text/hnb-1.9.18-r1/work/hnb-1.9.18 ... make -j1 (cd src;make) make[1]: Entering directory '/var/tmp/portage/app-text/hnb-1.9.18-r1/work/hnb-1.9.18/src' (cd libcli;make libcli.a) make[2]: Entering directory '/var/tmp/portage/app-text/hnb-1.9.18-r1/work/hnb-1.9.18/src/libcli' x86_64-pc-linux-gnu-gcc -Wall -c -o cli.o cli.c cli.c: In function 'cli_docmd': cli.c:233:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 233 | int ret=(int)data; | ^ cli.c: In function 'help': cli.c:413:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 413 | return(int)data; | ^ cli.c:420:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 420 | return(int)data; | ^ cli.c: In function 'vars': cli.c:449:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 449 | return(int)data; | ^ x86_64-pc-linux-gnu-gcc -Wall -c -o cli_history.o cli_history.c x86_64-pc-linux-gnu-gcc -Wall -c -o cli_tokenize.o cli_tokenize.c cli_tokenize.c: In function 'argv_tokenize': cli_tokenize.c:222:40: warning: pointer targets in passing argument 1 of 'cli_getstring' differ in signedness [-Wpointer-sign] 222 | total_length+=strlen(cli_getstring(varname)); | ^~~~~~~ | | | unsigned char * cli_tokenize.c:83:7: note: expected 'char *' but argument is of type 'unsigned char *' 83 | char *cli_getstring(char *variable); | ^~~~~~~~~~~~~ cli_tokenize.c:272:33: warning: pointer targets in passing argument 1 of 'cli_getstring' differ in signedness [-Wpointer-sign] 272 | strcpy(output,cli_getstring(varname)); | ^~~~~~~ | | | unsigned char * cli_tokenize.c:83:7: note: expected 'char *' but argument is of type 'unsigned char *' 83 | char *cli_getstring(char *variable); | ^~~~~~~~~~~~~ cli_tokenize.c:273:34: warning: pointer targets in passing argument 1 of 'cli_getstring' differ in signedness [-Wpointer-sign] 273 | output+=strlen(cli_getstring(varname)); | ^~~~~~~ | | | unsigned char * cli_tokenize.c:83:7: note: expected 'char *' but argument is of type 'unsigned char *' 83 | char *cli_getstring(char *variable); | ^~~~~~~~~~~~~ x86_64-pc-linux-gnu-ar rc libcli.a cli*.o make[2]: Leaving directory '/var/tmp/portage/app-text/hnb-1.9.18-r1/work/hnb-1.9.18/src/libcli' x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o actions.o actions.c actions.c: In function 'cmd_system': actions.c:45:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 45 | return (int)pos; | ^ actions.c: In function 'cmd_action': actions.c:146:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 146 | return (int) pos; | ^ actions.c:150:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 150 | return (int) pos; | ^ actions.c:153:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 153 | return (int) pos; | ^ actions.c: In function 'action_node': actions.c:126:3: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] 126 | system (cmdline); | ^~~~~~~~~~~~~~~~ actions.c: In function 'cmd_system': actions.c:41:3: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] 41 | system (argv[1]); | ^~~~~~~~~~~~~~~~ actions.c: In function 'action_node': actions.c:55:3: warning: offset '5' outside bounds of constant string [-Warray-bounds] 55 | sprintf (cmdline, "%s > /dev/null 2>&1 &", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | fixnullstring (node_get (node, TEXT)) + 5); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o autosave.o autosave.c autosave.c: In function 'tree_changed_cmd': autosave.c:59:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 59 | return (int) pos; | ^ autosave.c: In function 'autosave_check_timeout': autosave.c:71:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 71 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o cal.o cal.c cal.c: In function 'insert_cal': cal.c:48:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 48 | return (int)data; | ^ cal.c:56:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 56 | return (int)data; | ^ cal.c:106:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 106 | return (int)pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o cli_macro.o cli_macro.c cli_macro.c: In function 'cmd_macro': cli_macro.c:91:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 91 | return (int)do_macro(tmacro,pos); | ^ cli_macro.c:100:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 100 | return (int) pos; | ^ cli_macro.c:122:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 122 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o clipboard.o clipboard.c clipboard.c: In function 'copy_cmd': clipboard.c:42:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 42 | return (int) pos; | ^ clipboard.c: In function 'cut_cmd': clipboard.c:50:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 50 | return (int)data; | ^ clipboard.c:61:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 61 | return (int) pos; | ^ clipboard.c: In function 'paste_cmd': clipboard.c:74:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 74 | return (int)data; | ^ clipboard.c:81:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 81 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o evilloop.o evilloop.c evilloop.c: In function 'cmd_quit': evilloop.c:129:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 129 | return (int)pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o expanded.o expanded.c expanded.c: In function 'cmd_expand': expanded.c:39:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 39 | return (int)pos; | ^ expanded.c:51:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 51 | return (int) pos; | ^ expanded.c: In function 'cmd_collapse': expanded.c:63:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 63 | return (int)pos; | ^ expanded.c:76:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 76 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o file.o file.c file.c: In function 'cmd_save': file.c:159:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 159 | return (int)pos; | ^ file.c:182:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 182 | return (int) pos; | ^ file.c: In function 'cmd_revert': file.c:200:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 200 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o file_ascii.o file_ascii.c file_ascii.c: In function 'import_ascii': file_ascii.c:49:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 49 | return (int) (node); | ^ file_ascii.c:76:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 76 | return (int) (node); | ^ file_ascii.c: In function 'export_ascii': file_ascii.c:113:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 113 | return (int) node; | ^ file_ascii.c:133:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 133 | return (int) node; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o file_binary.o file_binary.c file_binary.c: In function 'export_binary': file_binary.c:92:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 92 | return (int) node; | ^ file_binary.c:102:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 102 | return (int) node; | ^ file_binary.c: In function 'import_binary': file_binary.c:120:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 120 | return (int) node; | ^ file_binary.c:169:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 169 | return (int) node; | ^ file_binary.c:124:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] 124 | fread(&header, sizeof(int), 1, file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file_binary.c:125:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] 125 | fread(&version, sizeof(int), 1, file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file_binary.c:138:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] 138 | fread(&attributes, sizeof(int),1,file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file_binary.c:147:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] 147 | fread(&len, sizeof(int),1,file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file_binary.c:149:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] 149 | fread(att_name,1,len,file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ file_binary.c:151:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] 151 | fread(&len, sizeof(int),1,file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file_binary.c:153:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] 153 | fread(att_data,1,len,file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o file_help.o file_help.c file_help.c: In function 'export_help': file_help.c:58:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 58 | return (int) node; | ^ file_help.c:89:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 89 | return (int) node; | ^ file_help.c:50:32: warning: variable 'lastlevel' set but not used [-Wunused-but-set-variable] 50 | int level, flags, startlevel, lastlevel, cnt; | ^~~~~~~~~ file_help.c: In function 'import_help': file_help.c:103:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 103 | return (int) (node); | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o file_hnb.o file_hnb.c file_hnb.c: In function 'export_hnb': file_hnb.c:121:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 121 | return (int) node; | ^ file_hnb.c:146:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 146 | return (int) node; | ^ file_hnb.c: In function 'import_hnb': file_hnb.c:173:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 173 | return (int) node; | ^ file_hnb.c:183:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 183 | return (int) node; | ^ file_hnb.c:266:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 266 | return (int) node; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o file_html.o file_html.c file_html.c: In function 'export_html': file_html.c:70:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 70 | return (int) node; | ^ file_html.c:133:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 133 | return (int) node; | ^ file_html.c:60:13: warning: variable 'flags' set but not used [-Wunused-but-set-variable] 60 | int level, flags, startlevel, lastlevel, cnt; | ^~~~~ file_html.c: In function 'export_htmlcss': file_html.c:177:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 177 | return (int) node; | ^ file_html.c:227:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 227 | return (int) node; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o file_opml.o file_opml.c file_opml.c: In function 'export_opml': file_opml.c:106:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 106 | return (int) node; | ^ file_opml.c:136:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 136 | return (int) node; | ^ file_opml.c: In function 'import_opml': file_opml.c:157:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 157 | return (int) node; | ^ file_opml.c:167:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 167 | return (int) node; | ^ file_opml.c:211:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 211 | return (int) node; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o file_ps.o file_ps.c file_ps.c: In function 'export_ps': file_ps.c:78:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 78 | return (int) node; | ^ file_ps.c:84:2: warning: string length '5113' is greater than the length '4095' ISO C99 compilers are required to support [-Woverlength-strings] 84 | fprintf (file, "%%!PS %% all files must open with this header\n\ | ^~~~~~~ file_ps.c:228:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 228 | return (int) node; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o file_xml.o file_xml.c file_xml.c: In function 'xml_export_nodes': file_xml.c:79:6: warning: variable 'flags' set but not used [-Wunused-but-set-variable] 79 | int flags; | ^~~~~ file_xml.c: In function 'export_xml': file_xml.c:162:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 162 | return (int) node; | ^ file_xml.c:173:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 173 | return (int) node; | ^ file_xml.c: In function 'import_xml': file_xml.c:224:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 224 | return (int) node; | ^ file_xml.c:234:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 234 | return (int) node; | ^ file_xml.c:331:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 331 | return (int) node; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o hnb.o hnb.c hnb.c: In function 'main': hnb.c:346:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 346 | pos = (Node *) cli_docmd (cmdline.cmd, pos); | ^ hnb.c:348:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 348 | pos = (Node *) cli_docmd (argv[argno++], pos); | ^ hnb.c:268:7: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] 268 | fgets(response,10,stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~ hnb.c:317:33: warning: '%s' directive writing up to 4095 bytes into a region of size 4082 [-Wformat-overflow=] 317 | sprintf (buf, "import_binary %s", file_to_load); | ^~ ~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from /usr/include/curses.h:183, from ui.h:5, from hnb.c:44: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 15 and 4110 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hnb.c:319:29: warning: '%s' directive writing up to 4095 bytes into a region of size between 3961 and 4088 [-Wformat-overflow=] 319 | sprintf (buf, "import_%s %s", prefs.format, file_to_load); | ^~ ~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from /usr/include/curses.h:183, from ui.h:5, from hnb.c:44: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 9 and 4231 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Circular init_subsystems.c <- init_subsystems.c dependency dropped. echo "/* this file is autogenerated, do not edit */">init_subsystems.c cat actions.c autosave.c cal.c cli_macro.c clipboard.c evilloop.c expanded.c file.c file_ascii.c file_binary.c file_help.c file_hnb.c file_html.c file_opml.c file_ps.c file_xml.c hnb.c init_subsystems.c node.c path.c prefs.c query.c search.c spell.c statcmds.c state.c tokenizer.c tree.c tree_misc.c tree_sort.c tree_todo.c ui.c ui_binding.c ui_cli.c ui_draw.c ui_edit.c ui_menu.c ui_overlay.c ui_style.c util_string.c xml_tok.c | grep "^\!init_" | sort | sed -e "s/^\!/void /g">>init_subsystems.c echo "">>init_subsystems.c echo "void init_subsystems(){">>init_subsystems.c cat actions.c autosave.c cal.c cli_macro.c clipboard.c evilloop.c expanded.c file.c file_ascii.c file_binary.c file_help.c file_hnb.c file_html.c file_opml.c file_ps.c file_xml.c hnb.c init_subsystems.c node.c path.c prefs.c query.c search.c spell.c statcmds.c state.c tokenizer.c tree.c tree_misc.c tree_sort.c tree_todo.c ui.c ui_binding.c ui_cli.c ui_draw.c ui_edit.c ui_menu.c ui_overlay.c ui_style.c util_string.c xml_tok.c | grep "^\!init_" | sort | sed -e "s/^\!/ /g">>init_subsystems.c echo "}">>init_subsystems.c x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o init_subsystems.o init_subsystems.c x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o node.o node.c node.c: In function 'cmd_att_set': node.c:148:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 148 | return (int) pos; | ^ node.c:152:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 152 | return (int) pos; | ^ node.c: In function 'cmd_att_get': node.c:162:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 162 | return (int) pos; | ^ node.c:169:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 169 | return (int) pos; | ^ node.c: In function 'cmd_att_clear': node.c:177:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 177 | return (int) pos; | ^ node.c:180:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 180 | return (int) pos; | ^ node.c: In function 'cmd_att_list': node.c:193:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 193 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o path.o path.c x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o prefs.o prefs.c prefs.c: In function 'write_default_prefs': prefs.c:89:3: warning: string length '15444' is greater than the length '4095' ISO C99 compilers are required to support [-Woverlength-strings] 89 | ); | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o query.o query.c query.c: In function 'getquery_cmd': query.c:39:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 39 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o search.o search.c search.c: In function 'search': search.c:40:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 40 | return (int) data; | ^ search.c:49:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 49 | return (int) data; | ^ search.c:56:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 56 | return (int) data; | ^ search.c:59:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 59 | return (int)pos; | ^ search.c:62:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 62 | return (int)pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o spell.o spell.c spell.c: In function 'spell_cmd': spell.c:80:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 80 | return (int)data; | ^ spell.c:95:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 95 | return (int) pos; | ^ spell.c: In function 'spell_node': spell.c:50:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 50 | write (tempfile, fixnullstring (node_get (node, TEXT)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 51 | strlen (node_get (node, TEXT))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spell.c:55:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] 55 | system (commandline); | ^~~~~~~~~~~~~~~~~~~~ spell.c:52:28: warning: '%s' directive writing up to 31 bytes into a region of size between 0 and 254 [-Wformat-overflow=] 52 | sprintf (commandline, "%s %s", spell_command, tempfilename); | ^~ ~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from /usr/include/curses.h:183, from ui.h:5, from spell.c:25: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 287 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o statcmds.o statcmds.c statcmds.c: In function 'mem_cmd': statcmds.c:38:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 38 | return (int) pos; | ^ statcmds.c:56:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 56 | return (int) pos; | ^ statcmds.c:67:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 67 | return (int) pos; | ^ statcmds.c: In function 'stats_cmd': statcmds.c:117:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 117 | return (int) pos; | ^ statcmds.c: In function 'mem_cmd': statcmds.c:40:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] 40 | fscanf (file, | ^~~~~~~~~~~~~ 41 | "%*i %*s %*s %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %*i %i", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 42 | &VmSize); | ~~~~~~~~ statcmds.c:58:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] 58 | fscanf (file, "%*s %*s %*s %*s %*s %*s %*s %*i %*i %i %i %i", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 59 | &free, &buffers, &cached); | ~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o state.o state.c state.c: In function 'save_state_cmd': state.c:61:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 61 | return (int) pos; | ^ state.c: In function 'restore_state_cmd': state.c:77:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 77 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o tokenizer.o tokenizer.c x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o tree.o tree.c tree.c: In function 'node_swap': tree.c:385:22: warning: variable 'Bright' set but not used [-Wunused-but-set-variable] 385 | Node *Bup, *Bleft, *Bright, *Bdown; | ^~~~~~ tree.c:384:22: warning: variable 'Aright' set but not used [-Wunused-but-set-variable] 384 | Node *Aup, *Aleft, *Aright, *Adown; | ^~~~~~ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o tree_misc.o tree_misc.c tree_misc.c: In function 'cmd_movenode': tree_misc.c:35:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 35 | return (int)pos; | ^ tree_misc.c:39:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 39 | return (int)data; | ^ tree_misc.c:72:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 72 | return (int) pos; | ^ tree_misc.c: In function 'cmd_go': tree_misc.c:88:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 88 | return (int)pos; | ^ tree_misc.c:118:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 118 | return (int)pos; | ^ tree_misc.c: In function 'cmd_outdent': tree_misc.c:143:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 143 | return (int)pos; | ^ tree_misc.c:147:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 147 | return (int)data; | ^ tree_misc.c:179:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 179 | return (int) pos; | ^ tree_misc.c: In function 'cmd_indent': tree_misc.c:193:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 193 | return (int)pos; | ^ tree_misc.c:197:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 197 | return (int)data; | ^ tree_misc.c:223:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 223 | return (int) pos; | ^ tree_misc.c: In function 'remove_cmd': tree_misc.c:245:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 245 | return (int)data; | ^ tree_misc.c:266:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 266 | return (int) pos; | ^ tree_misc.c: In function 'commandline_cmd': tree_misc.c:295:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 295 | return (int) pos; | ^ tree_misc.c: In function 'insert_below_cmd': tree_misc.c:313:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 313 | return (int)data; | ^ tree_misc.c:328:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 328 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o tree_sort.o tree_sort.c tree_sort.c: In function 'sort_cmd': tree_sort.c:158:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 158 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o tree_todo.o tree_todo.c tree_todo.c: In function 'toggle_todo_cmd': tree_todo.c:274:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 274 | return (int) pos; | ^ tree_todo.c: In function 'toggle_done_cmd': tree_todo.c:282:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 282 | return (int) pos; | ^ tree_todo.c:291:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 291 | return (int) pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o ui.o ui.c x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o ui_binding.o ui_binding.c ui_binding.c: In function 'ui_context_cmd': ui_binding.c:257:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 257 | return(int)data; | ^ ui_binding.c:260:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 260 | return (int) data; | ^ ui_binding.c: In function 'ui_bind_cmd': ui_binding.c:283:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 283 | return (int)data; | ^ ui_binding.c:296:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 296 | return (int) data; | ^ ui_binding.c: In function 'dummy_cmd': ui_binding.c:400:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 400 | return (int) data; | ^ At top level: ui_binding.c:398:12: warning: 'dummy_cmd' defined but not used [-Wunused-function] 398 | static int dummy_cmd (int argc, char **argv, void *data) | ^~~~~~~~~ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o ui_cli.o ui_cli.c ui_cli.c: In function 'add': ui_cli.c:68:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 68 | return (int) pos; | ^ ui_cli.c: In function 'addc': ui_cli.c:84:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 84 | return (int) pos; | ^ ui_cli.c:98:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 98 | return (int) pos; | ^ ui_cli.c: In function 'pwd': ui_cli.c:107:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 107 | return (int) pos; | ^ ui_cli.c: In function 'cd': ui_cli.c:116:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 116 | return (int)node_root(pos); | ^ ui_cli.c:121:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 121 | return (int) (node_left (tnode)); | ^ ui_cli.c:131:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 131 | return (int) pos; | ^ ui_cli.c:133:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 133 | return (int) tnode; | ^ ui_cli.c:135:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 135 | return (int) pos; | ^ ui_cli.c: In function 'ls': ui_cli.c:191:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 191 | return (int) pos; | ^ ui_cli.c: In function 'docmd': ui_cli.c:224:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 224 | return (Node *) ret; | ^ ui_cli.c: In function 'cli': ui_cli.c:256:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 256 | pos = (Node *) cli_docmd (commandline, pos); | ^ ui_cli.c:254:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] 254 | fgets (commandline, 4096, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o ui_draw.o ui_draw.c ui_draw.c: In function 'display_format_cmd': ui_draw.c:536:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 536 | return (int)data; | ^ ui_draw.c:621:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 621 | return (int) data; | ^ ui_draw.c: In function 'ui_draw': ui_draw.c:783:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 783 | lines = draw_item (active_line, (int) input, node, drawmode_edit); | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o ui_edit.o ui_edit.c ui_edit.c: In function 'ui_edit_cmd': ui_edit.c:51:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 51 | return (int)data; | ^ ui_edit.c:70:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 70 | return (int) pos; | ^ ui_edit.c:84:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 84 | ui_draw (pos, (char *) cursor_pos, 1); | ^ ui_edit.c:218:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 218 | return (int) data; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o ui_menu.o ui_menu.c ui_menu.c: In function 'cmd_menu': ui_menu.c:115:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 115 | return (int)menu_do(pos); | ^ ui_menu.c:145:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 145 | return(int)pos; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o ui_overlay.o ui_overlay.c ui_overlay.c: In function 'ui_helptext_cmd': ui_overlay.c:51:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 51 | return (int) data; | ^ ui_overlay.c: In function 'ui_status_cmd': ui_overlay.c:141:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 141 | return (int) data; | ^ In file included from /usr/include/string.h:494, from ui_overlay.c:26: In function 'strncpy', inlined from 'status.constprop' at ui_overlay.c:66:2: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o ui_style.o ui_style.c ui_style.c: In function 'ui_style_cmd': ui_style.c:127:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 127 | return (int)data; | ^ ui_style.c:140:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 140 | return (int) data; | ^ ui_style.c:169:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 169 | return (int) data; | ^ x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o util_string.o util_string.c x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -fno-common -Wall -pedantic -I.. -Ilibcli -DHAVE_CONFIG_H -o xml_tok.o xml_tok.c x86_64-pc-linux-gnu-gcc -o hnb actions.o autosave.o cal.o cli_macro.o clipboard.o evilloop.o expanded.o file.o file_ascii.o file_binary.o file_help.o file_hnb.o file_html.o file_opml.o file_ps.o file_xml.o hnb.o init_subsystems.o node.o path.o prefs.o query.o search.o spell.o statcmds.o state.o tokenizer.o tree.o tree_misc.o tree_sort.o tree_todo.o ui.o ui_binding.o ui_cli.o ui_draw.o ui_edit.o ui_menu.o ui_overlay.o ui_style.o util_string.o xml_tok.o -lncurses -ltinfo libcli/libcli.a -O2 -pipe -march=native -fno-common -Wall -pedantic -Wl,-O1 -Wl,--as-needed /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ui_draw.o:(.bss+0x10): multiple definition of `active_line'; ui.o:(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ui_draw.o:(.bss+0x14): multiple definition of `nodes_above'; ui.o:(.bss+0xc): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ui_draw.o:(.bss+0xc): multiple definition of `nodes_below'; ui.o:(.bss+0x4): first defined here collect2: error: ld returned 1 exit status make[1]: *** [Makefile:12: hnb] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-text/hnb-1.9.18-r1/work/hnb-1.9.18/src' make: *** [Makefile:3: src/hnb] Error 2 * ERROR: app-text/hnb-1.9.18-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-text/hnb-1.9.18-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-text/hnb-1.9.18-r1::gentoo'`. * The complete build log is located at '/var/log/portage/app-text:hnb-1.9.18-r1:20200201-083216.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-text/hnb-1.9.18-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/hnb-1.9.18-r1/temp/environment'. * Working directory: '/var/tmp/portage/app-text/hnb-1.9.18-r1/work/hnb-1.9.18' * S: '/var/tmp/portage/app-text/hnb-1.9.18-r1/work/hnb-1.9.18'