首页 新闻 赞助 找找看

编译PostgreSQL出错?

0
悬赏园豆:80 [已关闭问题] 关闭于 2011-04-12 13:55

以下是从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'

fjzag的主页 fjzag | 菜鸟二级 | 园豆:300
提问于:2011-04-11 08:25
< >
分享
所有回答(1)
0

你看下kernel/OS.h文件在不在/usr/src/linux/include下面

如果没有,下载内核头文件,可以用apt-get

如果这些文件存在,检查环境变量:
C_INCLUDE_PATH (for C header files) or CPLUS_INCLUDE_PATH (for C++ header files).

Jerry Chou | 园豆:2642 (老鸟四级) | 2011-04-12 09:36
这个好像是我在其他机器上对源码打了个补丁. 然后直接copy其他机器上编译出的问题. 按理打补丁只是对源码进行修改应该不会有问题. 很奇怪!
支持(0) 反对(0) fjzag | 园豆:300 (菜鸟二级) | 2011-04-27 09:30
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册