Can't make bash.

GWright geoffwright at
Wed Oct 16 20:05:29 PDT 2002

LFS looks like a great project and I am just too excited to get going on it.

After untarring/unzipping (tar xvjf) bash2.05a I run ./configure with the 
flags the book mentions (see below...) then I try to run make and it bombs 
out with an error about "conflicting types for `gethostname'" (see below for 
more detail...). Has anyone seen something similar to this?

I installed binutils and that seemed to work fine...curious about bash, 

doc: 4.0-rc1
packages: lfs-packages-4.0-rc1.tar
base distro: Mandrake 9.0 2.4.19-16mdk

/mnt/lfs is mounted on /dev/hdb7

directory structure looks like:

$LFS is set to /mnt/lfs

[lfs at linux bash-2.05a]$ ./configure --enable-static-link --prefix=$LFS/static 

<no problems here>

lfs at linux bash-2.05a]$ make


<some text which looks fine...then,>
gcc -s  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"' 
-DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"i686-pc-linux-gnu"' 
-DCONF_VENDOR='"pc"' -DSHELL -DHAVE_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

some contents in /usr/lib:
lrwxrwxrwx    1 root           12 Oct 14 01:32 /usr/lib/libcurses.a -> 
lrwxrwxrwx    1 root           17 Oct 14 01:30 /usr/lib/ ->*

[lfs at linux bash-2.05a]$ ls -lag /usr/lib/libncurses*
-rwxr-xr-x    1 root       116378 Aug 10 13:08 /usr/lib/libncurses++.a*
-rw-r--r--    1 root       421966 Aug 10 13:08 /usr/lib/libncurses.a
lrwxrwxrwx    1 root           27 Oct 14 01:30 /usr/lib/ -> 
lrwxr-xr-x    1 root           27 Oct 12 11:17 /usr/lib/ -> 
lrwxr-xr-x    1 root           27 Oct 12 11:17 /usr/lib/ -> 

Thanks in advance for any suggestions...
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