|
|
编译个软件就出错,
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都重新安装过.
谁知道告诉我一下该怎么修复这个问题,不胜感激!! |
|