Question about compiling Bash under Mandrake 9.0
I've decided to see if I can get LFS up and running, just to learn more about Linux. I've been using Mandrake for about 6 months now, and I've gotten pretty familiar with the CLI.
I really have 2 problems.
1) The LFS 4.0 book recommends that I need to have libcurses.a and libncurses.a in order to compile bash. I've cheched, and I have neither file, furthermore, they aren't on any of the 3 CD's either. I've looked around for RPM's, and I've noticed that the rpm's come with libcrses.so and libncurses.so, which I DO have on my machine.
Can anyone explain to me where to get the needed files, or if the *.so files are actually what I need? I really don't know anything about the Ncurses library, or even what it's used for.
2) I went ahead and tried to compile bash, just to see what happened, and it finishes with this error.
Note: I'm using gcc version 3.2, the default with mandrake 9.0
In file included from shell.h:41,
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
I know what the functions are, but I'm not sure how to get around it since I'm not familiar with the software, and I'm *really* unsure of myself in Linux.
Any help would be greatly appreciated.