linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm 2.0 and 2.1 compile error
@ 2005-09-23 17:03 Norman Schmidt
  0 siblings, 0 replies; 5+ messages in thread
From: Norman Schmidt @ 2005-09-23 17:03 UTC (permalink / raw)
  To: linux-raid

Hello!

I am trying to compile the mdadm source (from 
http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-2.x.tgz) under SuSE 
9.3 (64bit) on an opteron system.

On "make" I get the following fatal error for both 2.0 and 2.1:

bitmap.c: In function `bitmap_fd_read':
bitmap.c:130: warning: int format, different type arg (arg 3)
make: *** [bitmap.o] Error 1

What is the problem and how can I fix it?

Tia, Norman Schmidt.
-- 
Norman Schmidt          Institut fuer Physikal. u. Theoret. Chemie
Dipl.-Chem. Univ.       Friedrich-Alexander-Universitaet
schmidt@naa.net         Erlangen-Nuernberg
                         IT-Systembetreuer Physikalische Chemie

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

* mdadm 2.0 and 2.1 compile error
@ 2005-09-26 20:20 Stephan van Hienen
  2005-09-27  7:51 ` Neil Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Stephan van Hienen @ 2005-09-26 20:20 UTC (permalink / raw)
  To: linux-raid

I am trying to compile mdadm 2.x (currently running version 1.12)

On "make" I get the following fatal error for both 2.0 and 2.1:

In file included from super0.c:31:
/usr/include/asm/byteorder.h:6:2: #warning using private kernel header; 
include <endian.h> instead!
make: *** [super0.o] Error 1

any idea ?

system is tao 1.0 (based on rhel3) with 2.6.13.2 kernel source (also tried 
2.6.11.7 source)

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

* Re: mdadm 2.0 and 2.1 compile error
  2005-09-26 20:20 mdadm 2.0 and 2.1 compile error Stephan van Hienen
@ 2005-09-27  7:51 ` Neil Brown
  2005-09-28 13:46   ` Jeff Hanson
  2005-10-24 18:48   ` H. Peter Anvin
  0 siblings, 2 replies; 5+ messages in thread
From: Neil Brown @ 2005-09-27  7:51 UTC (permalink / raw)
  To: Stephan van Hienen; +Cc: linux-raid

On Monday September 26, raid@a2000.nu wrote:
> I am trying to compile mdadm 2.x (currently running version 1.12)
> 
> On "make" I get the following fatal error for both 2.0 and 2.1:
> 
> In file included from super0.c:31:
> /usr/include/asm/byteorder.h:6:2: #warning using private kernel header; 
> include <endian.h> instead!
> make: *** [super0.o] Error 1
> 
> any idea ?

This means your distro is crazy.  endian.h does not contain the
defines that I need from byteorder.h.
Just remove the '-Werror' from the Makefile and try again.

NeilBrown

> 
> system is tao 1.0 (based on rhel3) with 2.6.13.2 kernel source (also tried 
> 2.6.11.7 source)
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: mdadm 2.0 and 2.1 compile error
  2005-09-27  7:51 ` Neil Brown
@ 2005-09-28 13:46   ` Jeff Hanson
  2005-10-24 18:48   ` H. Peter Anvin
  1 sibling, 0 replies; 5+ messages in thread
From: Jeff Hanson @ 2005-09-28 13:46 UTC (permalink / raw)
  To: linux-raid

On Tue, 27 Sep 2005 09:51:11 +0200, Neil Brown wrote:

> On Monday September 26, raid@a2000.nu wrote:
>> I am trying to compile mdadm 2.x (currently running version 1.12)
>> 
>> On "make" I get the following fatal error for both 2.0 and 2.1:
>> 
>> In file included from super0.c:31:
>> /usr/include/asm/byteorder.h:6:2: #warning using private kernel header; 
>> include <endian.h> instead!
>> make: *** [super0.o] Error 1
>> 
>> any idea ?
> 
> This means your distro is crazy.  endian.h does not contain the
> defines that I need from byteorder.h.
> Just remove the '-Werror' from the Makefile and try again.

That resolved it for me.  Distro is RHEL 4 in my testing.
-- 
-----------------------------------------------------------------------
Jeff Hanson - jhanson@sgi.com - Field Technical Analyst

You can choose a ready guide in some celestial voice. 
If you choose not to decide, you still have made a choice. 
You can choose from phantom fears and kindness that can kill; 
I will choose a path that's clear 
I will choose freewill. - Lee/Lifeson/Peart



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

* Re: mdadm 2.0 and 2.1 compile error
  2005-09-27  7:51 ` Neil Brown
  2005-09-28 13:46   ` Jeff Hanson
@ 2005-10-24 18:48   ` H. Peter Anvin
  1 sibling, 0 replies; 5+ messages in thread
From: H. Peter Anvin @ 2005-10-24 18:48 UTC (permalink / raw)
  To: linux-raid

Followup to:  <17208.63983.493938.764444@cse.unsw.edu.au>
By author:    Neil Brown <neilb@suse.de>
In newsgroup: linux.dev.raid
> 
> This means your distro is crazy.  endian.h does not contain the
> defines that I need from byteorder.h.
> Just remove the '-Werror' from the Makefile and try again.
> 
> NeilBrown
> 

-Werror is (arguably) great for local debugging, but it's a bad idea
to use for distributed software.

	-hpa

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

end of thread, other threads:[~2005-10-24 18:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-26 20:20 mdadm 2.0 and 2.1 compile error Stephan van Hienen
2005-09-27  7:51 ` Neil Brown
2005-09-28 13:46   ` Jeff Hanson
2005-10-24 18:48   ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2005-09-23 17:03 Norman Schmidt

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).