Skip to contentSkip to conversation

Patching Kernel 2.4.16.

linux-lvm Petro 2 participants 5 messages Dec 12, 2001 – Dec 13, 2001

lore
Share & tools
lore

Petro

author
#0 lore raw

I'm trying to build a kernel with the 1.0.1 stuff, I run the Makefile in the PATCHES file generating lvm-1.0.1-2.4.16.patch and apply this to the kernel souce (patch -p1 < ../...) cleanly. Run make oldconfig, make dep, make bzImage > output and I get a whole bunch of errors starting with:

In file included from lvm.c:262:
lvm-internal.h:49: parse error before *' lvm-internal.h:49: warning: type defaults to int' in declaration of `vg'
lvm-internal.h:49: warning: data definition has no type or storage class
lvm-internal.h:86: parse error before *' lvm-internal.h:86: warning: function declaration isn't a prototype lvm-internal.h:87: parse error before *' lvm-internal.h:87: warning: function declaration isn't a prototype lvm-internal.h:88: parse error before vg_t' lvm-internal.h:88: warning: function declaration isn't a prototype lvm-internal.h:89: parse error before lv_t' lvm-internal.h:89: warning: function declaration isn't a prototype lvm-internal.h:90: parse error before *' lvm-internal.h:90: warning: function declaration isn't a prototype lvm-internal.h:91: parse error before *' lvm-internal.h:91: warning: function declaration isn't a prototype lvm-internal.h:92: parse error before *' lvm-internal.h:92: warning: function declaration isn't a prototype lvm-internal.h:93: parse error before *' lvm-internal.h:93: warning: function declaration isn't a prototype lvm-internal.h:94: parse error before *' lvm-internal.h:94: warning: function declaration isn't a prototype lvm-internal.h:101: parse error before *' lvm-internal.h:101: warning: function declaration isn't a prototype lvm-internal.h:102: parse error before *' lvm-internal.h:102: warning: function declaration isn't a prototype lvm-internal.h:103: parse error before *' lvm-internal.h:103: warning: function declaration isn't a prototype lvm-internal.h:104: parse error before *' lvm-internal.h:104: warning: function declaration isn't a prototype lvm-internal.h:105: parse error before *' lvm-internal.h:105: warning: function declaration isn't a prototype lvm-internal.h:106: parse error before *' lvm-internal.h:106: warning: function declaration isn't a prototype lvm.c:286: parse error before *'
lvm.c:286: warning: function declaration isn't a prototype lvm.c:287: warning: `struct lv_bmap' declared inside parameter list lvm.c:287: warning: its scope is only this definition or declaration, which is p
robably not what you want.
lvm.c:308: parse error before `*'
lvm.c:308: warning: function declaration isn't a prototype lvm.c:310: parse error before `*'
lvm.c:310: warning: function declaration isn't a prototype lvm.c:311: parse error before `*'
lvm.c:311: warning: function declaration isn't a prototype lvm.c:312: parse error before `lv_t'
lvm.c:312: warning: function declaration isn't a prototype lvm.c:313: parse error before `lv_t'
lvm.c:313: warning: function declaration isn't a prototype lvm.c:315: parse error before `*'
lvm.c:315: warning: function declaration isn't a prototype lvm.c:316: parse error before `*'
lvm.c:316: warning: function declaration isn't a prototype lvm.c:317: parse error before `*'
lvm.c:317: warning: function declaration isn't a prototype

And going on for several pages.

This isn't right is it?

Signature · 1 line
Share and Enjoy. 
author
#1 lore raw
Quoted 5 lines · Petro

I'm trying to build a kernel with the 1.0.1 stuff, I run the Makefile in the PATCHES file generating lvm-1.0.1-2.4.16.patch and apply this to the kernel souce (patch -p1 < ../...) cleanly. Run make oldconfig, make dep, make bzImage > output and I get a whole bunch of errors starting with:

Interesting. I tried it again building LVM as a module and it workeded.

Quoted 72 lines

In file included from lvm.c:262:
lvm-internal.h:49: parse error before *' lvm-internal.h:49: warning: type defaults to int' in declaration of `vg'
lvm-internal.h:49: warning: data definition has no type or storage class
lvm-internal.h:86: parse error before *' lvm-internal.h:86: warning: function declaration isn't a prototype lvm-internal.h:87: parse error before *' lvm-internal.h:87: warning: function declaration isn't a prototype lvm-internal.h:88: parse error before vg_t' lvm-internal.h:88: warning: function declaration isn't a prototype lvm-internal.h:89: parse error before lv_t' lvm-internal.h:89: warning: function declaration isn't a prototype lvm-internal.h:90: parse error before *' lvm-internal.h:90: warning: function declaration isn't a prototype lvm-internal.h:91: parse error before *' lvm-internal.h:91: warning: function declaration isn't a prototype lvm-internal.h:92: parse error before *' lvm-internal.h:92: warning: function declaration isn't a prototype lvm-internal.h:93: parse error before *' lvm-internal.h:93: warning: function declaration isn't a prototype lvm-internal.h:94: parse error before *' lvm-internal.h:94: warning: function declaration isn't a prototype lvm-internal.h:101: parse error before *' lvm-internal.h:101: warning: function declaration isn't a prototype lvm-internal.h:102: parse error before *' lvm-internal.h:102: warning: function declaration isn't a prototype lvm-internal.h:103: parse error before *' lvm-internal.h:103: warning: function declaration isn't a prototype lvm-internal.h:104: parse error before *' lvm-internal.h:104: warning: function declaration isn't a prototype lvm-internal.h:105: parse error before *' lvm-internal.h:105: warning: function declaration isn't a prototype lvm-internal.h:106: parse error before *' lvm-internal.h:106: warning: function declaration isn't a prototype lvm.c:286: parse error before *'
lvm.c:286: warning: function declaration isn't a prototype lvm.c:287: warning: `struct lv_bmap' declared inside parameter list lvm.c:287: warning: its scope is only this definition or declaration, which is p
robably not what you want.
lvm.c:308: parse error before `*'
lvm.c:308: warning: function declaration isn't a prototype lvm.c:310: parse error before `*'
lvm.c:310: warning: function declaration isn't a prototype lvm.c:311: parse error before `*'
lvm.c:311: warning: function declaration isn't a prototype lvm.c:312: parse error before `lv_t'
lvm.c:312: warning: function declaration isn't a prototype lvm.c:313: parse error before `lv_t'
lvm.c:313: warning: function declaration isn't a prototype lvm.c:315: parse error before `*'
lvm.c:315: warning: function declaration isn't a prototype lvm.c:316: parse error before `*'
lvm.c:316: warning: function declaration isn't a prototype lvm.c:317: parse error before `*'
lvm.c:317: warning: function declaration isn't a prototype

And going on for several pages.

This isn't right is it?

Signature · 7 lines
Share and Enjoy. 

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Signature · 1 line
Share and Enjoy. 
author
#2 lore raw
Quoted 9 lines · Petro
Quoted 5 lines · Petro

I'm trying to build a kernel with the 1.0.1 stuff, I run the Makefile in the PATCHES file generating lvm-1.0.1-2.4.16.patch and apply this to the kernel souce (patch -p1 < ../...) cleanly. Run make oldconfig, make dep, make bzImage > output and I get a whole bunch of errors starting with:

Interesting. I tried it again building LVM as a module and it workeded.

So I built LVM as a module, it's in there:
Module Size Used by
nfs 71536 11 (autoclean)
lockd 47152 1 (autoclean) [nfs]
sunrpc 63648 1 (autoclean) [nfs lockd]
lvm-mod 47488 3
acenic 235584 1

Wait a minute.

I still need to apply the VFS Lock Patch, right?

Signature · 1 line
Share and Enjoy. 
#3 lore raw
Quoted 4 lines · Petro

Wait a minute.

I still need to apply the VFS Lock Patch, right?

Only if you need snapshotting of journalled filesystems.

patrick

author
#4 lore raw
Quoted 7 lines · Patrick Caulfield
Quoted 4 lines · Petro

Wait a minute.

I still need to apply the VFS Lock Patch, right?

Only if you need snapshotting of journalled filesystems.

Yeah, that's our primary reason for using LVM.

I applied the patch and it works fine now. a

Sorry about that last email, that was me thinking aloud.

Signature · 1 line
Share and Enjoy.