bash compile error

Charles Spirz charless at
Thu Nov 7 07:27:52 PST 2002

"Tan Siong Hua" <xianghua at> wrote in
news:aqdohr$l94$1 at 

> when compiling static bash in lfs 4.0 under mandrake 9. I get this
> error. 
> rm -f shell.o
> gcc -s  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"'
> -DCONF_OSTYPE='"linux-gn u"' -DCONF_MACHTYPE='"i686-pc-linux-gnu"'
> -DCONF_VENDOR='"pc"' -DSHELL -DHAV E_CONFIG_H   -I.  -I. -I./include
> -I./lib -g -O2 -c shell.c In file included from shell.h:41,
>                  from shell.c:48:
> externs.h:163: conflicting types for `gethostname'
> /usr/include/unistd.h:734: previous declaration of `gethostname'
> externs.h:196: conflicting types for `strncasecmp'
> /usr/include/string.h:277: previous declaration of `strncasecmp'
> make: *** [shell.o] Error 1
You need to install glibc-static-devel-2.2.5-16mdk.i586.rpm in order to 
compile bash on Mandrake 9.0. It is not installed by default.
Unsubscribe: send email to listar at
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list