From: Luca Berra <bluca@comedia.it>
To: Heinz Mauelshagen <mauelsha@ez-darmstadt.telekom.de>,
gnicolao@my-deja.com
Cc: linux-lvm@msede.com
Subject: Re: [linux-lvm] Compiling LVM 0.6 on Redhat 6.0
Date: Thu, 24 Jun 1999 19:22:41 +0200 [thread overview]
Message-ID: <19990624192241.B18126@colombina.comedia.it> (raw)
In-Reply-To: <199906231110.AA22585@mailgate1b.telekom.de>; from Heinz Mauelshagen on Wed, Jun 23, 1999 at 01:09:00PM +0000
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
On Wed, Jun 23, 1999 at 01:09:00PM +0000, Heinz Mauelshagen wrote:
>
> 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
--
Luca Berra -- bluca@comedia.it
Communications Media & Services S.r.l.
[-- Attachment #2: lvm-0.6.glibc.patch --]
[-- Type: text/plain, Size: 2255 bytes --]
--- 0.6/tools/lib/liblvm.h.make.orig Fri Feb 26 01:46:28 1999
+++ 0.6/tools/lib/liblvm.h Thu Jun 24 08:08:26 1999
@@ -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>
--- 0.6/tools/lib/pv_get_size.c.make.orig Fri Feb 26 01:46:28 1999
+++ 0.6/tools/lib/pv_get_size.c Thu Jun 24 08:05:16 1999
@@ -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;
--- 0.6/tools/lvm_user.h.make.orig Thu Jun 24 08:09:49 1999
+++ 0.6/tools/lvm_user.h Thu Jun 24 08:09:57 1999
@@ -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)
prev parent reply other threads:[~1999-06-24 17:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-23 0:22 [linux-lvm] Compiling LVM 0.6 on Redhat 6.0 George Nicolaou
1999-06-23 11:09 ` Heinz Mauelshagen
1999-06-24 17:22 ` Luca Berra [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19990624192241.B18126@colombina.comedia.it \
--to=bluca@comedia.it \
--cc=gnicolao@my-deja.com \
--cc=linux-lvm@msede.com \
--cc=mauelsha@ez-darmstadt.telekom.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.