Problems with 0.8pre tools (fwd)
Forwarded message ...
-------- Original Message --------
Date: Wed, 2 Feb 2000 23:51:40 -0500 (EST)
From: Jim Cain <[email protected]>
Subject: Re: Problems with 0.8pre tools
Quoted 15 lines · Jim Cain
All,
I had some problems getting the tools to build. First, in
tools/lib/liblvm.h, the included file <linux/lvm.h> did not compile because the reference tospinlock_ton line 573 was unknown. I added an #include <linux/spinlock.h> toliblvm.h, and everything in the lib directory built fine.Next, in
tools/lvmchange.con line 160, the identifierLVM_RESETwas unknown. This is defined in <linux/lvm.h>, but only ifLVM_TOTAL_RESETis defined. I removed the #ifdef around it so thatLVM_RESETis always defined. After that change, the tools built okay.Well, not completely okay. Because when I do the following:
Quoted 7 lines
pvcreate /dev/hd[bc]1
vgcreate vg01 /dev/hd[bc]1the vgcreate command dumps core on a segmentation fault. I'm wondering if any of the fixes I made were incomplete or the wrong way to fix it.
This is being built on kernel 2.3.40 with the 0.8i patch.
I should have also mentioned that I made the changes to tools/lib/lvm_tab_vg_check_exist_all_vg.c that Heinz describes in his message on Jan. 1. I get no output from vgcreate at all, just the seg fault.
Cheers,
Jim