bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ncurses-5.5 misc/shlib bug?


From: Paul Novak
Subject: ncurses-5.5 misc/shlib bug?
Date: Thu, 11 Jan 2007 11:18:30 -0600

I'm building my first Linux From Scratch system.
I'm build the packages as login root with /root as the base,
and using DESTDIR=/install for package management reasons.
Because I'm building from scratch, I do not (yet) have
a /lib/libncursesw.so.5 library installed: it will be installed
when ncurses is installed.

For ncurses 5.5, the tarball is unpacked into /root/ncurses-5.5.
It compiles fine, but when I try to install it 
(running "make DESTDIR=/install install" while in the
/root/ncurses-5.5 directory), I get this error:

    tic: error while loading shared libraries: libncursesw.so.5: cannot open 
shared object file: No such file or directory

The librrary does exist in /root/ncurses-5.5/lib.

Here's the code from ncurses-5.5/misc/shlib that is used to set LD_LIBRARY_PATH:

    q=""
    for p in lib ../lib ../../lib ../../../lib
    do
        if test -d $p; then
            q=`cd $p; pwd`
            ................

Tic ends up running from /root/ncurses-5.5/misc/, so
    lib does not exist.
    ../lib does exist (root/ncurses-5.5/lib, where the library is located)
        ==========but the loop keeps running
    ../../lib does not exist
    ../../../lib does exist  (it's /lib, but libncursesw.so.5 isn't there yet)

and that means LD_LIBRARY_PATH gets set to /lib, not /root/ncurses-5.5/lib/

I think there should be a 'break' after the first valid lib directory is found,
like this:

    q=`cd $p; pwd` && break

But I'm not sure what the possible ramifications are, I'm just reporting 
possible problem.

This problem wouldn't occur if I were building in a lower directory (eg, 
root/build).
But it still seems like a problem with the shlib script.  I should be able to 
build
in /root if I want to, shouldn't I?

Kind Regards,
Paul Novak
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]