Skip to contentSkip to conversation

LVM 0.8 2.3.33 compile error

linux-lvm Michael Marxmeier 1 participant 1 message Dec 23, 1999 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 10 lines · Josef H��k

got this error when compiling 2.3.33-LVM

make[3]: Entering directory `/usr/src/linux/drivers/block' gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2

(quoted diff) +0 -2
-fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce
-DCPU=686 -march=i686   -DEXPORT_SYMTAB -c ll_rw_blk.c

In file included from /usr/src/linux/include/linux/lvm.h:92,

                 from ll_rw_blk.c:32:

/usr/src/linux/include/asm/spinlock.h:36: warning: `SPIN_LOCK_UNLOCKED' redefined

...

Quoted 1 line

is it me or is it a bug :)?

In include/linux/lvm.h please change the
#include <asm/spinlock.h>
against
#include <linux/spinlock.h>

This fixed it for me (lvm 0.8i)

Hope this helps
Michael

Signature · 4 lines
Michael Marxmeier           Marxmeier Software AG
E-Mail: [email protected]      Besenbruchstrasse 9
Phone : +49 202 2431440     42285 Wuppertal, Germany
Fax   : +49 202 2431420     http://www.msede.com/