Skip to contentSkip to conversation

Building LVM 2 -- More information

linux-lvm Anastasios A. Papadopoulos (Tas) 2 participants 3 messages May 28, 2003

lore
Share & tools
lore
#0 lore raw

----- Original Message -----
From: Anastasios A. Papadopoulos (Tas)
To: [email protected]
Sent: Wednesday, May 28, 2003 10:42 AM
Subject: Building LVM 2

I'm having a little trouble following directions:

I'm trying to build a new kernel with 'dm'.

Should I be issuing the 'make modules modules-install' after building the new kernel or not. This doesn't appear in the LVM pages I've seen, but it does appear in the Redhat documentation on rebuilding the kernel.

Thanks
Tas

I am getting the following errors during "make modules"

gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-13.8/include -Wall -Wstrict-prototy pes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pi pe -
mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src
/linux-2.4.20-13.8/include/linux/modversions.h -nostdinc -iwithprefix include -
DKBUILD_BASENAME=lvm_fs -c -o lvm-fs.o lvm-fs.c
ld -m elf_i386 -r -o lvm-mod.o lvm.o lvm-snap.o lvm-fs.o
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-13.8/include -Wall -Wstrict-prototy pes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pi pe -
mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src
/linux-2.4.20-13.8/include/linux/modversions.h -nostdinc -iwithprefix include -
DKBUILD_BASENAME=dm -c -o dm.o dm.c
In file included from dm.c:7:
dm.h:97: parse error before "sector_t"
dm.h:97: warning: function declaration isn't a prototype dm.h:100: parse error before "dm_table_get_size"
dm.h:100: warning: type defaults to int' in declaration of dm_table_get_size'
dm.h:100: warning: data definition has no type or storage class dm.h:102: parse error before "sector_t"
dm.h:102: warning: function declaration isn't a prototype
dm.c: In function `dec_pending':
dm.c:319: `dm_endio_fn' undeclared (first use in this function) dm.c:319: (Each undeclared identifier is reported only once dm.c:319: for each function it appears in.)
dm.c:319: parse error before "endio"
dm.c:321: endio' undeclared (first use in this function) dm.c:322: endio' used prior to declaration
dm.c:322: warning: implicit declaration of function endio' dm.c: In function __map_buffer':
dm.c:352: dereferencing pointer to incomplete type
dm.c:365: dereferencing pointer to incomplete type
dm.c: In function `__bmap':
dm.c:484: dereferencing pointer to incomplete type
dm.c:485: dereferencing pointer to incomplete type
make[2]: *** [dm.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-13.8/drivers/md' make[1]: *** [_modsubdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-13.8/drivers'
make: *** [_mod_drivers] Error 2

#1 lore raw
Quoted 8 lines · Anastasios A. Papadopoulos (Tas)

----- Original Message -----
From: Anastasios A. Papadopoulos (Tas)
To: [email protected]
Sent: Wednesday, May 28, 2003 10:42 AM
Subject: Building LVM 2

Quoted 6 lines

I'm having a little trouble following directions:

I'm trying to build a new kernel with 'dm'.

Should I be issuing the 'make modules modules-install' after building the new kernel or not.

If you are building dm as a module, yes.

Quoted 1 line

I am getting the following errors during "make modules"

The patches we provide have only been tested against a vanilla kernel tree, if you are trying to patch a redhat kernel you may have to do a little more work. Which kernel are you patching ?

- Joe

#2 lore raw

Yep. It is RH 8, 2-4.20(-13.8).

I beg your indulgence while I show my ignorance; How would I go about building it not as a module?
Is there a guide somewhere I can follow?

Thanks
----- Original Message -----
From: "Joe Thornber" <[email protected]>
To: <[email protected]>
Sent: Wednesday, May 28, 2003 3:48 PM
Subject: Re: [linux-lvm] Building LVM 2 -- More information

Quoted 1 line

On Wed, May 28, 2003 at 03:14:35PM -0400, Anastasios A. Papadopoulos (Tas)

Quoted 8 lines · wrote:
Quoted 8 lines

----- Original Message -----
From: Anastasios A. Papadopoulos (Tas)
To: [email protected]
Sent: Wednesday, May 28, 2003 10:42 AM
Subject: Building LVM 2

Quoted 5 lines
Quoted 5 lines

I'm having a little trouble following directions:

I'm trying to build a new kernel with 'dm'.

Should I be issuing the 'make modules modules-install' after building

the

Quoted 19 lines
Quoted 1 line

new kernel or not.

If you are building dm as a module, yes.

Quoted 1 line

I am getting the following errors during "make modules"

The patches we provide have only been tested against a vanilla kernel tree, if you are trying to patch a redhat kernel you may have to do a little more work. Which kernel are you patching ?

- Joe

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/