Compiling LVM 0.6 on Redhat 6.0
Hi all,
I have just found LVM and attempting to install it on a newly installed headhat 6 box. When compiling I get the following error:
Using the static LVM Library
make[2]: *** No rule to make target /usr/local/src/LVM/0.6/tools/lib/liblvm.a', needed by e2fsadm'. Stop. make[2]: Leaving directory /usr/local/src/LVM/0.6/tools'
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/local/src/LVM/0.6/tools'
make: *** [all] Error 2
Using XLINKER
make[1]: Entering directory `/usr/local/src/LVM/0.6/tools'
cc -L/usr/local/src/LVM/0.6/tools/lib -Xlinker -rpath /usr/local/src/LVM/0.6/to ols/lib -Xlinker -rpath /lib -Xlinker -rpath /usr/lib -llvm -o e2fsadm e2fsadm.o
/usr/bin/ld: cannot open -llvm: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [e2fsadm] Error 1
make[1]: Leaving directory `/usr/local/src/LVM/0.6/tools'
make: *** [all] Error 2
Can someone please shead some light on this error.
Cheers
George
--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
Hi there!
Looks like you had a compile problem in the LVM lib which caused the library _not_ to be build.
Could you please have a look at the library build output an tell me?
Regards,
Heinz
Quoted 25 lines
Hi all,
I have just found LVM and attempting to install it on a newly installed headhat 6 box. When compiling I get the following error:Using the static LVM Library
make[2]: *** No rule to make target/usr/local/src/LVM/0.6/tools/lib/liblvm.a', needed bye2fsadm'. Stop. make[2]: Leaving directory/usr/local/src/LVM/0.6/tools'
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/local/src/LVM/0.6/tools'
make: *** [all] Error 2Using XLINKER
make[1]: Entering directory `/usr/local/src/LVM/0.6/tools'
cc -L/usr/local/src/LVM/0.6/tools/lib -Xlinker -rpath/usr/local/src/LVM/0.6/tools/lib -Xlinker -rpath /lib -Xlinker -rpath/usr/lib-llvm -o e2fsadm e2fsadm.o
/usr/bin/ld: cannot open -llvm: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [e2fsadm] Error 1
make[1]: Leaving directory `/usr/local/src/LVM/0.6/tools'
make: *** [all] Error 2Can someone please shead some light on this error.
Quoted 8 lines
Cheers
George--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement C/S Deutsche Telekom AG
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41
64205 Darmstadt [email protected] Germany +49 6151 886-425 FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 6 lines · Heinz Mauelshagen
Hi there!
Looks like you had a compile problem in the LVM lib which caused the library _not_ to be build.
i had to use this patche to compile with glibc2.0/2.1 and a recent (2.2.10-ac3) kernel
should not break other cases
Regards,
Luca
Signature · 2 lines
Luca Berra -- [email protected] Communications Media & Services S.r.l.
tools/lib/liblvm.h renamed from tools/lib/liblvm.h.make.orig +20 -1
@@ -78,6 +78,25 @@# include <time.h> int llseek (unsigned int ,unsigned long long ,unsigned int ); +/* from genhd.h */ +#define DOS_EXTENDED_PARTITION 5 +#define LINUX_EXTENDED_PARTITION 0x85 +#define WIN98_EXTENDED_PARTITION 0x0f +#define LINUX_SWAP_PARTITION 0x82 + +struct partition { +unsigned char boot_ind;/* 0x80 - active */ +unsigned char head;/* starting head */ +unsigned char sector;/* starting sector */ +unsigned char cyl;/* starting cylinder */ +unsigned char sys_ind;/* What partition type */ +unsigned char end_head;/* end head */ +unsigned char end_sector;/* end sector */ +unsigned char end_cyl;/* end cylinder */ +unsigned int start_sect;/* starting sector counting from 0 */ +unsigned int nr_sects;/* nr of sectors in partition */ +} __attribute__((packed)); +#else /* __GLIBC__ < 2 */ #if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,1 ,0 )
@@ -94,10 +113,10 @@# include <linux/msdos_fs.h> # include <malloc.h> # include <stdio.h> +# include <linux/genhd.h> #endif /* __GLIBC__ > 1 */ #include <sys/ioctl.h> -#include <linux/genhd.h> #include <linux/major.h> #include <lvm.h>
tools/lib/pv_get_size.c renamed from tools/lib/pv_get_size.c.make.orig +3 -2
@@ -112,9 +112,10 @@#endif /* is it a welcome extended partition? */ if ( part[i].sys_ind ==DOS_EXTENDED_PARTITION || - part[i].sys_ind ==LINUX_EXTENDED_PARTITION ) { + part[i].sys_ind ==LINUX_EXTENDED_PARTITION || + part[i].sys_ind ==WIN98_EXTENDED_PARTITION ) {#ifdef DEBUG -debug ("pv_get_size -- DOS/LINUX_EXTENDED_PARTITION\n" ); +debug ("pv_get_size -- DOS/LINUX/W98_EXTENDED_PARTITION\n" );#endif extended_flag =1 ; offset = extended_offset + part[i].start_sect;
tools/lvm_user.h renamed from tools/lvm_user.h.make.orig +1 -1
@@ -42,7 +42,7 @@#include <features.h> #include <liblvm.h> -#include <linux/genhd.h> +/* #include <linux/genhd.h> */ #include <linux/major.h> #if ( __GLIBC__ >1 )