All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Tools compile problem, 1.0.1-rc4 on RH6.2 w/kernel 2.4.12
@ 2001-10-13 15:07 Morten Wang
  2001-10-15  9:52 ` Patrick Caulfield
  0 siblings, 1 reply; 4+ messages in thread
From: Morten Wang @ 2001-10-13 15:07 UTC (permalink / raw)
  To: linux-lvm

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!

-- 
Hoare's Law of Large Programs:
    "Inside every large program is a small program struggling to get out." 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Tools compile problem, 1.0.1-rc4 on RH6.2 w/kernel 2.4.12
  2001-10-13 15:07 [linux-lvm] Tools compile problem, 1.0.1-rc4 on RH6.2 w/kernel 2.4.12 Morten Wang
@ 2001-10-15  9:52 ` Patrick Caulfield
  2001-10-15 11:07   ` Morten Wang
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Caulfield @ 2001-10-15  9:52 UTC (permalink / raw)
  To: linux-lvm

On Sat, Oct 13, 2001 at 05:07:21PM +0200, Morten Wang wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Tools compile problem, 1.0.1-rc4 on RH6.2 w/kernel 2.4.12
  2001-10-15  9:52 ` Patrick Caulfield
@ 2001-10-15 11:07   ` Morten Wang
  2001-10-15 11:24     ` Terje Kvernes
  0 siblings, 1 reply; 4+ messages in thread
From: Morten Wang @ 2001-10-15 11:07 UTC (permalink / raw)
  To: linux-lvm

* Patrick Caulfield
> 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!

-- 
"...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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Tools compile problem, 1.0.1-rc4 on RH6.2 w/kernel 2.4.12
  2001-10-15 11:07   ` Morten Wang
@ 2001-10-15 11:24     ` Terje Kvernes
  0 siblings, 0 replies; 4+ messages in thread
From: Terje Kvernes @ 2001-10-15 11:24 UTC (permalink / raw)
  To: linux-lvm

Morten Wang <warnckew@online.no> writes:

> 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.
 
> '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)

-- 
Terje

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-10-15 11:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-13 15:07 [linux-lvm] Tools compile problem, 1.0.1-rc4 on RH6.2 w/kernel 2.4.12 Morten Wang
2001-10-15  9:52 ` Patrick Caulfield
2001-10-15 11:07   ` Morten Wang
2001-10-15 11:24     ` Terje Kvernes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.