RHEL5下编译ACE 5.5

直接运行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编译时不会遇到这个问题

原文地址:https://www.cnblogs.com/JesseFang/p/2224012.html