[Top][All Lists]

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

Re: Compiling ncurses-6.1 on OpenBSD

From: Thomas Dickey
Subject: Re: Compiling ncurses-6.1 on OpenBSD
Date: Sun, 28 Jul 2019 08:39:44 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Sun, Jul 21, 2019 at 05:04:00AM -0400, Thomas Dickey wrote:
> On Tue, Jul 16, 2019 at 04:18:40PM +0900, Robert Smith wrote:
> > Dear Thomas,
> > 
> > I did just try compiling with the following configure options:
> > 
> > root@test-op01:/usr/src/ncurses-6.1-20190706# RPATH_LIST=../lib:$prefix/lib 
> > ./configure --prefix=/opt/test --with-shared --enable-widec 
> > --with-cxx-shared --without-progs --enable-broken_linkergrep 
> > --enable-getcap --enable-ext-colors --enable-weak-symbols --enable-rpath
> > 
> > $prefix is our /opt/test  location with all our external libraries, 
> > although ncurses does not depend on any of those, another reason I love 
> > ncurses.
> > 
> > I kept ../lib so that while in test directory the library path would be the 
> > correct location to ncursesw.so*
> I investigated this and found that none of the documented loader flags
> or environment variables had any effect on the loader's ignoring the
> libncurses.so.5.9 in ../lib versus choosing the one in /usr/lib.

Revisiting this, and examining the results from the --verbose option
of ld and seeing what files were used during a build, I found that
the loader now ignores any directory which is not in the ldconfig.

You can work around this defect in OpenBSD by first installing the
shared libraries, and ensuring that the directory in which they are
installed is known to ldconfig.  Quoting from the ldconfig manual page

     ldconfig is typically run as part of the boot sequence.  In addition to
     the built-in system directories, directories containing shared libraries
     may be specified via the shlib_dirs variable in /etc/rc.conf.local.  See
     rc.conf(8) for further information.

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: PGP signature

reply via email to

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