Skip to contentSkip to conversation

problems compiling andreas' 3.4 userland tools under test11-pre1

linux-lvm Patrick Michael Kane 2 participants 3 messages Nov 9, 2000

lore
Share & tools
lore
#0 lore raw

Hello all!

I'm trying to get the 0.8final-3.4 to compile under test11-pre1, with no luck. I get all sorts of gcc parse errors in linux/lvm.h and liblvm.h.

I've tried compiling the tools with and without Andreas' 2.4 patch. It fails both ways.

Help?

Signature · 2 lines
Patrick Michael Kane
<[email protected]>
#1 lore raw
Quoted 5 lines · Patrick Kane

I'm trying to get the 0.8final-3.4 to compile under test11-pre1, with no luck. I get all sorts of gcc parse errors in linux/lvm.h and liblvm.h.

I've tried compiling the tools with and without Andreas' 2.4 patch. It fails both ways.

The 2.4 patch you refer to is lvm-0.8final-2.4-kernel.diff? Is it possible you applied it to /usr/src/linux-2.4*/include/linux/lvm.h but there isn't a symlink /usr/include/linux -> /usr/src/linux/include/linux (i.e. you are running Debian or something)?

Alternately, you can simply change linux/lvm.h to lib/lvm.h and it should compile.

Cheers, Andreas

Signature · 3 lines
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
#2 lore raw
Quoted 11 lines · * Andreas Dilger ([email protected]) [001108 19:23]:
Quoted 5 lines · Patrick Kane

I'm trying to get the 0.8final-3.4 to compile under test11-pre1, with no luck. I get all sorts of gcc parse errors in linux/lvm.h and liblvm.h.

I've tried compiling the tools with and without Andreas' 2.4 patch. It fails both ways.

The 2.4 patch you refer to is lvm-0.8final-2.4-kernel.diff? Is it possible you applied it to /usr/src/linux-2.4*/include/linux/lvm.h but there isn't a symlink /usr/include/linux -> /usr/src/linux/include/linux (i.e. you are running Debian or something)?

No, test11-1 is definately living in /usr/src/linux and the symlinks from /usr/include/linux point to the right spot. All of the other third party modules I need compile up fine, for what it's worth.

Quoted 2 lines

Alternately, you can simply change linux/lvm.h to lib/lvm.h and it should compile.

This fixed it. It may well be that I'm not fixing the rejection in the final-2.4-kernel.diff file correctly.

Best,

Signature · 2 lines
Patrick Michael Kane
<[email protected]>