[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, 21 Jul 2019 05:04:00 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
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.
Since that worked as expected with my OpenBSD 6.2 machine,
I'm left with the impression that someone changed one of the
tools or configurations to prevent that. It would be nice if
someone pointed out the change, so that it can be documented.
When I do test-compiles, I use those flags -- plus renaming
in some cases -- to build/install an ABI 5 copy into /usr/local/ncurses/,
and an ABI 6 into /usr/local/ (also a pthreads version). So I had
4 of my 6 builds working.
Since the renames work, I tried the "--with-extra-suffix" option,
e.g.,
configure --with-extra-suffix=5
That worked, but if you're attempting to upgrade an application
on an OpenBSD machine which it upgraded, that would run into the
problem that the soname doesn't match. (Most of my machines are
new installs, so I don't see that problem often). If I had to
do that, I'd make a script to override the soname in the makefiles.
--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature