Hi there.
Okay, oh great gurus. Just for fun I'm running through LinuxFromScratch to
see what I can learn. One of the first things they want me to do is build a
new copy of Bash on the mount point I created for my experiment.
What follows is the attempt to make the package:
-------------------------
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"linux-gnu"'
-DC
ONF_MACHTYPE='"i686-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DSHELL
-DHAVE_CONFIG_H
-I. -I. -I./include -I./lib -o mksyntax ./mksyntax.c
rm -f syntax.c
./mksyntax -o syntax.c
/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"'
-DC
ONF_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"'
-DC
ONF_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(1)-release (i686-pc-linux-gnu)
* *
***********************************************************
rm -f shell.o
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"linux-gnu"'
-DC ONF_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:752: previous declaration of `gethostname'
externs.h:196: conflicting types for `strncasecmp'
/usr/include/string.h:292: previous declaration of `strncasecmp'
make: *** [shell.o] Error 1
-----------------
Now, any error of 1 tends to make me nervous. In the above case I seem to
have header files conflicting with one another. So....which one do I modify
to get this to work? My bet that I either comment out the problem children
in the Bash source or modify them cause I'm sure as hell not going to fsck my
host system (MDK 9.1).
Any help would be most appreciated. Even from Stephen. :-)
ttfn
John
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com