此楼问题在1楼给出了解决方案,但一新的问题又出现,初学内核编译,求指点!# configuration written to .config
#
make[2]:正在离开目录 `/home/gdsdj/src/linux-2.6.19'
make EXTRAVERSION=dell1400 ARCH=i386 prepare
make[2]: 正在进入目录 `/home/gdsdj/src/linux-2.6.19'
scripts/kconfig/conf -s arch/i386/Kconfig
make[2]:正在离开目录 `/home/gdsdj/src/linux-2.6.19'
make[2]: 正在进入目录 `/home/gdsdj/src/linux-2.6.19'
CHK include/linux/version.h
CHK include/linux/utsrelease.h
make[2]:正在离开目录 `/home/gdsdj/src/linux-2.6.19'
echo done > debian/stamp/conf/kernel-conf
make[1]:正在离开目录 `/home/gdsdj/src/linux-2.6.19'
make -f debian/rules debian/stamp/conf/full-changelog
make[1]: 正在进入目录 `/home/gdsdj/src/linux-2.6.19'
====== making target debian/stamp/conf/full-changelog [new prereqs: ]======
for file in ChangeLog Control Control.bin86 config templates.in rules; do \
cp -f /usr/share/kernel-package/$file ./debian/; \
done
for dir in Config docs examples ruleset scripts pkg po; do \
cp -af /usr/share/kernel-package/$dir ./debian/; \
done
install -p -m 755 /usr/share/kernel-package/rules debian/rules
sed -e 's/=V/2.6.19dell1400/g' \
-e 's/=D/2.6.19dell1400-10.00.Custom/g' -e 's/=A/i386/g' \
-e 's/=SA//g' \
-e 's/=I//g' \
-e 's/=CV/2.6/g' \
-e 's/=M/Unknown Kernel Package Maintainer <
unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
-e 's/=ST/linux/g' -e 's/=B/i386/g' \
/usr/share/kernel-package/Control > debian/control
sed -e 's/=V/2.6.19dell1400/g' -e 's/=D/2.6.19dell1400-10.00.Custom/g' \
-e 's/=A/i386/g' -e 's/=M/Unknown Kernel Package Maintainer <
unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
-e 's/=ST/linux/g' -e 's/=B/i386/g' \
/usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
make -f debian/rules debian/stamp/conf/kernel-conf
make[2]: 正在进入目录 `/home/gdsdj/src/linux-2.6.19'
make[2]: “debian/stamp/conf/kernel-conf”是最新的。
make[2]:正在离开目录 `/home/gdsdj/src/linux-2.6.19'
make[1]:正在离开目录 `/home/gdsdj/src/linux-2.6.19'
echo done > debian/stamp/conf/minimal_debian
exec debian/rules APPEND_TO_VERSION=dell1400 INITRD=YES kernel_image kernel-headers
====== making target debian/stamp/conf/vars [new prereqs: ]======
====== making target debian/stamp/build/kernel [new prereqs: vars]======
This is kernel package version 12.036+nmu1.
restore_upstream_debianization
test ! -f scripts/package/builddeb.kpkg-dist || mv -f scripts/package/builddeb.kpkg-dist scripts/package/builddeb
test ! -f scripts/package/Makefile.kpkg-dist || mv -f scripts/package/Makefile.kpkg-dist scripts/package/Makefile
/usr/bin/make EXTRAVERSION=dell1400 ARCH=i386 \
bzImage
make[1]: 正在进入目录 `/home/gdsdj/src/linux-2.6.19'
CHK include/linux/version.h
CHK include/linux/utsrelease.h
HOSTCC scripts/mod/sumversion.o
下面为错误提示,加不上红字,加了就乱序了,注释一下把 :scripts/mod/sumversion.c: 在函数‘get_src_version’中:
scripts/mod/sumversion.c:384:16: 错误: ‘PATH_MAX’未声明(在此函数内第一次使用)
scripts/mod/sumversion.c:384:16: 附注: 每个未声明的标识符在其出现的函数内只报告一次
scripts/mod/sumversion.c:384:7: 警告: 未使用的变量‘filelist’ [-Wunused-variable]
make[3]: *** [scripts/mod/sumversion.o] 错误 1
make[2]: *** [scripts/mod] 错误 2
make[1]: *** [scripts] 错误 2
make[1]:正在离开目录 `/home/gdsdj/src/linux-2.6.19'
make: *** [debian/stamp/build/kernel] 错误 2
gdsdj@gdsdj-laptop:~/src/linux-2.6.19$
[ 此帖被gdsdj在2012-04-22 09:51重新编辑 ]