[linux-lvm] Patch 0.8i to 2.3.40: error during make

Jan-Benedict Glaw jbglaw at lug-owl.de
Tue Feb 1 16:55:46 UTC 2000


On Mon, Jan 31, 2000 at 03:36:52AM +0100, Jan-Benedict Glaw wrote:
> On Sun, Jan 30, 2000 at 07:11:04PM -0500, Jim Cain wrote:
> > All,
> > 
> > After applying the patch and running make config and make dep, make shows
> > the following:
> > 
> > make[2]: Entering directory `/usr/src/linux-2.3.40-lvm/kernel'
> > gcc -D__KERNEL__ -I/usr/src/linux-2.3.40-lvm/include -D__SMP__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce  -DCPU=686 -march=i686   -DEXPORT_SYMTAB -c ksyms.c
> > ksyms.c:258: `block_fsync' undeclared here (not in a function)
> > ksyms.c:258: initializer element for `__ksymtab_block_fsync.value' is not constant
> > ksyms.c:269: `blkdev_close' undeclared here (not in a function)
> > ksyms.c:269: initializer element for `__ksymtab_blkdev_close.value' is not constant
> > make[2]: *** [ksyms.o] Error 1
> > 
> > Has anyone else had a similar problem with this patch?
> 
> Yes, /me... I've got no unmodified file handy and I'm working on a very slow
> machine so try this:
> 
> - edit ./include/linux/fs.h
> - locate line 775
> - add the following two lines:
> 
> extern int blkdev_close(struct inode *, struct file *);
> extern int block_fsync(struct file *, struct dentry *);
> 
> --> That's all. It's simply a problem of two missing declarations;(

Well, that's *nearly* all. You need to remove the "static" keywords from
both blkdev_close and block_fsync in ./fs/block_dev.c, too.

But that's really all;)

MfG, JBG

-- 
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20000201/217e3dcb/attachment.sig>


More information about the linux-lvm mailing list