LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Question about compiling Bash under Mandrake 9.0 (https://www.linuxquestions.org/questions/linux-from-scratch-13/question-about-compiling-bash-under-mandrake-9-0-a-34429/)

Braveo 11-02-2002 01:42 PM

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.

Mik 11-03-2002 05:30 AM

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

safrout 11-03-2002 07:57 AM

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

they r called

libncurses5-devel

enjoy ur lfs

MasterC 11-03-2002 11:38 AM

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

Theely 12-04-2002 09:30 PM

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

Theely 12-04-2002 09:35 PM

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?

luvmyzaurus 12-19-2002 04:59 PM

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.

luvmyzaurus 12-19-2002 05:38 PM

Anyone have an answer to this problem? I get the same message.

olivergarside 02-11-2003 09:30 AM

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

Punklib.a 02-16-2003 06:37 PM

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 08:56 AM.