* [linux-lvm] LVM2 compilation problem
@ 2003-10-16 7:26 Jan Švec
2003-10-16 10:48 ` AJ Lewis
0 siblings, 1 reply; 5+ messages in thread
From: Jan Švec @ 2003-10-16 7:26 UTC (permalink / raw)
To: linux-lvm
Hi,
I'm having trouble compiling the LVM2 ver. 2.2.00.07. During make
install I receive this error:
device/dev-io.c: In function `dev_get_size':
device/dev-io.c:215: `BLKGETSIZE64' undeclared (first use in this
function)
device/dev-io.c:215: (Each undeclared identifier is reported only once
device/dev-io.c:215: for each function it appears in.)
make[1]: *** [device/dev-io.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/root/LVM2.2.00.07/lib'
make: *** [lib] Error 2
The kernel is 2.6.0 test6. I also tried to make the link
/usr/src/linux-2.6.0-test6/include/linux -> /usr/include/linux, but then
I receive another error message:
gcc -c -I. -I../include -DLVM1_INTERNAL -DREADLINE_SUPPORT
-DDEVMAPPER_SUPPORT -DHAVE_LIBDL -DHAVE_GETOPTLONG -DHAVE_RL_COMPLET
ION_MATCHES -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings
-Wmissing-prototypes -Wmissing-declarations -Wnested-exte
rns -Winline -O2 device/dev-io.c -o device/dev-io.o
In file included from /usr/include/linux/fs.h:10,
from device/dev-io.c:24:
/usr/include/linux/linkage.h:5:25: asm/linkage.h: No such file or
directory
In file included from /usr/include/linux/fs.h:16,
from device/dev-io.c:24:
/usr/include/linux/list.h:563:2: warning: #warning "don't include kernel
headers in userspace"
In file included from /usr/include/linux/fs.h:20,
from device/dev-io.c:24:
/usr/include/linux/radix-tree.h: In function `radix_tree_preload_end':
/usr/include/linux/radix-tree.h:54: invalid type argument of `->'
/usr/include/linux/radix-tree.h:54: `TIF_NEED_RESCHED' undeclared (first
use in this function)
/usr/include/linux/radix-tree.h:54: (Each undeclared identifier is
reported only once
/usr/include/linux/radix-tree.h:54: for each function it appears in.)
In file included from /usr/include/linux/fs.h:22,
from device/dev-io.c:24:
/usr/include/asm/atomic.h:40:2: warning: #warning Using kernel header in
userland program. BAD!
make[1]: *** [device/dev-io.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/root/LVM2.2.00.07/lib'
make: *** [lib] Error 2
Anyone have any idea how to solve this problem ?
Thanks,
Jan
--
----------------------------------------------------------------------
Jan Svec Institute of Physics
e-mail: svecj@fzu.cz Academy of Sciences of the CR
Phone : +420 2 6605 2145 Na Slovance 2, 182 21 Praha 8
Fax : +420 2 8658 5443 Czech Republic
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] LVM2 compilation problem
2003-10-16 7:26 Jan Švec
@ 2003-10-16 10:48 ` AJ Lewis
0 siblings, 0 replies; 5+ messages in thread
From: AJ Lewis @ 2003-10-16 10:48 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1514 bytes --]
On Thu, Oct 16, 2003 at 02:25:06PM +0200, Jan Švec wrote:
> I'm having trouble compiling the LVM2 ver. 2.2.00.07. During make
> install I receive this error:
>
> device/dev-io.c: In function `dev_get_size':
> device/dev-io.c:215: `BLKGETSIZE64' undeclared (first use in this
> function)
> device/dev-io.c:215: (Each undeclared identifier is reported only once
> device/dev-io.c:215: for each function it appears in.)
> make[1]: *** [device/dev-io.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory `/root/LVM2.2.00.07/lib'
> make: *** [lib] Error 2
>
> The kernel is 2.6.0 test6. I also tried to make the link
> /usr/src/linux-2.6.0-test6/include/linux -> /usr/include/linux, but then
> I receive another error message:
<snip>
> Anyone have any idea how to solve this problem ?
The quickest and easiest way i can think of is to grab a 2.4.22
kernel, untar it, and link that include/linux directory into your
/usr/include/ dir. As you saw, 2.6 doesn't allow kernel headers to be
used in userspace, but 2.4 still does. It's ugly, but it works.
Regards,
--
AJ Lewis
Sistina Software Inc. http://www.sistina.com
720 Washington Ave, Suite 200 Voice: 612-638-0500
Minneapolis, MN 55414 E-Mail: lewis_NOSPAM_(AT)sistina(DOT)com
Current GPG fingerprint = B8F8 CEC8 9B0B B169 C5E2 8589 867E 54C8 4984 3813
Grab the key at: http://people.sistina.com/~lewis/gpg.html or one of the
many keyservers out there...
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [linux-lvm] LVM2 compilation problem
@ 2003-11-30 10:45 Arkadiusz Miskiewicz
2003-11-30 11:20 ` Alasdair G Kergon
0 siblings, 1 reply; 5+ messages in thread
From: Arkadiusz Miskiewicz @ 2003-11-30 10:45 UTC (permalink / raw)
To: linux-lvm
Hi,
I'm trying to compile LVM2 2.00.08 tools but:
athlon-pld-linux-gcc -c -I. -I../include -O2 -march=athlon -DLVM1_INTERNAL
-DDEVMAPPER_SUPPORT -DO_DIRECT_SUPPORT -DHAVE_LIBDL -DHAVE_GETOPTLONG -fPIC
-Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline activate/fs.c -o
activate/fs.o
activate/dev_manager.c: In function `_info_run':
activate/dev_manager.c:296: error: `DM_DEVICE_MKNODES' undeclared (first use
in this function)
activate/dev_manager.c:296: error: (Each undeclared identifier is reported
only once
activate/dev_manager.c:296: error: for each function it appears in.)
activate/dev_manager.c: In function `_create_dev':
../include/pool.h:112: warning: inlining failed in call to `pool_zalloc'
activate/dev_manager.c:1166: warning: called from here
make[1]: *** [activate/dev_manager.o] B³±d 1
make[1]: *** Oczekiwanie na niezakoñczone zadania....
make[1]: Opuszczenie katalogu `/home/users/misiek/rpm/BUILD/LVM2.2.00.08/lib'
kernel headers from 2.6.0test10
--
Arkadiusz Mi¶kiewicz CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] LVM2 compilation problem
2003-11-30 10:45 [linux-lvm] LVM2 compilation problem Arkadiusz Miskiewicz
@ 2003-11-30 11:20 ` Alasdair G Kergon
2003-12-01 3:45 ` Arkadiusz Miskiewicz
0 siblings, 1 reply; 5+ messages in thread
From: Alasdair G Kergon @ 2003-11-30 11:20 UTC (permalink / raw)
To: linux-lvm
On Sun, Nov 30, 2003 at 05:42:37PM +0100, Arkadiusz Miskiewicz wrote:
> activate/dev_manager.c:296: error: `DM_DEVICE_MKNODES' undeclared (first use
This is defined in the latest libdevmapper.h in the latest device-mapper
distribution - 'make install' installs it into /usr/include.
LVM2 README says:
The device-mapper needs to be installed before compiling these LVM2 tools.
The word 'latest' is missing from that sentence!
Alasdair
--
agk@uk.sistina.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] LVM2 compilation problem
2003-11-30 11:20 ` Alasdair G Kergon
@ 2003-12-01 3:45 ` Arkadiusz Miskiewicz
0 siblings, 0 replies; 5+ messages in thread
From: Arkadiusz Miskiewicz @ 2003-12-01 3:45 UTC (permalink / raw)
To: linux-lvm
On Sunday 30 of November 2003 18:18, Alasdair G Kergon wrote:
> The word 'latest' is missing from that sentence!
That was it - with latest device-mapper it compiles fine. Thanks!
> Alasdair
--
Arkadiusz Mi¶kiewicz CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-12-01 3:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-30 10:45 [linux-lvm] LVM2 compilation problem Arkadiusz Miskiewicz
2003-11-30 11:20 ` Alasdair G Kergon
2003-12-01 3:45 ` Arkadiusz Miskiewicz
-- strict thread matches above, loose matches on Subject: below --
2003-10-16 7:26 Jan Švec
2003-10-16 10:48 ` AJ Lewis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox