bug-ncurses
[Top][All Lists]
Advanced

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

Re: failure to compile


From: Thomas Dickey
Subject: Re: failure to compile
Date: Sun, 13 Mar 2022 05:36:58 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Sun, Mar 13, 2022 at 04:07:26AM -0400, Carl Hansen wrote:
> On Sat, Mar 12, 2022 at 06:04:52PM -0500, Thomas Dickey wrote:
> > On Mon, Mar 07, 2022 at 12:45:51AM -0500, Carl Hansen wrote:
> > > On Sat, Mar 05, 2022 at 08:03:10PM -0500, Thomas Dickey wrote:
> > > > On Sat, Mar 05, 2022 at 05:47:19PM -0500, Thomas Dickey wrote:
> > > > > On Sat, Mar 05, 2022 at 09:08:39AM -0500, Thomas Dickey wrote:
> > > > > > On Sat, Mar 05, 2022 at 03:12:13AM -0500, Carl Hansen wrote:
> > > > > > > ncurses-6.3-20220226
> > > > > > > 
> > > 
> > > snip
> 
> 
> 
> > >> > 
> > > I am using Fedora 34 gcc 12.01 
> > 
> > I have 12.0.1 on my Fedora Rawhide machine, and see a discrepancy between
> > my successful build and yours:
> > 
> > checking whether gnatgcc accepts -g... yes
> > checking version of gnatgcc... 11.2.1
> >                                ^^^^^^
> > 
> > (mine shows this as 12.0.1).
> 
> That solved the compile problem, hadn't made the ln -s gcc gnatgcc,
> picked up the old one in the PATH
> 
> There is another problem during installation, for that version and the 
> current 6.3-20220312:
> tic 
> 
> make[2]: Entering directory 
> '/users/chansen/build/gsrc/pkg/gnu/ncurses/work/ncursesw-6.3-20220312-build/misc'
> mkdir -p 
> /users/chansen/gsrc/packages/ncurses-6.3-20220312-DEST/users/chansen/gsrc/share/tabset
> DESTDIR= \
> prefix=/users/chansen/gsrc/packages/ncurses-6.3-20220312-DEST/users/chansen/gsrc
>  \
> exec_prefix=/users/chansen/gsrc/packages/ncurses-6.3-20220312-DEST/users/chansen/gsrc
>  \
> bindir=/users/chansen/gsrc/packages/ncurses-6.3-20220312-DEST/users/chansen/gsrc/bin
>  \
> top_srcdir=../../ncurses-6.3-20220312 \
> srcdir=../../ncurses-6.3-20220312/misc \
> datadir=/users/chansen/gsrc/packages/ncurses-6.3-20220312-DEST/users/chansen/gsrc/share
>  \
> ticdir=/users/chansen/gsrc/share/terminfo \
> source=terminfo.tmp \
> cross_compiling=no \
> /bin/sh ./run_tic.sh
> ** Building terminfo database, please wait...
> Running sh ../../ncurses-6.3-20220312/misc/shlib tic to install 
> /users/chansen/gsrc/share/terminfo ...
> 
>       You may see messages regarding extended capabilities, e.g., AX.
>       These are extended terminal capabilities which are compiled
>       using
>               tic -x
>       If you have ncurses 4.2 applications, you should read the INSTALL
>       document, and install the terminfo without the -x option.
> 
> tic: symbol lookup error: tic: undefined symbol: _nc_disable_period
> tic: symbol lookup error: tic: undefined symbol: _nc_disable_period
> ? tic could not build /users/chansen/gsrc/share/terminfo

That's because it's attempting to run the build-tree's version of tic,
but loading the system copy of ncurses libraries.  The newer tic uses
additional symbols not found in the system's ncurses libraries.

You can work around that either by using the rpath option (e.g.,
--enable-rpath during the configure), or by setting LD_LIBRARY_PATH
in the environment used for this install.

Since you're not installing as root, that latter should be easy.

Something like this would work:
LD_LIBRARY_PATH=/users/chansen/build/gsrc/pkg/gnu/ncurses/work/ncursesw-6.3-20220312-build/lib
 make

But if you're planning to _use_ the programs in ~/gsrc/, something more
persistent is needed.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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