bash problem

Gregory Davis GregDavis at
Sat Nov 9 19:29:06 PST 2002

Tan Siong Hua wrote:

> when copiling static bash of lfs 4.0 under Mandrake 9.0, I got this error.
> rm -f shell.o
> gcc -s  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"'
> -DCONF_OSTYPE='"linux-gn u"' -DCONF_MACHTYPE='"i686-pc-linux-gnu"'
> 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

This has been answered before, but probably because of the lfs server 
craziness, the archived threads have dissappeared off the face of the 
earth.  The answer is: install the glibc-devel package, I don't remember 
the version.  I had the same problem; that fixed it.

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