LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1175|回复: 4

Help!!! ./configure 后出的错误C preprocessor "/lib/cpp" fa

[复制链接]
发表于 2005-12-4 19:35:44 | 显示全部楼层 |阅读模式
编译个软件就出错,
ananias@linux:~/MyDownloads/xmms-1.2.10> ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for prefix by checking for xmms... no
checking for gcc... gcc
checking for C compiler default output... 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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /usr/bin/sed
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

config.log 中的主要提示错误行
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
In file included from configure:3204:
/usr/include/sys/param.h:24:25: error: linux/param.h: No such file or directory
configure:3216: $? = 1
#error "You need a ISO C conforming compiler to use the glibc headers"
我的gcc是这样的
ananias@linux:~/MyDownloads/xmms-1.2.10> gcc --version
gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

google上搜过这个问题,他们说要安装kernel-headers  但是他们讨论的好像不是suse发行版的。
我找了半天也没这个玩意,

问题主要出现在用yast2更新系统后,,,,它好像自动把那个系统默认的内核kernel-2.6.13-15-default都重新安装过.

谁知道告诉我一下该怎么修复这个问题,不胜感激!!
 楼主| 发表于 2005-12-5 08:13:52 | 显示全部楼层
有那位知道的 帮忙一下,要不又得还原系统了!!
回复 支持 反对

使用道具 举报

发表于 2005-12-5 12:05:11 | 显示全部楼层
楼上的问题不知道怎么解决,不过想问一下怎么还原系统?用 tar 备份的还是 YaST2 里面的“安装到目录”?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-5 16:50:33 | 显示全部楼层
yast2里的系统选项里,有系统备份  系统还原的 阿!!
回复 支持 反对

使用道具 举报

发表于 2005-12-6 14:37:05 | 显示全部楼层
哦。
没有试过,比较习惯于用 tar。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表