【发布时间】:2017-11-15 23:33:10
【问题描述】:
我下载了 elfutils 0.170 和 0.169,但由于隐式函数声明,无法使用 gcc 编译它们中的任何一个。我在 elfutils makefile 中找不到指定 -Werror 或 -Werror=implicit-function-declaration 的任何位置。有什么办法可以解决这个编译错误吗?
https://sourceware.org/elfutils/ftp/0.170/ 我的步骤
1: bzip2 -d elfutils-0.170.tar.bz2
2:焦油-xvf elfutils-0.170.tar
3:./配置
4:制作
然后出现以下错误。 elf_compress_gnu.c:在函数“elf_compress_gnu”中: elf_compress_gnu.c:114:28:错误:函数“htobe64”的隐式声明 [-Werror=implicit-function-declaration] uint64_t be64_size = htobe64 (orig_size); ^ elf_compress_gnu.c:163:15:错误:函数“be64toh”的隐式声明 [-Werror=implicit-function-declaration] gsize = be64toh (gsize); ^ cc1:所有警告都被视为错误
【问题讨论】: