Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 11-02-2002, 01:42 PM   #1
LQ Newbie
Registered: Nov 2002
Posts: 1

Rep: Reputation: 0
Question 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 and, 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.
Old 11-03-2002, 05:30 AM   #2
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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
Old 11-03-2002, 07:57 AM   #3
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Rep: Reputation: 30

they r availble with mandrake 9 ( since i am suing it )

they r called


enjoy ur lfs
Old 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: Reputation: 69
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.

Old 12-04-2002, 09:30 PM   #5
LQ Newbie
Registered: Dec 2002
Location: Minnesota
Distribution: Mandrake 10.1
Posts: 2

Rep: Reputation: 0
Thumbs down 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,
Old 12-04-2002, 09:35 PM   #6
LQ Newbie
Registered: Dec 2002
Location: Minnesota
Distribution: Mandrake 10.1
Posts: 2

Rep: Reputation: 0
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?
Old 12-19-2002, 04:59 PM   #7
LQ Newbie
Registered: Dec 2002
Posts: 2

Rep: Reputation: 0
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 to figure out which rpm has a file I'm missing. Very helpful for me.
Old 12-19-2002, 05:38 PM   #8
LQ Newbie
Registered: Dec 2002
Posts: 2

Rep: Reputation: 0
Anyone have an answer to this problem? I get the same message.
Old 02-11-2003, 09:30 AM   #9
LQ Newbie
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0

I had the same problem. Running on Mandrake and LFS. I had to link the file (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

Old 02-16-2003, 06:37 PM   #10
LQ Newbie
Registered: Feb 2003
Distribution: MDK slack freeBSD
Posts: 1

Rep: Reputation: 0
Talking bash compile static error LFS

you need to install Glibc_static-deval. I had the same problem and it fixed it straight up.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while compiling bash-3.0 bsdpowa Linux - Software 1 07-05-2005 03:33 PM
compiling bash 3.0 results in a loop bucovaina78 Linux - Software 2 05-26-2005 04:04 AM
Problem compiling Bash barry505 Linux From Scratch 3 11-03-2003 07:37 PM
LFS bash not compiling ksnash Programming 2 08-22-2003 03:22 AM
Compiling Kernel (specifying Bash path) ugenn Linux - Software 5 04-02-2003 12:38 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration