Re: Re: [linux-lvm] (no subject)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>On Wed, May 22, 2002 at 07:54:53PM +0800, lysindybear wrote:
>> I am modifying the lvm source file,I want to make lvm as module instead into kernel,but the compiler tell me something wrong,can 
>> someboby tell me what I should modify in the source file? thanks
>
>Just change the LVM option in the kernel to build as a module.  No
>need to change source.
>
>- Joe

yes i know this,i've change the config file and use make modules command,below is the error message:

some explaination : I've write a new file named raidde.c,i want to compile it as a module,i compile it into kernel before,but it waste too much time to compile to debug,so i want to compile it as a module 

make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/md'
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -O2 -fom
it-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-
stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4/
include/linux/modversions.h   -c -o raidde.o raidde.c
In file included from /usr/src/linux-2.4/include/linux/spinlock.h:35,
                 from /usr/src/linux-2.4/include/linux/module.h:11,
                 from raidde.c:17:
/usr/src/linux-2.4/include/asm/spinlock.h:8: nondigits in number and not hexadec
imal
/usr/src/linux-2.4/include/asm/spinlock.h:8: nondigits in number and not hexadec
imal
/usr/src/linux-2.4/include/asm/spinlock.h:8: parse error before `1b7d4074'
/usr/src/linux-2.4/include/asm/spinlock.h:9: `printk_R_ver_str' declared as func
tion returning a function
/usr/src/linux-2.4/include/asm/spinlock.h:9: warning: function declaration isn't
 a prototype
In file included from raidde.c:17:
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexad
ecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexad
ecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexad
ecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexad
ecimal……………………
……………………
……………………
something like this

______________________________________

===================================================================
新浪免费电子邮箱 (http://mail.sina.com.cn)
新浪分类信息:二手市场走一走,该出手时就出手! (http://classad.sina.com.cn/2shou/)

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux