Funny, mdadm builds nicely under SuSE. Well, reading the thread you've found
it seems that this is a problem of the used distro. Quoting freely: it is due
to some silliness of redhat... As a fix I'd cut out the -Werror.

Erich

On Monday 26 December 2005 04:00, Bernard Li wrote:
> Having problems building with trunk:
>  
> make[1]: Entering directory 
> `/usr/src/redhat/BUILD/systemimager-3.7.0/src/mdadm-2.2'
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o mdadm.o mdadm.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o config.o config.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o mdstat.o mdstat.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o ReadMe.o ReadMe.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o util.o util.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Manage.o Manage.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Assemble.o Assemble.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Build.o Build.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Create.o Create.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Detail.o Detail.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Examine.o Examine.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Grow.o Grow.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Monitor.o Monitor.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o dlink.o dlink.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Kill.o Kill.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Query.o Query.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o mdopen.o mdopen.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o super0.o super0.c
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb 
> -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o super1.o super1.c
> In file included from super0.c:31:
> /usr/include/asm/byteorder.h:6:2: #warning using private kernel header; 
> include <endian.h> instead!
> In file included from super1.c:32:
> /usr/include/asm/byteorder.h:6:2: #warning using private kernel header; 
> include <endian.h> instead!
> make[1]: *** [super0.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: *** [super1.o] Error 1
>  
> Relevant discussions:
>  
> http://www.issociate.de/board/post/282642/mdadm_source_rpm_build_error_+_command-line_parsing_error_+_resyncreporting_problem.html
>  
> Tried to build on RHEL4u2 x86.
>  
> Cheers,
>  
> Bernard



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to