centos系统构建安装john导致的编译问题error: size of array element is not a multiple of its alignment

blake2.h:112:5: error: size of array element is not a multiple of its alignment
  112 |     blake2b_state S[4][1];
      |     ^~~~~~~~~~~~~
blake2.h:113:5: error: size of array element is not a multiple of its alignment
  113 |     blake2b_state R[1];
      |     ^~~~~~~~~~~~~

如果你出现上述原因,说明你是早期下载的或者是在https://www.openwall.com/john/网站上下载的1.9.0-jumbo-1包进行配置构建的,这个包是过时的,我们从官方github john(https://github.com/openwall/john)仓库进行git clone进行构建就没有问题了。
也可以搜索issue处,有说原因的解决方式。

命令执行步骤:

cd ./john/src目录
./configure && make -s clean && make -sj4
make -s clean && make -sj2
posted @ 2024-07-03 17:07  星小梦  阅读(25)  评论(0编辑  收藏  举报