bash compiling errors

tim pprins at virtual-cafe.com
Tue Oct 1 15:13:57 PDT 2002


When I try to compile bash in chapter 5, the configure script runs without 
errors, but when I try to run make, I get:

<snip>
/bin/sh ./support/mkversion.sh -b -S . -s release -d 2.05a -o newversion.h \
&& mv newversion.h version.h
rm -f version.o
gcc  -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 version.c
gcc  -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  -o bashversion 
./support/bashversion.c version.o

          ***********************************************************
          *                                                         *
          * GNU bash, version 2.05a.0(11)-release (i686-pc-linux-gnu)
          *                                                         *
          ***********************************************************
rm -f shell.o
gcc  -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
[lfs at testbox bash-2.05a]$



I am running Mandrake 9.0 RC2 with updates. Any help or ideas are greatly 
appreciated

Thanks
tim

------------------------------
"We like to think of ourselves as the Microsoft of the energy world" 
                    -- Kenneth Lay, former CEO of Enron
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list