操作系统版本如下:
[root@Raise net-snmp-5.4.1]# uname -a
Linux Raise 3.8.0-sw2f #19 SMP Thu Jun 26 09:38:13 CST 2014 sw_64 sw_64 sw_64 GNU/Linux
[root@Raise net-snmp-5.4.1]# ./configure
checking what to build and install... agent apps man local mibs
using default persistent mask 077
using default AgentX socket /var/agentx/master
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking if I need to feed myself to ksh... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
工具包:
[root@Raise net-snmp-5.4.1]# rpm -qa | grep gcc
gcc-c++-4.5.3-7.SW.sw_64
gcc-objc-4.5.3-7.SW.sw_64
libgcc-4.5.3-7.SW.sw_64
gcc-4.5.3-7.SW.sw_64
gcc-gfortran-4.5.3-7.SW.sw_64
gcc-java-4.5.3-7.SW.sw_64
gcc-objc++-4.5.3-7.SW.sw_64作者: linux丿菜鸟 时间: 2015-03-19 14:58
这是config.log文件
configure:4540: result: /lib/cpp
configure:4564: /lib/cpp conftest.c
In file included from /usr/include/features.h:385:0,
from /usr/include/limits.h:27,
from /usr/lib/gcc/sw_64sw2-raise-linux/4.5.3/include/limits.h:169,
from /usr/lib/gcc/sw_64sw2-raise-linux/4.5.3/include/syslimits.h:7,
from /usr/lib/gcc/sw_64sw2-raise-linux/4.5.3/include/limits.h:34,
from conftest.c:16:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
configure:4570: $? = 1
configure: failed program was:
#endif
| Syntax error
configure:4639: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.