Linux From Scratch This 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. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-02-2002, 01:42 PM
|
#1
|
LQ Newbie
Registered: Nov 2002
Posts: 1
Rep:
|
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,
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
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.
|
|
|
11-03-2002, 05:30 AM
|
#2
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
Those files should be in the ncurses-devel rpm's. At least they where in older versions of mandrake. I hope they haven't removed them in Mandrake 9
|
|
|
11-03-2002, 07:57 AM
|
#3
|
Member
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457
Rep:
|
hey
they r availble with mandrake 9 ( since i am suing it  )
they r called
libncurses5-devel
enjoy ur lfs
|
|
|
11-03-2002, 11:38 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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.
Cool
|
|
|
12-04-2002, 09:30 PM
|
#5
|
LQ Newbie
Registered: Dec 2002
Location: Minnesota
Distribution: Mandrake 10.1
Posts: 2
Rep:
|
libncurses5-devel
I have Mandrake 9.0 and can't find libncurses5-devel on the cd 3. is it somewhere else? cuz stuff that needs ncurses-devel isn't working (when i try to install and the like)
thank you,
Theely
|
|
|
12-04-2002, 09:35 PM
|
#6
|
LQ Newbie
Registered: Dec 2002
Location: Minnesota
Distribution: Mandrake 10.1
Posts: 2
Rep:
|
ok nm, i found the libncurses, but it still doesn't work for ncurses-devel, i'm trying to install the kernel source and it says i still need ncurses-devel....what up?
|
|
|
12-19-2002, 04:59 PM
|
#7
|
LQ Newbie
Registered: Dec 2002
Posts: 2
Rep:
|
In Mandrake 9.0 I have "/usr/lib/libncurses.a". The LFS 4.0 book says that if libcurses.a is missing, just create a symlink to libncurses.a (ln -s /usr/lib/libncurses.a /usr/lib/libcurses.a).
FYI - I like to use http://rpmfind.net to figure out which rpm has a file I'm missing. Very helpful for me.
|
|
|
12-19-2002, 05:38 PM
|
#8
|
LQ Newbie
Registered: Dec 2002
Posts: 2
Rep:
|
Anyone have an answer to this problem? I get the same message.
|
|
|
02-11-2003, 09:30 AM
|
#9
|
LQ Newbie
Registered: Feb 2003
Posts: 1
Rep:
|
I had the same problem. Running on Mandrake and LFS. I had to link the file libncurses.so.5 (installed from the ncurses-dev) to libncurses.a.
I also had the exact same compile error. I got round this by
./configure --enable-static-link --prefix=$LFS/static --with-curses
then doing make and make install seperatly. This thern gets you the $LFS/static/bin info and man dirs
hope this helps
Oliver
|
|
|
02-16-2003, 06:37 PM
|
#10
|
LQ Newbie
Registered: Feb 2003
Distribution: MDK slack freeBSD
Posts: 1
Rep:
|
bash compile static error LFS
you need to install Glibc_static-deval. I had the same problem and it fixed it straight up.
|
|
|
All times are GMT -5. The time now is 02:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|