All of lore.kernel.org
 help / color / mirror / Atom feed
* Compiler mdadm-3.2.5 error
@ 2012-05-21  1:51 majianpeng
  2012-05-21  2:09 ` NeilBrown
  0 siblings, 1 reply; 3+ messages in thread
From: majianpeng @ 2012-05-21  1:51 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

Hi neil:
	I git-pull mdadm and compiled but met error like this:

In file included from super0.c:27:
sha1.h:29:22: error: ansidecl.h: No such file or directory
make: *** [super0.o] Error 1
 				
uname -a
Linux nfs-server.example.com 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)


I remove the ansidecl.h in shal.h.Then compile success.
In shal.h:
#include "ansidecl.h"
So the ansidecl.h may in mdadm, not a system head-file.
But I rewrite it:
 #include <ansidecl.h>
But compiled error too.


--------------
majianpeng
2012-05-21


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

* Re: Compiler mdadm-3.2.5 error
  2012-05-21  1:51 Compiler mdadm-3.2.5 error majianpeng
@ 2012-05-21  2:09 ` NeilBrown
  2012-05-21  2:33   ` majianpeng
  0 siblings, 1 reply; 3+ messages in thread
From: NeilBrown @ 2012-05-21  2:09 UTC (permalink / raw)
  To: majianpeng; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]

On Mon, 21 May 2012 09:51:19 +0800 "majianpeng" <majianpeng@gmail.com> wrote:

> Hi neil:
> 	I git-pull mdadm and compiled but met error like this:
> 
> In file included from super0.c:27:
> sha1.h:29:22: error: ansidecl.h: No such file or directory
> make: *** [super0.o] Error 1

You need to install binutils-dev.  It provides ansidecl.h

Though maybe I could remove the #include, as you say it doesn't seem to be
needed.

NeilBrown

>  				
> uname -a
> Linux nfs-server.example.com 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
> 
> gcc -v
> Using built-in specs.
> Target: x86_64-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
> Thread model: posix
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
> 
> 
> I remove the ansidecl.h in shal.h.Then compile success.
> In shal.h:
> #include "ansidecl.h"
> So the ansidecl.h may in mdadm, not a system head-file.
> But I rewrite it:
>  #include <ansidecl.h>
> But compiled error too.
> 
> 
> --------------
> majianpeng
> 2012-05-21


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

* Re: Re: Compiler mdadm-3.2.5 error
  2012-05-21  2:09 ` NeilBrown
@ 2012-05-21  2:33   ` majianpeng
  0 siblings, 0 replies; 3+ messages in thread
From: majianpeng @ 2012-05-21  2:33 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-raid

Thanks, I do it as you said. Compile success.

------------------				 
majianpeng
2012-05-21

-------------------------------------------------------------
发件人:NeilBrown
发送日期:2012-05-21 10:09:17
收件人:majianpeng
抄送:linux-raid
主题:Re: Compiler mdadm-3.2.5 error

On Mon, 21 May 2012 09:51:19 +0800 "majianpeng" <majianpeng@gmail.com> wrote:

> Hi neil:
> 	I git-pull mdadm and compiled but met error like this:
> 
> In file included from super0.c:27:
> sha1.h:29:22: error: ansidecl.h: No such file or directory
> make: *** [super0.o] Error 1

You need to install binutils-dev.  It provides ansidecl.h

Though maybe I could remove the #include, as you say it doesn't seem to be
needed.

NeilBrown

>  				
> uname -a
> Linux nfs-server.example.com 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
> 
> gcc -v
> Using built-in specs.
> Target: x86_64-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
> Thread model: posix
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
> 
> 
> I remove the ansidecl.h in shal.h.Then compile success.
> In shal.h:
> #include "ansidecl.h"
> So the ansidecl.h may in mdadm, not a system head-file.
> But I rewrite it:
>  #include <ansidecl.h>
> But compiled error too.
> 
> 
> --------------
> majianpeng
> 2012-05-21


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

end of thread, other threads:[~2012-05-21  2:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-21  1:51 Compiler mdadm-3.2.5 error majianpeng
2012-05-21  2:09 ` NeilBrown
2012-05-21  2:33   ` majianpeng

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.