On Tuesday June 27, [EMAIL PROTECTED] wrote:
>       Hello All ,  What change in Glibc mekes this necessary ?  Is there a
>       method available to include the getpwnam & getgrnam structures so that
>       full static build will work .  Tia ,  JimL
> 
> gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail 
> -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" 
> -DHAVE_STDINT_H -o sha1.o -c sha1.c
> gcc -static -o mdadm mdadm.o config.o mdstat.o  ReadMe.o util.o Manage.o 
> Assemble.o Build.o Create.o Detail.o Examine.o Grow.o Monitor.o dlink.o 
> Kill.o Query.o mdopen.o super0.o super1.o bitmap.o restripe.o sysfs.o sha1.o
> config.o(.text+0x8c4): In function `createline': 
> /home/archive/mdadm-2.5.2/config.c:341: warning: Using 'getgrnam' in 
> statically linked applications requires at runtime the shared libraries from 
> the glibc version used for linking
> config.o(.text+0x80b):/home/archive/mdadm-2.5.2/config.c:326: warning: Using 
> 'getpwnam' in statically linked applications requires at runtime the shared 
> libraries from the glibc version used for linking
> nroff -man mdadm.8 > mdadm.man

Are you running
  make LDFLAGS=-static mdadm
or something like that?  No, that won't work any more.
Use
   make mdadm.static

that will get you a good static binary by included 'pwgr.o'.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to