Problems while making bash static

Florian Lindner Florian.Lindner at xgm.de
Sun Nov 10 11:08:18 PST 2002


Hi,
I'm trying to build bash static, following the directions of the book, but 
using the most recent version (b compared to a).
./configure --options is goiing withount trouble, but make:

[lfs at osiris bash-2.05b]$ make
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 -o mksyntax ./mksyntax.c
rm -f syntax.c
./mksyntax -o syntax.c
/bin/sh ./support/mkversion.sh -b -S . -s release -d 2.05b -o newversion.h \
&& mv newversion.h version.h
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 -c -o buildversion.o 
./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  -g -o bashversion 
./support/bashversion.c buildversion.o

          ***********************************************************
          *                                                         *
          * GNU bash, version 2.05b.0(6)-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  -O2 -march=athlon-tbird 
-fomit-frame-pointer -c shell.c
In file included from shell.h:42,
                 from shell.c:48:
externs.h:177: conflicting types for `gethostname'
/usr/include/unistd.h:734: previous declaration of `gethostname'
externs.h:213: conflicting types for `strncasecmp'
/usr/include/string.h:277: previous declaration of `strncasecmp'
make: *** [shell.o] Error 1

Thx,
Florian
-- 
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