NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/57592: curses: aspell clears screen if no correction found
The following reply was made to PR lib/57592; it has been noted by GNATS.
From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/57592: curses: aspell clears screen if no correction found
Date: Sun, 10 Sep 2023 15:18:57 +0300
> configure:18548: c++ -o conftest -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/include -fno-exceptions -I/usr/include -I/usr/pkg/include -Wl,-zrelro -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib conftest.cpp -lcurses >&5
> ld: /tmp/cccBukDq.o: undefined reference to symbol 'tigetstr'
> ld: /usr/lib/libterminfo.so.2: error adding symbols: DSO missing from command line
[...]
> This patch for pkgsrc/textproc/aspell works around the problem:
> https://gist.github.com/rokuyama/d5ad1e9f323e3773dae9c35e272f18a5
libcurses.so lists libterminfo.so as NEEDED. I vaguely recall that
the new binutils are more strict about exposing such symbols to the
main program (that explicitly lists only -lcurses, but also refers a
symbol that curses brings in via its NEEDED list).
The dynamic linker knowledge is completely swapped out of my head, but
we need to arrange for -lcurses to make terminfo symbols available b/c
that's how x/open specifies it.
-uwe
Home |
Main Index |
Thread Index |
Old Index