Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
I am no expert but those errors shouldn't be happening if you are compiling bash from Chap 5 in a static environment. It appears to me that it's looking in / when it shouldn't even matter what's in your / partition. Make sure you typed the commands exactly as they are shown from the book, and that you are doing this as an unpriviledged user. Basically I am saying follow the book word for word, and you shouldn't have too many problems.