Skip to contentSkip to conversation

(no subject)

linux-lvm lysindybear 1 participant 1 message May 22, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · lysindybear
Quoted 2 lines

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/)