Skip to contentSkip to conversation

building the binary utilities

linux-lvm Chris Campbell 3 participants 3 messages Mar 7, 2000 – Mar 8, 2000

lore
Share & tools
lore
#0 lore raw

kernel location is what it should be, but I still get all these errors. I'm not sure what's going on, other than it can't find the lvm and liblvm header files, which are in a directory below the current one:

Quoted 18 lines · --- Michael Marxmeier
Quoted 1 line · Chris Campbell

I got a patched kernel to compile ok, but now I

have

Quoted 1 line

problems building the binary lvm utilities. There

are

Quoted 2 lines

errors about not being about to find lvm.h and liblvm.h. I copied them to /usr/include, and then

it

Quoted 1 line

got farther but complained about gnu/types.h.

After

Quoted 2 lines

symlinking that, I got an error about lots of
redeclarations. What's going on? Thanks.

At least for glibc2.1 you need a patch for the user mode tools,
otherwise compile fails. Please install patch patch-lvm_0.8final-2

Quoted 8 lines

For a list of know issues please have a look at
http://linux.msede.com/lvm/doc/BUGS

Instead of copying lvm.h to /usr/include you should modify the
KERNEL_LOCATION in make.tmpl. By default it assumes your kernel
sources in /usr/src/linux.

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

#1 lore raw

Make sure /usr/src/linux is a link to the proper kernel your editing/configuring. I had the same problem but it turned out my linux link was pointing back to my 2.2.14 kernel, which I was actively hacking on at the time. :)

Quoted 39 lines · Chris Campbell

kernel location is what it should be, but I still get all these errors. I'm not sure what's going on, other than it can't find the lvm and liblvm header files, which are in a directory below the current one:

Quoted 18 lines · --- Michael Marxmeier
Quoted 1 line · Chris Campbell

I got a patched kernel to compile ok, but now I

have

Quoted 1 line

problems building the binary lvm utilities. There

are

Quoted 2 lines

errors about not being about to find lvm.h and liblvm.h. I copied them to /usr/include, and then

it

Quoted 1 line

got farther but complained about gnu/types.h.

After

Quoted 2 lines

symlinking that, I got an error about lots of
redeclarations. What's going on? Thanks.

At least for glibc2.1 you need a patch for the user mode tools,
otherwise compile fails. Please install patch patch-lvm_0.8final-2

Quoted 8 lines

For a list of know issues please have a look at
http://linux.msede.com/lvm/doc/BUGS

Instead of copying lvm.h to /usr/include you should modify the
KERNEL_LOCATION in make.tmpl. By default it assumes your kernel
sources in /usr/src/linux.

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

#2 lore raw
In reply to Chris Campbell
Quoted 5 lines · Chris Campbell

kernel location is what it should be, but I still get all these errors. I'm not sure what's going on, other than it can't find the lvm and liblvm header files, which are in a directory below the current one:

Hi Chris,

the variable TOP in your '/root/lvmstuff/LVM/0.8final/make.tmpl' is set to '/root/LVM/0.8final', as you could see in following snipped from your make-errors file:

cc -c -pipe -Wall -O2 -DDEBUG -I/root/LVM/0.8final/tools/lib -I/root/LVM/0.8fina
l/tools -o basename.o basename.c
cc -c -pipe -Wall -O2 -DDEBUG -I/root/LVM/0.8final/tools/lib -I/root/LVM/0.8fina
l/tools -o debug.o debug.c
basename.c:34: liblvm.h: No such file or directory

the -I options in the gcc line are expanded from '-I$(TOP)/tools/lib -I$(TOP)'. You should control your changes in config files at first when your're searching for errors before you start symlinking around ;-).

Bye
Klaus

Signature · 5 lines
Klaus Strebel
[email protected]
EIGNER + PARTNER AG   - The Engineering Warehouse Company -
<http://www.ep-ag.com>
-----------------------------------------------------------------------