以下是从config.log摘出来的错误信息!搞不懂为什么会找不到这些文件?
conftest.c:12:28: error: ac_nonexistent.h: No such file or directoryconftest.c:66:17: error: dld.h: No such file or directory conftest.c:67:22: error: fp_class.h: No such file or directoryconftest.c:68:20: error: ieeefp.h: No such file or directoryconftest.c:73:23: error: sys/pstat.h: No such file or directoryconftest.c:83:23: error: kernel/OS.h: No such file or directoryconftest.c:83:26: error: kernel/image.h: No such file or directoryconftest.c:83:25: error: SupportDefs.h: No such file or directoryconftest.c:67: error: invalid application of 'sizeof' to incomplete type 'union semun' conftest.c:72: error: 'struct sockaddr_storage' has no member named '__ss_family'conftest.c:72: error: 'struct sockaddr_storage' has no member named 'ss_len'conftest.c:72: error: 'struct sockaddr' has no member named 'sa_len'conftest.c:66:23: error: sys/ucred.h: No such file or directoryconftest.c:73: error: invalid application of 'sizeof' to incomplete type 'struct fcred' conftest.c:70: error: 'F_FULLFSYNC' undeclared (first use in this function)conftest.c:70: error: (Each undeclared identifier is reported only onceconftest.c:70: error: for each function it appears in.)conftest.c:72: error: conflicting types for 'accept'conftest.c:88:29: error: machine/vmparam.h: No such file or directoryconftest.c:89:22: error: sys/exec.h: No such file or directory conftest.c:94: error: 'PS_STRINGS' undeclared (first use in this function)conftest.c:94: error: (Each undeclared identifier is reported only onceconftest.c:94: error: for each function it appears in.)conftest.c:139: error: 'int8' undeclared (first use in this function)conftest.c:139: error: (Each undeclared identifier is reported only onceconftest.c:139: error: for each function it appears in.)conftest.c:139: error: expected expression before ')' tokenconftest.c:139: error: 'int64' undeclared (first use in this function)conftest.c:141: error: size of array 'off_t_is_large' is negativeconftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
你看下kernel/OS.h文件在不在/usr/src/linux/include下面
如果没有,下载内核头文件,可以用apt-get
如果这些文件存在,检查环境变量:C_INCLUDE_PATH
(for C header files) or CPLUS_INCLUDE_PATH
(for C++ header files).