fedora core1升级kernel2.6.4失败请指教
由于我的台电Combo光驱2.4内核不支持,因而希望升级内核到2.6来解决。下载了2.6.4内核后,开始升级:cd /usr/src
rm rf linux-2.4
cd /usr/include
rm rf linux asm scsi
将内核软件包解压后在/usr/src目录中出现linux-2.6.4子目录
进入此目录,执行:
make mrproper
随后,开始编译:
make xconfig
系统经过短暂分析后,给出如下错误信息:
# make xconfig
HOSTCCscripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include/limits.h:122,
from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: 没有那个文件或目录
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: error: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: error: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make: *** Error 1
make: *** Error 2
#
以后,多次编译都出现了同样的错误,换用make menuconfig也一样,请问我错哪儿了?请指教一二。谢谢! module-init-tools 升級了嗎? 如何升级module-init-tools,还请指教!谢谢!! http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=40011
这篇文章很不错。 我刚刚查了我的module-init-tools的版本是2.4.25,使用的命令是depmod -V。不知能不能升级内核。 Bluedata你好:
我很菜,但又想学,还请不吝赐教!
我依照你提供的文章安装module-init-tools,但还是提示错误,下面是我的操作步骤:
# ./configure --prefix=/
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/root/Software/Kernel/module-init-tools-0.9.14/missing: Unknown `--run' option
Try `/root/Software/Kernel/module-init-tools-0.9.14/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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
configure: Adding gcc options: -g -O2 -Wunused -Wall -Wcast-align
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
# make moveold
if [ "`echo //sbin | tr -s / /`" = /sbin ]; then :; \
else \
echo moveold usually only makes sense when installing into /sbin; \
exit 1; \
fi
for f in lsmod modprobe rmmod depmod insmod modinfo; do \
if [ -L /sbin/$f ]; then \
ln -sf `ls -l /sbin/$f | sed 's/.* -> //'`.old /sbin/$f;\
fi; \
mv /sbin/$f /sbin/$f.old; \
if [ -f /usr/share/man/man8/$f.8.gz ]; then \
mv /usr/share/man/man8/$f.8.gz \
/usr/share/man/man8/$f.old.8.gz; \
elif [ -f /usr/share/man/man8/$f.8.bz2 ]; then \
mv /usr/share/man/man8/$f.8.bz2 \
/usr/share/man/man8/$f.old.8.bz2; \
else \
mv /usr/share/man/man8/$f.8 /usr/share/man/man8/$f.old.8; \
fi; \
done
for f in kallsyms ksyms; do \
if [ -L /sbin/$f ]; then \
ln -sf `ls -l /sbin/$f | sed 's/.* -> //'`.old /sbin/$f;\
fi; \
done
ln -s /sbin/lsmod.old /bin/lsmod.old
# make
source='lsmod.c' object='lsmod.o' libtool=no \
depfile='.deps/lsmod.Po' tmpdepfile='.deps/lsmod.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"0.9.14\"-I. -I. -g -O2 -Wunused -Wall -Wcast-align -c `test -f 'lsmod.c' || echo './'`lsmod.c
In file included from /usr/include/errno.h:36,
from lsmod.c:26:
/usr/include/bits/errno.h:25:26: linux/errno.h: 没有那个文件或目录
In file included from lsmod.c:30:
backwards_compat.c: In function `try_old_version':
backwards_compat.c:57: error: `ENOSYS' undeclared (first use in this function)
backwards_compat.c:57: error: (Each undeclared identifier is reported only once
backwards_compat.c:57: error: for each function it appears in.)
make: *** Error 1
# make install
source='lsmod.c' object='lsmod.o' libtool=no \
depfile='.deps/lsmod.Po' tmpdepfile='.deps/lsmod.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"0.9.14\"-I. -I. -g -O2 -Wunused -Wall -Wcast-align -c `test -f 'lsmod.c' || echo './'`lsmod.c
In file included from /usr/include/errno.h:36,
from lsmod.c:26:
/usr/include/bits/errno.h:25:26: linux/errno.h: 没有那个文件或目录
In file included from lsmod.c:30:
backwards_compat.c: In function `try_old_version':
backwards_compat.c:57: error: `ENOSYS' undeclared (first use in this function)
backwards_compat.c:57: error: (Each undeclared identifier is reported only once
backwards_compat.c:57: error: for each function it appears in.)
make: *** Error 1
#
页:
[1]