免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2658 | 回复: 2
打印 上一主题 下一主题

debian编译添加内核模块出错,请高手指点 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-24 14:58 |只看该作者 |倒序浏览
dh_clean
/usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/dazuko'
make[1]: Leaving directory `/usr/src/modules/dazuko'
rm -rf .tmp_versions Makefile debian/control.backup
/usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/dazuko'
dh_clean
/usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/dazuko'
make[2]: *** No rule to make target `clean'.  Stop.
make[2]: Leaving directory `/usr/src/modules/dazuko'
make[1]: [kdist_clean] Error 2 (ignored)
rm -rf .tmp_versions Makefile debian/control.backup
sed -e 's/_KFLAV_/2.6.22.0723/' < debian/control.modules.in.in > debian/control.modules.in
for templ in /usr/src/modules/dazuko/debian/dazuko-modules-_KVERS_.postinst /usr/src/modules/dazuko/debian/dazuko-modules-_KVERS_.postinst.backup /usr/src/modules/dazuko/debian/dazuko-modules-_KVERS_.postinst.modules.in; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.22.0723/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/2.6.22.0723/g ;s/#KVERS#/2.6.22.0723/g ; s/_KVERS_/2.6.22.0723/g ; s/##KDREV##/2.6.22.0723-10.00.Custom/g ; s/#KDREV#/2.6.22.0723-10.00.Custom/g ; s/_KDREV_/2.6.22.0723-10.00.Custom/g  ' < $templ > ${templ%.modules.in}; \
  done
./configure --without-library --without-example-c --kernelsrcdir=/lib/modules/2.6.22.0723/source
checking host system type... Linux
checking for make utility... ok (make)
checking for C compiler... ok (gcc-4.1)
acquiring Linux kernel code configuration... ok
checking if Linux is RSBAC patched... no
checking if devfs is enabled... no
discovered host system... Linux (2.6.22)
checking if security module support is enabled... yes
verifying capabilities are not built-in... ok
locating LSM API header... ok
identifying LSM API... ok
inspecting suspend function... ok (suspend1)
checking whether __d_path() is exported... no (using local copy, dangerous)
inspecting class type... ok (class)
disabling ON_CLOSE events (not available for Linux 2.6)
configure: creating Makefile

./configure successful

=======================
Configuration summary
=======================

module events = ON_OPEN ON_EXEC
devfs support = no
rsbac support = no
stacking support = yes
local __d_path() = yes (WARNING: dangerous for SMP kernels, see README.linux26)
module debug = no
library 1.x compatibility = yes

export DH_OPTIONS='-pdazuko-modules-2.6.22.0723'
dh_testdir
dh_testdir: debian/control has a duplicate entry for dazuko-modules-2.6.22.0723
make[1]: *** [binary-modules] Error 1
make[1]: Leaving directory `/usr/src/modules/dazuko'
make: *** [kdist_build] Error 2


本人自己编译的2.6.22的内核,源代码都在/usr/src/linux-2.6.22下,编译添加dazuko模块出错,试了一下其他的模块也一样的错误,请高手提示。

论坛徽章:
0
2 [报告]
发表于 2007-07-24 15:26 |只看该作者
问题应该找到了,可能是我所加载的dazuko-2.3.3不适合2.6.22的内核,所以编译不成功。

论坛徽章:
0
3 [报告]
发表于 2007-07-24 21:36 |只看该作者
已经解决,果真是和内核不匹配,dazuko-2.3.3适合linux-2。6。21的内核。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP