直接运行configure时,会报错。解决方法如下:

修改文件confiure.ac的6194行

#include <time.h>

#include <sys/time.h>
然后运行 autoreconf,重新生成confiure脚本

原因:
该问题在于GCC 4.1 以后gettimeofday() 函数申明在
<sys/time.h>, not <time.h> and <time.h> does not include <sys/time.h>.

这样导致无法正确检查到 gettimeofday 原型

 

:如果你直接采用mpc生成的GNUmakefile编译时不会遇到这个问题

相关文章:

  • 2022-12-23
  • 2021-09-13
  • 2021-12-22
  • 2021-06-25
  • 2021-12-24
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
猜你喜欢
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案