On 12/5/06, Ken Moffat <[EMAIL PROTECTED]> wrote:

 I'm beginning to think that something within your ncurses
installation is wrong (¡expletive! - that would mean Dan was right
and it is a clfs problem).  Please take a look at all the ncurses
files in /lib and /usr/lib (the date and time should help you identify
them), things like libform, libmenu, libncurses, libpanel, libmenu,
and libcurses.  Normally, each of these should have one static (.a)
archive in /usr/lib and a series of shared objects (.so*) which
ultimately point to a binary.  In a straight clfs install, the
pointing is all done by symlinks, so libncurses.so.5.5 should be the
binary, and it should be in /lib.  All the libcurses and libncurses
shared objects in /usr/lib should link to this through a series of
symlinks.

 For each of the libraries I listed, first verify that there is a
binary .so.5.5 in /usr/lib with a size in the tens or hundreds of
kilobytes (instead of a file with only a few bytes containing a link
instruction), then verify that each of the other .so* variants in /lib
and /usr/lib has an unbroken chain of symbolic links to get to the
binary.

Let's do a quicky sanity check and see what the toolchain has to say
about your libraries.

echo 'main(){}' > dummy.c
gcc -Wl,--verbose -lncurses -o dummy dummy.c &> dummy.log
grep ncurses dummy.log
file dummy

Here's what my fresh build just did.

root(chroot):/var/lib/dbnb/build# grep ncurses dummy.log2
attempt to open /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libncurses.so failed
attempt to open /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libncurses.a failed
attempt to open /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libncurses.so failed
attempt to open /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libncurses.a failed
attempt to open
/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libncurses.so succeeded
opened script file /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libncurses.so
opened script file /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libncurses.so
attempt to open /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libncursesw.so failed
attempt to open /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libncursesw.a failed
attempt to open /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libncursesw.so failed
attempt to open /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libncursesw.a failed
attempt to open
/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libncursesw.so succeeded
-lncursesw (/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libncursesw.so)
libdl.so.2 needed by
/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libncursesw.so

root(chroot):/var/lib/dbnb/build# file dummy2
dummy2: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.6.0, dynamically linked (uses shared libs), for GNU/Linux
2.6.0, not stripped

Obviously, yours may not be 32-bit. But you should get the shared
library by default.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to