LVM2 compilation problem
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.oactivate/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 onceactivate/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
Signature · 2 lines
Arkadiusz Mi¶kiewicz CS at FoE, Wroclaw University of Technology arekm.pld-linux.org AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
Quoted 1 line · Arkadiusz Miskiewicz
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
Signature · 1 line
[email protected]
Quoted 1 line · Alasdair G Kergon
The word 'latest' is missing from that sentence!
That was it - with latest device-mapper it compiles fine. Thanks!
Quoted 1 line
Alasdair
Signature · 2 lines
Arkadiusz Mi¶kiewicz CS at FoE, Wroclaw University of Technology arekm.pld-linux.org AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux