=> 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 hydan-0.13nb6 --- libdis --- --- lns --- --- hdn_common.o --- --- hdn_embed.o --- --- hdn_decode.o --- --- hdn_stats.o --- --- hdn_crypto.o --- --- hdn_subst_insns.o --- --- libdis --- cd libdisasm/src/arch/i386/libdisasm && make libdisasm --- lns --- ln -fs hydan hydan-decode --- hdn_common.o --- gcc -Wall -Ilibdisasm/src/arch/i386/libdisasm -g -DVARBITS -I/usr/include -c hdn_common.c -o hdn_common.o --- lns --- ln -fs hydan hydan-stats --- hdn_decode.o --- gcc -Wall -Ilibdisasm/src/arch/i386/libdisasm -g -DVARBITS -I/usr/include -c hdn_decode.c -o hdn_decode.o --- hdn_stats.o --- gcc -Wall -Ilibdisasm/src/arch/i386/libdisasm -g -DVARBITS -I/usr/include -c hdn_stats.c -o hdn_stats.o --- hdn_embed.o --- gcc -Wall -Ilibdisasm/src/arch/i386/libdisasm -g -DVARBITS -I/usr/include -c hdn_embed.c -o hdn_embed.o --- hdn_crypto.o --- gcc -Wall -Ilibdisasm/src/arch/i386/libdisasm -g -DVARBITS -I/usr/include -c hdn_crypto.c -o hdn_crypto.o --- hdn_subst_insns.o --- gcc -Wall -Ilibdisasm/src/arch/i386/libdisasm -g -DVARBITS -I/usr/include -c hdn_subst_insns.c -o hdn_subst_insns.o --- libdis --- --- libdis.o --- --- hdn_io.o --- --- libdis --- gcc -I. -O3 -ggdb -I/usr/include -c libdis.c -o libdis.o --- hdn_io.o --- gcc -Wall -Ilibdisasm/src/arch/i386/libdisasm -g -DVARBITS -I/usr/include -c hdn_io.c -o hdn_io.o --- hdn_stats.o --- hdn_stats.c: In function 'hdn_stats_embeddable_bits': --- hdn_crypto.o --- In file included from hydan.h:123, from hdn_crypto.h:12, from hdn_crypto.c:9: hdn_crypto.c: In function 'hdn_crypto_srandom': --- hdn_stats.o --- hdn_stats.c:22:19: warning: pointer targets in assignment from 'char *' to 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 22 | d.memaddr = data->content + curr_pos; | ^ hdn_stats.c:24:25: warning: pointer targets in passing argument 1 of 'x86_disasm' differ in signedness [-Wpointer-sign] 24 | x86_disasm (data->content, data->sz, 0, curr_pos, &d.insn); | ~~~~^~~~~~~~~ | | | char * --- hdn_crypto.o --- hdn_io.h:15:22: warning: too many arguments for format [-Wformat-extra-args] 15 | fprintf (stderr, "%s: " s "\n", __func__, ## args); \ | ^~~~~~ hdn_crypto.c:39:9: note: in expansion of macro 'HDN_WARN' 39 | HDN_WARN ("Error: Invalid pass. Using default seed instead", ""); | ^~~~~~~~ hdn_crypto.c: In function 'hdn_crypto_hash': hdn_crypto.c:71:16: error: storage size of 'ctx' isn't known 71 | EVP_MD_CTX ctx; | ^~~ --- hdn_stats.o --- In file included from hydan.h:35, from hdn_stats.h:12, from hdn_stats.c:9: libdisasm/src/arch/i386/libdisasm/libdis.h:399:32: note: expected 'unsigned char *' but argument is of type 'char *' 399 | int x86_disasm( unsigned char *buf, unsigned int buf_len, | ~~~~~~~~~~~~~~~^~~ --- hdn_crypto.o --- hdn_crypto.c:71:16: warning: unused variable 'ctx' [-Wunused-variable] hdn_crypto.c: In function 'hdn_crypto_encrypt': hdn_crypto.c:91:20: error: storage size of 'ctx' isn't known 91 | EVP_CIPHER_CTX ctx; | ^~~ hdn_crypto.c:115:45: warning: pointer targets in passing argument 1 of 'hdn_crypto_hash' differ in signedness [-Wpointer-sign] 115 | hdn_math_xor (&in->sz, hdn_crypto_hash (key), sizeof (in->sz)); | ^~~ | | | uint8_t * {aka unsigned char *} hdn_crypto.c:68:33: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 68 | uint8_t *hdn_crypto_hash (char *in) | ~~~~~~^~ hdn_crypto.c:120:38: warning: pointer targets in passing argument 3 of 'EVP_EncryptUpdate' differ in signedness [-Wpointer-sign] 120 | EVP_EncryptUpdate (&ctx, cipher, &out_sz, (char *)in, sizeof(in->sz) + sz); | ^~~~~~~ | | | uint32_t * {aka unsigned int *} --- hdn_stats.o --- hdn_stats.c: In function '_count_fns': hdn_stats.c:100:47: warning: pointer targets in passing argument 1 of 'hdn_exe_get_sections' differ in signedness [-Wpointer-sign] 100 | if (!(sh = hdn_exe_get_sections (host_data->content))) | ~~~~~~~~~^~~~~~~~~ | | | char * In file included from hydan.h:122, from hdn_stats.h:12, from hdn_stats.c:9: hdn_exe.h:17:55: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 17 | hdn_sections_header_t *hdn_exe_get_sections (uint8_t *file_start); | ~~~~~~~~~^~~~~~~~~~ --- hdn_crypto.o --- In file included from hydan.h:24, from hdn_crypto.h:12, from hdn_crypto.c:9: /usr/include/openssl/evp.h:762:39: note: expected 'int *' but argument is of type 'uint32_t *' {aka 'unsigned int *'} 762 | int *outl, const unsigned char *in, int inl); | ~~~~~^~~~ hdn_crypto.c:120:47: warning: pointer targets in passing argument 4 of 'EVP_EncryptUpdate' differ in signedness [-Wpointer-sign] 120 | EVP_EncryptUpdate (&ctx, cipher, &out_sz, (char *)in, sizeof(in->sz) + sz); | ^~~~~~~~~~ | | | char * In file included from hydan.h:24, from hdn_crypto.h:12, from hdn_crypto.c:9: /usr/include/openssl/evp.h:762:66: note: expected 'const unsigned char *' but argument is of type 'char *' 762 | int *outl, const unsigned char *in, int inl); | ~~~~~~~~~~~~~~~~~~~~~^~ hdn_crypto.c:123:48: warning: pointer targets in passing argument 3 of 'EVP_EncryptFinal' differ in signedness [-Wpointer-sign] 123 | EVP_EncryptFinal (&ctx, cipher + total_sz, &out_sz); | ^~~~~~~ | | | uint32_t * {aka unsigned int *} In file included from hydan.h:24, from hdn_crypto.h:12, from hdn_crypto.c:9: /usr/include/openssl/evp.h:766:38: note: expected 'int *' but argument is of type 'uint32_t *' {aka 'unsigned int *'} 766 | int *outl); | ~~~~~^~~~ --- hdn_stats.o --- In file included from hydan.h:123, from hdn_stats.h:12, from hdn_stats.c:9: hdn_io.h:15:22: warning: too many arguments for format [-Wformat-extra-args] 15 | fprintf (stderr, "%s: " s "\n", __func__, ## args); \ | ^~~~~~ hdn_stats.c:102:9: note: in expansion of macro 'HDN_WARN' 102 | HDN_WARN ("Error extracting .text segment from host file", ""); | ^~~~~~~~ --- hdn_crypto.o --- hdn_crypto.c:91:20: warning: unused variable 'ctx' [-Wunused-variable] 91 | EVP_CIPHER_CTX ctx; | ^~~ hdn_crypto.c: In function 'hdn_crypto_decrypt': hdn_crypto.c:150:20: error: storage size of 'ctx' isn't known 150 | EVP_CIPHER_CTX ctx; | ^~~ --- hdn_stats.o --- hdn_stats.c:122:43: warning: pointer targets in passing argument 1 of 'x86_disasm' differ in signedness [-Wpointer-sign] 122 | x86_disasm (tmp_sections->data.content, | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | char * In file included from hydan.h:35, from hdn_stats.h:12, from hdn_stats.c:9: libdisasm/src/arch/i386/libdisasm/libdis.h:399:32: note: expected 'unsigned char *' but argument is of type 'char *' 399 | int x86_disasm( unsigned char *buf, unsigned int buf_len, | ~~~~~~~~~~~~~~~^~~ --- hdn_crypto.o --- hdn_crypto.c:165:37: warning: pointer targets in passing argument 3 of 'EVP_DecryptUpdate' differ in signedness [-Wpointer-sign] 165 | EVP_DecryptUpdate (&ctx, plain, &out_sz, in->content, in->sz); | ^~~~~~~ | | | uint32_t * {aka unsigned int *} In file included from hydan.h:24, from hdn_crypto.h:12, from hdn_crypto.c:9: /usr/include/openssl/evp.h:779:39: note: expected 'int *' but argument is of type 'uint32_t *' {aka 'unsigned int *'} 779 | int *outl, const unsigned char *in, int inl); | ~~~~~^~~~ hdn_crypto.c:165:48: warning: pointer targets in passing argument 4 of 'EVP_DecryptUpdate' differ in signedness [-Wpointer-sign] 165 | EVP_DecryptUpdate (&ctx, plain, &out_sz, in->content, in->sz); | ~~^~~~~~~~~ | | | char * In file included from hydan.h:24, from hdn_crypto.h:12, from hdn_crypto.c:9: /usr/include/openssl/evp.h:779:66: note: expected 'const unsigned char *' but argument is of type 'char *' 779 | int *outl, const unsigned char *in, int inl); | ~~~~~~~~~~~~~~~~~~~~~^~ hdn_crypto.c:166:45: warning: pointer targets in passing argument 3 of 'EVP_DecryptFinal' differ in signedness [-Wpointer-sign] 166 | EVP_DecryptFinal (&ctx, plain + out_sz, &out_sz); | ^~~~~~~ | | | uint32_t * {aka unsigned int *} In file included from hydan.h:24, from hdn_crypto.h:12, from hdn_crypto.c:9: /usr/include/openssl/evp.h:781:34: note: expected 'int *' but argument is of type 'uint32_t *' {aka 'unsigned int *'} 781 | int *outl); | ~~~~~^~~~ hdn_crypto.c:172:45: warning: pointer targets in passing argument 1 of 'hdn_crypto_hash' differ in signedness [-Wpointer-sign] 172 | hdn_math_xor (&in->sz, hdn_crypto_hash (key), sizeof (in->sz)); | ^~~ | | | uint8_t * {aka unsigned char *} hdn_crypto.c:68:33: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 68 | uint8_t *hdn_crypto_hash (char *in) | ~~~~~~^~ hdn_crypto.c:150:20: warning: unused variable 'ctx' [-Wunused-variable] 150 | EVP_CIPHER_CTX ctx; | ^~~ In file included from hydan.h:122, from hdn_crypto.h:12, from hdn_crypto.c:9: hdn_crypto.c: At top level: hdn_exe.h:22:13: warning: inline function 'hdn_exe_section_is_code' declared but never defined 22 | inline char hdn_exe_section_is_code (hdn_sections_t *hs); | ^~~~~~~~~~~~~~~~~~~~~~~ --- hdn_stats.o --- hdn_stats.c: In function '_do_stats': hdn_stats.c:249:21: warning: pointer targets in assignment from 'char *' to 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 249 | dis.memaddr = data->content + curr_pos; | ^ hdn_stats.c:251:25: warning: pointer targets in passing argument 1 of 'x86_disasm' differ in signedness [-Wpointer-sign] 251 | x86_disasm (data->content, data->sz, 0, curr_pos, &dis.insn); | ~~~~^~~~~~~~~ | | | char * In file included from hydan.h:35, from hdn_stats.h:12, from hdn_stats.c:9: libdisasm/src/arch/i386/libdisasm/libdis.h:399:32: note: expected 'unsigned char *' but argument is of type 'char *' 399 | int x86_disasm( unsigned char *buf, unsigned int buf_len, | ~~~~~~~~~~~~~~~^~~ hdn_stats.c: In function 'hdn_stats_main': hdn_stats.c:328:51: warning: pointer targets in passing argument 1 of 'hdn_exe_get_sections' differ in signedness [-Wpointer-sign] 328 | if (!(sh = hdn_exe_get_sections (host_data->content))) | ~~~~~~~~~^~~~~~~~~ | | | char * In file included from hydan.h:122, from hdn_stats.h:12, from hdn_stats.c:9: hdn_exe.h:17:55: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 17 | hdn_sections_header_t *hdn_exe_get_sections (uint8_t *file_start); | ~~~~~~~~~^~~~~~~~~~ In file included from hydan.h:123, from hdn_stats.h:12, from hdn_stats.c:9: hdn_io.h:15:22: warning: too many arguments for format [-Wformat-extra-args] 15 | fprintf (stderr, "%s: " s "\n", __func__, ## args); \ | ^~~~~~ hdn_stats.c:330:13: note: in expansion of macro 'HDN_WARN' 330 | HDN_WARN ("Error extracting .text segment from host file", ""); | ^~~~~~~~ In file included from hydan.h:122, from hdn_stats.h:12, from hdn_stats.c:9: hdn_stats.c: At top level: hdn_exe.h:22:13: warning: inline function 'hdn_exe_section_is_code' declared but never defined 22 | inline char hdn_exe_section_is_code (hdn_sections_t *hs); | ^~~~~~~~~~~~~~~~~~~~~~~ --- hdn_decode.o --- hdn_decode.c: In function '_decode_message': hdn_decode.c:88:43: warning: pointer targets in passing argument 2 of 'hdn_crypto_decrypt' differ in signedness [-Wpointer-sign] 88 | hdn_crypto_decrypt (&tmp, key); | ^~~ | | | char * In file included from hydan.h:119, from hdn_decode.h:12, from hdn_decode.c:9: hdn_crypto.h:18:55: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 18 | void hdn_crypto_decrypt (hdn_data_t **inout, uint8_t *key); | ~~~~~~~~~^~~ hdn_decode.c: In function 'hdn_decode_main': hdn_decode.c:121:47: warning: pointer targets in passing argument 1 of 'hdn_exe_get_sections' differ in signedness [-Wpointer-sign] 121 | if (!(sh = hdn_exe_get_sections (host_data->content))) | ~~~~~~~~~^~~~~~~~~ | | | char * In file included from hydan.h:122, from hdn_decode.h:12, from hdn_decode.c:9: hdn_exe.h:17:55: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 17 | hdn_sections_header_t *hdn_exe_get_sections (uint8_t *file_start); | ~~~~~~~~~^~~~~~~~~~ In file included from hydan.h:123, from hdn_decode.h:12, from hdn_decode.c:9: hdn_io.h:15:22: warning: too many arguments for format [-Wformat-extra-args] 15 | fprintf (stderr, "%s: " s "\n", __func__, ## args); \ | ^~~~~~ hdn_decode.c:123:9: note: in expansion of macro 'HDN_WARN' 123 | HDN_WARN ("Error extracting sections from host file", ""); | ^~~~~~~~ hdn_decode.c:152:37: warning: pointer targets in passing argument 2 of 'hdn_crypto_decrypt' differ in signedness [-Wpointer-sign] 152 | hdn_crypto_decrypt (&mesg_data, password); | ^~~~~~~~ | | | char * In file included from hydan.h:119, from hdn_decode.h:12, from hdn_decode.c:9: hdn_crypto.h:18:55: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 18 | void hdn_crypto_decrypt (hdn_data_t **inout, uint8_t *key); | ~~~~~~~~~^~~ In file included from hydan.h:122, from hdn_decode.h:12, from hdn_decode.c:9: hdn_decode.c: At top level: hdn_exe.h:22:13: warning: inline function 'hdn_exe_section_is_code' declared but never defined 22 | inline char hdn_exe_section_is_code (hdn_sections_t *hs); | ^~~~~~~~~~~~~~~~~~~~~~~ --- hdn_crypto.o --- *** [hdn_crypto.o] Error code 1 make: stopped in /pbulk/work/security/hydan/work/hydan --- hdn_embed.o --- hdn_embed.c: In function '_embed': hdn_embed.c:94:53: warning: pointer targets in passing argument 3 of 'hdn_subst_insns' differ in signedness [-Wpointer-sign] 94 | mesg_data->content + mesg_curr_pos, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ | | | char * In file included from hydan.h:127, from hdn_embed.h:12, from hdn_embed.c:9: hdn_subst_insns.h:49:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 49 | uint8_t *source_loc, int bit_offset); | ~~~~~~~~~^~~~~~~~~~ hdn_embed.c: In function 'hdn_embed_main': hdn_embed.c:148:37: warning: pointer targets in passing argument 2 of 'hdn_crypto_encrypt' differ in signedness [-Wpointer-sign] 148 | hdn_crypto_encrypt (&mesg_data, password); | ^~~~~~~~ | | | char * In file included from hydan.h:119, from hdn_embed.h:12, from hdn_embed.c:9: hdn_crypto.h:17:55: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 17 | void hdn_crypto_encrypt (hdn_data_t **inout, uint8_t *key); | ~~~~~~~~~^~~ hdn_embed.c:161:47: warning: pointer targets in passing argument 1 of 'hdn_exe_get_sections' differ in signedness [-Wpointer-sign] 161 | if (!(sh = hdn_exe_get_sections (host_data->content))) | ~~~~~~~~~^~~~~~~~~ | | | char * In file included from hydan.h:122, from hdn_embed.h:12, from hdn_embed.c:9: hdn_exe.h:17:55: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 17 | hdn_sections_header_t *hdn_exe_get_sections (uint8_t *file_start); | ~~~~~~~~~^~~~~~~~~~ hdn_embed.c: At top level: hdn_exe.h:22:13: warning: inline function 'hdn_exe_section_is_code' declared but never defined 22 | inline char hdn_exe_section_is_code (hdn_sections_t *hs); | ^~~~~~~~~~~~~~~~~~~~~~~ --- libdis --- *** [libdis] Error code 6 make: stopped in /pbulk/work/security/hydan/work/hydan --- hdn_subst_insns.o --- hdn_subst_insns.c: In function '_adversely_affects_flags': hdn_subst_insns.c:609:14: warning: variable 'addr' set but not used [-Wunused-but-set-variable] 609 | uint8_t *addr; | ^~~~ In file included from hydan.h:122, from hdn_subst_insns.h:13, from hdn_subst_insns.c:9: hdn_subst_insns.c: At top level: hdn_exe.h:22:13: warning: inline function 'hdn_exe_section_is_code' declared but never defined 22 | inline char hdn_exe_section_is_code (hdn_sections_t *hs); | ^~~~~~~~~~~~~~~~~~~~~~~ hdn_subst_insns.c:572:17: warning: '_find_addr' defined but not used [-Wunused-function] 572 | static uint32_t _find_addr (hdn_disassembly_data_t *dis_array, | ^~~~~~~~~~ hdn_subst_insns.c:550:13: warning: '_address_add_visited' defined but not used [-Wunused-function] 550 | static char _address_add_visited (struct address_array *addr_arr, | ^~~~~~~~~~~~~~~~~~~~ --- hdn_io.o --- In file included from hydan.h:122, from hdn_io.h:12, from hdn_io.c:9: hdn_exe.h:22:13: warning: inline function 'hdn_exe_section_is_code' declared but never defined 22 | inline char hdn_exe_section_is_code (hdn_sections_t *hs); | ^~~~~~~~~~~~~~~~~~~~~~~ --- hdn_common.o --- hdn_common.c: In function 'hdn_disassemble_all': hdn_common.c:32:19: warning: pointer targets in assignment from 'char *' to 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 32 | d.memaddr = hs->data.content + host_curr_pos; | ^ hdn_common.c:36:29: warning: pointer targets in passing argument 1 of 'x86_disasm' differ in signedness [-Wpointer-sign] 36 | x86_disasm (hs->data.content, | ~~~~~~~~^~~~~~~~ | | | char * In file included from hydan.h:35, from hdn_common.h:12, from hdn_common.c:9: libdisasm/src/arch/i386/libdisasm/libdis.h:399:32: note: expected 'unsigned char *' but argument is of type 'char *' 399 | int x86_disasm( unsigned char *buf, unsigned int buf_len, | ~~~~~~~~~~~~~~~^~~ In file included from hydan.h:122, from hdn_common.h:12, from hdn_common.c:9: hdn_common.c: At top level: hdn_exe.h:22:13: warning: inline function 'hdn_exe_section_is_code' declared but never defined 22 | inline char hdn_exe_section_is_code (hdn_sections_t *hs); | ^~~~~~~~~~~~~~~~~~~~~~~ 2 errors make: stopped in /pbulk/work/security/hydan/work/hydan *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/security/hydan *** Error code 1 Stop. make: stopped in /usr/pkgsrc/security/hydan