Re: Re: make test failed
edward mzj <[email protected]>
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
--- "Peter T. Breuer" <[email protected]> wrote: > In article <[email protected]> you wrote: > > It has been miscompiled. yes, i think so. it took me too much time to figure that out. and i'm also sure some of the Makefiles in your enbd package should get the blame, but obviously not the one in 'kernel/linux-2.6.x/drivers/block/enbd' dir of the nbd source tree. because, in that dir, if i issue a 'make -C /usr/src/linux-2.6.8 SUBDIRS=`pwd` modules' , the enbd.ko generated by the command can be loaded properly. and 'make test' will succeed. but i don't know which Makefile goes wrong. [root@deb:enbd]# pwd /usr/src/nbd-2.4.32/kernel/linux-2.6.x/drivers/block/enbd [root@deb:enbd]# [root@deb:enbd]# cp ../../../include/linux/enbd*.h /usr/src/linux/include/linux [root@deb:enbd]# [root@deb:enbd]# make -C /usr/src/linux SUBDIRS=`pwd` modules make: Entering directory `/usr/src/linux-2.6.8' CC [M] enbd/enbd_base.o enbd/enbd_base.c:4356: warning: `enbd_read_block_0' defined but not used CC [M] enbd/enbd_ioctl_stub.o CC [M] enbd/enbd_seqno.o CC [M] enbd/enbd_md.o CC [M] enbd/enbd_speed.o CC [M] enbd/enbd_proc.o LD [M] enbd/enbd.o CC [M] enbd/enbd_ioctl.o Building modules, stage 2. MODPOST CC enbd/enbd.mod.o LD [M] enbd/enbd.ko CC enbd/enbd_ioctl.mod.o LD [M] enbd/enbd_ioctl.ko make: Leaving directory `/usr/src/linux-2.6.8' [root@deb:enbd]# [root@deb:enbd]# [root@deb:enbd]# modinfo ./enbd.ko author: Peter T. Breuer, Andres Marin description: Enhanced Network Block Device 2.4.30 $Date: 2002/09/17 16:33:22 $ license: GPL vermagic: 2.6.8.ENBD SMP 686 REGPARM gcc-2.95 depends: [root@deb:enbd]# dmesg -c > /dev/null [root@deb:enbd]# [root@deb:enbd]# insmod ./enbd.ko [root@deb:enbd]# dmesg ENBD #5287[0]: enbd_cleanup module cleaned up. ENBD #5159[0]: enbd_init Network Block Device originally by [email protected] ENBD #5160[0]: enbd_init Network Block Device port to 2.0 by [email protected] ENBD #5162[0]: enbd_init Network Block Device move networking to user space by [email protected] ENBD #5164[0]: enbd_init Enhanced Network Block Device 2.4.30 $Date: 2002/09/17 16:33:22 $ by [email protected] ENBD #5204[0]: enbd_init registered device at major 43 [root@deb:enbd]# cat /proc/nbdinfo Device a-p: Closed now i'm wondering is there a simple way to build just the user space daemons/tools, excluding the enbd.ko and enbd_ioctl.ko ? _________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://cn.rd.yahoo.com/mail_cn/tag/yisou/music/*http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://cn.rd.yahoo.com/mail_cn/tag/yisou/image/*http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/