Skip to contentSkip to conversation

Tools compile problem, 1.0.1-rc4 on RH6.2 w/kernel 2.4.12

linux-lvm Morten Wang 3 participants 4 messages Oct 13, 2001 – Oct 15, 2001

lore
Share & tools
lore
#0 lore raw

Greetings all,

in my quest to learn more about Linux I've decided to have a look at LVM. primarily because my server has some free space I'd like to exploit better, secondly because I like to learn.

I downloaded 1.0.1-rc4. after changing all occurrences of [[:blank:]] with [[:space:]] in the various configuration scripts (grep didn't support the former according to my man-pages) I got ./configure to run, and as far I could tell from looking at a few of the Makefiles it returned the correct values. I then did a 'make' in ./PATCHES, patched my kernel and then built the new LVM module. I can now successfully load lvm-mod:

    kernel: LVM version 1.0.1-rc4(03/10/2001) module loaded

I am not able to build the tools needed to work with LVM. the kernel reported being unable to locate module block-major-105 (some Compaq RAID thingy according to /usr/src/linux/Documentation/devices.txt) and I added 'alias block-major-105 off' to /etc/modules.conf with good results. the tools still don't build though:

[root@tigger 1.0.1-rc4]# make
make[1]: Entering directory `/usr/local/src/LVM/1.0.1-rc4/tools'
make[2]: Entering directory `/usr/local/src/LVM/1.0.1-rc4/tools/lib'
make[3]: Entering directory `/usr/local/src/LVM/1.0.1-rc4/tools/lib'
gcc -c -pipe -g -O2 -Wall -pg -DDEBUG -I../../tools/lib -I../../tools -I/usr/local/src/LVM/1.0.1-rc4/tools/lib -o basename.o basename.c In file included from basename.c:34:
../../tools/lib/liblvm.h:81: malloc.h: Device not configured
make[3]: *** [basename.o] Error 1
make[3]: Leaving directory `/usr/local/src/LVM/1.0.1-rc4/tools/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/LVM/1.0.1-rc4/tools/lib'
make[2]: Entering directory `/usr/local/src/LVM/1.0.1-rc4/tools/man8'
make[3]: Entering directory `/usr/local/src/LVM/1.0.1-rc4/tools/man8'
make[3]: Leaving directory `/usr/local/src/LVM/1.0.1-rc4/tools/man8'
make[2]: Leaving directory `/usr/local/src/LVM/1.0.1-rc4/tools/man8'
make[2]: Entering directory `/usr/local/src/LVM/1.0.1-rc4/tools'
gcc -c -pipe -g -O2 -Wall -pg -DDEBUG -I../tools/lib -I../tools -I/usr/local/src/LVM/1.0.1-rc4/tools/lib -o e2fsadm.o e2fsadm.c In file included from ../tools/lvm_user.h:41,

                 from e2fsadm.c:53:

../tools/lib/liblvm.h:81: malloc.h: Device not configured In file included from e2fsadm.c:53:
../tools/lvm_user.h:48: malloc.h: Device not configured make[2]: *** [e2fsadm.o] Error 1
make[2]: Leaving directory `/usr/local/src/LVM/1.0.1-rc4/tools' make[1]: *** [all] Error 2
make[1]: Leaving directory /usr/local/src/LVM/1.0.1-rc4/tools' make[1]: Entering directory /usr/local/src/LVM/1.0.1-rc4'

**********************************
There were errors in your compile.
**********************************

make[1]: *** [.touchbuilt] Error 1
make[1]: Leaving directory `/usr/local/src/LVM/1.0.1-rc4'
make: *** [all] Error 2

this is as far as I am able to go with my knowledge. I've searched the mailing list archives and googled for some solutions, and as I've mentioned I found one for the missing module kernel error. I'm not sure if I'm missing some clues here or not. the help for LVM in 'make xconfig' doesn't mention any requirements of other drivers or anything, neither does INSTALL, as far as I've been able to read (think I've read it quite a few times now).

I'd be very appreciative of any help on this. I could do a trial & error of adding the module for that Compaq RAID thingy to see if that would help, but it feels like I'm stumbling in the dark here. if I'm making any errors here, or any much-needed information is missing, let me know and I'll supply it.

Morten!

Signature · 2 lines
Hoare's Law of Large Programs:
    "Inside every large program is a small program struggling to get out." 
#1 lore raw
Quoted 8 lines · Morten Wang

Greetings all,

gcc -c -pipe -g -O2 -Wall -pg -DDEBUG -I../tools/lib -I../tools -I/usr/local/src/LVM/1.0.1-rc4/tools/lib -o e2fsadm.o e2fsadm.c In file included from ../tools/lvm_user.h:41,

                 from e2fsadm.c:53:

../tools/lib/liblvm.h:81: malloc.h: Device not configured In file included from e2fsadm.c:53:
../tools/lvm_user.h:48: malloc.h: Device not configured

That's a wierd error. I doubt it's directly related to LVM, it looks to me like the files in /usr/include are not available for some reason. It might be something odd like just not having the development packages installed or it could be something much stranger.

See what /usr/include looks like, it may be a symlink to somewhere else or it may contain symlinks to other files that cannot be resolved.

It might be worth seeing if you can compile anything else - I would doubt it looking at that error.

patrick

#2 lore raw

* Patrick Caulfield

Quoted 2 lines

See what /usr/include looks like, it may be a symlink to somewhere else or it may contain symlinks to other files that cannot be resolved.

I _did_ check the two usual symlinks in /usr/include, 'linux' & 'asm', which point to directories in the kernel-source tree. they were ok. what I forgot to check was whether /usr/include/malloc.h actually was readable, and then I found out. it wasn't possible to read the file and it had incorrect values in a directory listing. did check around a bit for various clues, but couldn't find any, so I assume it's just a filesystem error after a few unwanted shutdowns. a reinstall of the glibc-devel RPM fixed the problem, and the tools compiled successfully.

'make install' then ran successfully, and I could run vgcan and vgchange without any problems. am looking forward to checking out LVM, thanks!

Morten!

Signature · 3 lines
"...a liquid which was almost, but not quite, entirely unlike tea."
  My opinions are not necessarily those of my provider,
  not necessarily mine, and probably not necessary.
#3 lore raw
Quoted 9 lines · Morten Wang

I _did_ check the two usual symlinks in /usr/include, 'linux' & 'asm', which point to directories in the kernel-source tree. they were ok. what I forgot to check was whether /usr/include/malloc.h actually was readable, and then I found out. it wasn't possible to read the file and it had incorrect values in a directory listing. did check around a bit for various clues, but couldn't find any, so I assume it's just a filesystem error after a few unwanted shutdowns. a reinstall of the glibc-devel RPM fixed the problem, and the tools compiled successfully.

uhm, this is a bad thing. what filesystem does /usr/include reside on? if a file is corrupt and the fsck didn't fix it under boot, I'd be worried about physical disk damage.

Quoted 3 lines

'make install' then ran successfully, and I could run vgcan and vgchange without any problems. am looking forward to checking out LVM, thanks!

you'll enjoy it. trust me. :)

(now, if I could just get snapshots to work like I want them to. sigh)

Signature · 1 line
Terje