linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvm on alpha/sparc
@ 2001-05-01 23:28 Arkadiusz Miskiewicz
  2001-05-02  7:35 ` Patrick Caulfield
  2001-05-03 11:00 ` Patrick Caulfield
  0 siblings, 2 replies; 4+ messages in thread
From: Arkadiusz Miskiewicz @ 2001-05-01 23:28 UTC (permalink / raw)
  To: linux-lvm

Small fix for alpha was required:
diff -urN 0.9.1_beta7.org/tools/lib/liblvm.h 0.9.1_beta7/tools/lib/liblvm.h
--- 0.9.1_beta7.org/tools/lib/liblvm.h  Wed May  2 01:01:31 2001
+++ 0.9.1_beta7/tools/lib/liblvm.h      Wed May  2 01:02:54 2001
@@ -228,7 +228,11 @@
 int    pv_get_index_by_kdev_t ( vg_t *, kdev_t);
 int    pv_get_index_by_name ( vg_t *, char *);
 kdev_t pv_get_kdev_t_by_number ( vg_t *, int);
+#ifndef        __alpha__
 int    pv_get_size ( char *, struct partition *);
+#else
+long   pv_get_size ( char *, struct partition *);
+#endif
 int    pv_move_pes ( vg_t*, char*, size_t, char**, int, int,
                      long*, long*, long*, int, int);
 int    pv_move_pe ( vg_t*, char*, size_t, long, long, long, long,

but on sparc there is problem with linux/string.h which is breaking compilation ;-(
Workaround - avoid inclusion of linux/string.h:

diff -urN 0.9.1_beta7.org/tools/lib/liblvm.h 0.9.1_beta7/tools/lib/liblvm.h
--- 0.9.1_beta7.org/tools/lib/liblvm.h  Wed May  2 01:01:31 2001
+++ 0.9.1_beta7/tools/lib/liblvm.h      Wed May  2 01:07:28 2001
@@ -43,6 +43,8 @@
 #ifndef _LIBLVM_H_INCLUDE
 #define _LIBLVM_H_INCLUDE
 
+#define _LINUX_STRING_H_ 1 /* ugly hack - avoid inclusion of <linux/string.h> */
+
 #define        LVM_LIB_IOP_VERSION     10
 
 #include <features.h>

ps. I'm not subscribed to devel list, so I'm posting here.
-- 
Arkadiusz Mi�kiewicz, AM2-6BONE    [ PLD GNU/Linux IPv6 ]
http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/   [ enabled ]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] lvm on alpha/sparc
  2001-05-01 23:28 [linux-lvm] lvm on alpha/sparc Arkadiusz Miskiewicz
@ 2001-05-02  7:35 ` Patrick Caulfield
  2001-05-06 14:55   ` Arkadiusz Miskiewicz
  2001-05-03 11:00 ` Patrick Caulfield
  1 sibling, 1 reply; 4+ messages in thread
From: Patrick Caulfield @ 2001-05-02  7:35 UTC (permalink / raw)
  To: linux-lvm

On Wed, May 02, 2001 at 01:28:51AM +0200, Arkadiusz Miskiewicz wrote:
> 
> but on sparc there is problem with linux/string.h which is breaking compilation ;-(
> Workaround - avoid inclusion of linux/string.h:

Hmmm funny that. There was an ifdef __sparc__ in there originally which I
removed because it broke the ultraSPARC compilation. Then I wen to compile for
my 32bit SPARCstartion IPC and it was needed again :-(

Just for reference - what kind of SPARC system is it you are using ?

patrick

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] lvm on alpha/sparc
  2001-05-01 23:28 [linux-lvm] lvm on alpha/sparc Arkadiusz Miskiewicz
  2001-05-02  7:35 ` Patrick Caulfield
@ 2001-05-03 11:00 ` Patrick Caulfield
  1 sibling, 0 replies; 4+ messages in thread
From: Patrick Caulfield @ 2001-05-03 11:00 UTC (permalink / raw)
  To: linux-lvm

On Wed, May 02, 2001 at 01:28:51AM +0200, Arkadiusz Miskiewicz wrote:
> Small fix for alpha was required:

I've integrated the alpha fix but it all compiles flawlessly on my Debian 2.2
SPARC machine.

patrick

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] lvm on alpha/sparc
  2001-05-02  7:35 ` Patrick Caulfield
@ 2001-05-06 14:55   ` Arkadiusz Miskiewicz
  0 siblings, 0 replies; 4+ messages in thread
From: Arkadiusz Miskiewicz @ 2001-05-06 14:55 UTC (permalink / raw)
  To: linux-lvm

On/Dnia Wed, May 02, 2001 at 08:35:11AM +0100, Patrick Caulfield wrote/napisa�(a)
> Hmmm funny that. There was an ifdef __sparc__ in there originally which I
> removed because it broke the ultraSPARC compilation. Then I wen to compile for
> my 32bit SPARCstartion IPC and it was needed again :-(

> Just for reference - what kind of SPARC system is it you are using ?

cpu		: TI UltraSparc I   (SpitFire)
fpu		: UltraSparc I integrated FPU
promlib		: Version 3 Revision 11
prom		: 3.11.1
type		: sun4u

kernel headers 2.2.18

> patrick

-- 
Arkadiusz Mi�kiewicz, AM2-6BONE    [ PLD GNU/Linux IPv6 ]
http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/   [ enabled ]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-06 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-01 23:28 [linux-lvm] lvm on alpha/sparc Arkadiusz Miskiewicz
2001-05-02  7:35 ` Patrick Caulfield
2001-05-06 14:55   ` Arkadiusz Miskiewicz
2001-05-03 11:00 ` Patrick Caulfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).