LinuxSir.cn,穿越时空的Linuxsir!

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

2.6.22内核下shfs模块编译不成功

[复制链接]
发表于 2007-7-26 11:18:20 | 显示全部楼层 |阅读模式
2.6.22的内核编译shfs模块没有成功,哪位成功了?headers都已经安装,用module-assistant编译
debian-testing
gcc 4.1.3
log文件如下:
dh_clean
make -C Linux-2.6 clean
make[1]: Entering directory `/usr/src/modules/shfs/Linux-2.6'
rm -rf linux-2.6.22-1-686 linux-2.6.22-1-686.orig;
rm -f linux-2.6.22-1-686.diff
rm -f *.o *.ko *.mod.c .*o.cmd
make[1]: Leaving directory `/usr/src/modules/shfs/Linux-2.6'
/usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/shfs'
dh_clean
make -C Linux-2.6 clean
make[2]: Entering directory `/usr/src/modules/shfs/Linux-2.6'
rm -rf linux-2.6.22-1-686 linux-2.6.22-1-686.orig;
rm -f linux-2.6.22-1-686.diff
rm -f *.o *.ko *.mod.c .*o.cmd
make[2]: Leaving directory `/usr/src/modules/shfs/Linux-2.6'
for templ in /usr/src/modules/shfs/debian/shfs-module-_KVERS_.postinst /usr/src/modules/shfs/debian/shfs-module-_KVERS_.postinst.backup /usr/src/modules/shf
s/debian/shfs-module-_KVERS_.postinst.modules.in; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.22-1-686/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-1-686/g ;s/#KVERS#/2.6.22-1-686/g ; s/_KVERS_/2.6.22-1-686/g ; s/##KDREV##/2.6.22-2/g ; s/#KDREV#/2.6.22-2/g ; s/_KDREV_/2.6.
22-2/g  ' < $templ > ${templ%.modules.in}; \
  done
dh_testdir
dh_testroot
dh_clean -k
env MODVERSIONS=detect make -C Linux-2.6 KERNEL_SOURCES=/lib/modules/2.6.22-1-686/build KERNEL=linux-2.6.22-1-686
make[2]: Entering directory `/usr/src/modules/shfs/Linux-2.6'
make -C /lib/modules/2.6.22-1-686/build SUBDIRS=/usr/src/modules/shfs/Linux-2.6 modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.22-1-686'
  CC [M]  /usr/src/modules/shfs/Linux-2.6/dcache.o
In file included from /usr/src/modules/shfs/Linux-2.6/dcache.c:24:
/usr/src/modules/shfs/Linux-2.6/shfs_fs.h:76: warning: ‘kmem_cache_t’ is deprecated
/usr/src/modules/shfs/Linux-2.6/shfs_fs.h:77: warning: ‘kmem_cache_t’ is deprecated
/usr/src/modules/shfs/Linux-2.6/shfs_fs.h:78: warning: ‘kmem_cache_t’ is deprecated
/usr/src/modules/shfs/Linux-2.6/shfs_fs.h:79: warning: ‘kmem_cache_t’ is deprecated
In file included from /usr/src/modules/shfs/Linux-2.6/dcache.c:26:
/usr/src/modules/shfs/Linux-2.6/shfs_debug.h:22: warning: ‘kmem_cache_t’ is deprecated
/usr/src/modules/shfs/Linux-2.6/shfs_debug.h:35: warning: ‘kmem_cache_t’ is deprecated
  CC [M]  /usr/src/modules/shfs/Linux-2.6/dir.o
In file included from /usr/src/modules/shfs/Linux-2.6/dir.c:17:
/usr/src/modules/shfs/Linux-2.6/shfs_fs.h:76: warning: ‘kmem_cache_t’ is deprecated
/usr/src/modules/shfs/Linux-2.6/shfs_fs.h:77: warning: ‘kmem_cache_t’ is deprecated
/usr/src/modules/shfs/Linux-2.6/shfs_fs.h:78: warning: ‘kmem_cache_t’ is deprecated
/usr/src/modules/shfs/Linux-2.6/shfs_fs.h:79: warning: ‘kmem_cache_t’ is deprecated
In file included from /usr/src/modules/shfs/Linux-2.6/dir.c:19:
/usr/src/modules/shfs/Linux-2.6/shfs_debug.h:22: warning: ‘kmem_cache_t’ is deprecated
/usr/src/modules/shfs/Linux-2.6/shfs_debug.h:35: warning: ‘kmem_cache_t’ is deprecated
/usr/src/modules/shfs/Linux-2.6/dir.c: In function ‘shfs_create’:
/usr/src/modules/shfs/Linux-2.6/dir.c:305: error: ‘struct inode’ has no member named ‘u’
/usr/src/modules/shfs/Linux-2.6/dir.c:306: error: ‘struct inode’ has no member named ‘u’
make[4]: *** [/usr/src/modules/shfs/Linux-2.6/dir.o] 错误 1
make[3]: *** [_module_/usr/src/modules/shfs/Linux-2.6] 错误 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.22-1-686'
make[2]: *** [default] 错误 2
make[2]: Leaving directory `/usr/src/modules/shfs/Linux-2.6'
make[1]: *** [binary-modules] 错误 2
make[1]: Leaving directory `/usr/src/modules/shfs'
make: *** [kdist_build] 错误 2
发表于 2007-7-26 22:42:55 | 显示全部楼层
可能是你的shfs模块与2。6。22的内核不配套,从源里下的shfs的deb包,应该只适合2.6.18的内核。
回复 支持 反对

使用道具 举报

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

本版积分规则

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