xterm building fails - undefined reference to `tgetstr'

Thomas Dickey dickey at his.com
Thu Jul 30 01:23:12 UTC 2020


----- Original Message -----
| From: "Sreyan Chakravarty" <sreyan32 at gmail.com>
| To: "Thomas Dickey" <dickey at his.com>, "Thomas E. Dickey" <dickey at invisible-island.net>
| Sent: Wednesday, July 29, 2020 7:23:30 PM
| Subject: xterm building fails - undefined reference to `tgetstr'

| Hi,
| 
| 
| I am trying to build xterm with SiXel graphics support on Fedora 32.
| 
| 
| Configure and Make commands:
| 
| $ ./configure --enable-sixel --verbose
| 
| $ make

hmm - I thought I'd repaired that (overlooked, I guess).
The problem is that xterm's configure-script only looks for the termcap library
if it's a real termcap library (not terminfo's termcap-interface).

Someone reported that a few months ago, with FreeBSD.

You can work around this by pre-setting $LIBS

| Make fails with:
| 
| /usr/bin/ld: xtermcap.o: in function `loadTermcapStrings':
| /home/sreyan/Downloads/xterm-358/./xtermcap.c:249: undefined reference
| to `tgetstr'
| /usr/bin/ld: xtermcap.o: in function `get_termcap':
| /home/sreyan/Downloads/xterm-358/./xtermcap.c:511: undefined reference
| to `tgetent'
| /usr/bin/ld: xtermcap.o: in function `get_tcap_erase':
| /home/sreyan/Downloads/xterm-358/./xtermcap.c:559: undefined reference
| to `tgetstr'
| /usr/bin/ld: xtermcap.o: in function `set_termcap':
| /home/sreyan/Downloads/xterm-358/./xtermcap.c:617: undefined reference
| to `tgetent'
| collect2: error: ld returned 1 exit status
| make: *** [Makefile:196: xterm] Error 1
| 
| 
| I have installed all the ncurses related libraries from my repo:
| 
| $ dnf repoquery --installed ncurses-*:*
| 
| ncurses-0:6.1-15.20191109.fc32.x86_64
| ncurses-base-0:6.1-15.20191109.fc32.noarch
| ncurses-c++-libs-0:6.1-15.20191109.fc32.x86_64
| ncurses-compat-libs-0:6.1-15.20191109.fc32.x86_64
| ncurses-devel-0:6.1-15.20191109.fc32.x86_64
| ncurses-libs-0:6.1-15.20191109.fc32.x86_64
| 
| 
| I just cannot understand what else I need to do.
| 
| Why is this happening and how do I resolve this ?
| 
| Thanks.
| 
| --
| Regards,
| Sreyan

-- 
Thomas E. Dickey <dickey at invisible-island.net>
http://invisible-island.net
ftp://ftp.invisible-island.net


More information about the xorg mailing list