[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 12:36:53 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Sun, Jul 28, 2019 at 08:47:12AM -0400, Thomas Dickey wrote:
> On Sun, Jul 28, 2019 at 08:39:44AM -0400, Thomas Dickey wrote:
> > 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
>
> e.g.,
> make libs
> sudo make install.libs
>
> updating ldconfig can be done before or after: it's only the program
> linkages which are affected by this bug.
hmm - that worked for me in one case, but not another (back to study).
--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature