[vim/vim] Vim cannot find libtinfo.so.6 upon a fresh errorless compilation on Ubuntu 18.04 (with libtinfo.so.5) (Issue #11633)

922 views
Skip to first unread message

godot11

unread,
Nov 28, 2022, 7:44:25 AM11/28/22
to vim/vim, Subscribed

Steps to reproduce

Compiling VIM on Ubuntu 18.04 with libtinfo.so.5 results in an errorless compilation, but the built executable does not work and crashes with error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory. Either VIM does not realize the incorrect version of libtinfo.so, or it should be compatible but it doesn't find it and looks for libtinfo.so.6 only.

Reproduction:

  1. Clone VIM and install it's requirements as listed in vim/INSTALL file:
mkdir ~/vim-complie; cd ~/vim-complie
git clone https://github.com/vim/vim.git
sudo apt update
sudo apt install make clang libtool-bin libxt-dev libgtk-3-dev libpython3-dev 
  1. Configure, build and install to a local folder:
cd vim
./configure --prefix=$HOME/Software/vim --enable-python3interp --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-terminal --enable-gui
make
make install

This will successfully build and install the executable. The only place with an error is make install, but it will go on nonetheless. Log: https://pastebin.com/N1eBZvvA

  1. executing the newly built VIM will throw an error and exit:
$ $HOME/Software/vim/bin/vim
/home/nagyg/Software/vim/bin/vim: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory

Expected behaviour

VIM should launch without issue, or an error should happen in the configuration/compilation phase, not after the executable was seemingly successfully built.

Version of Vim

github/master

Environment

Operating system: Ubuntu 18.04
terminal: Konsole 17.12.3
$TERM=xterm-256color

(base) nagyg -> ldconfig -p | grep libtinfo
        libtinfo.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libtinfo.so.5
        libtinfo.so.5 (libc6) => /lib/i386-linux-gnu/libtinfo.so.5
        libtinfo.so.5 (libc6) => /lib32/libtinfo.so.5
        libtinfo.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libtinfo.so

Logs and stack traces

./configure, make and make install logs: https://pastebin.com/N1eBZvvA


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11633@github.com>

Bram Moolenaar

unread,
Nov 28, 2022, 2:30:34 PM11/28/22
to vim/vim, Subscribed

Ubuntu 18.04 is old, you should at least upgrade to 20.04.

It's probably some weird configuration that configure isn't able to handle. I could not open the build logs.
Please check src/auto/config.log for any hints.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11633/1329635726@github.com>

Christian Brabandt

unread,
Nov 29, 2022, 7:30:01 AM11/29/22
to vim/vim, Subscribed

FWIW:
I checked the dependencies on Debian, and this seems to be dragged in from some other dependencies:

 % apt-rdepends --build-depends vim |grep -B20 "^\s*Build-Depends: libtinfo"
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Deep recursion on subroutine "main::show_rdepends" at /usr/bin/apt-rdepends line 382.
[...]
libedit-dev
  Build-Depends: libtinfo-dev
python2.7
[...]
  Build-Depends: libtinfo-dev
ldc
[...]
  Build-Depends: libtinfo-dev
python2.7-dev
[...]
  Build-Depends: libtinfo-dev


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11633/1330557989@github.com>

Darless

unread,
Jan 3, 2023, 9:02:08 PM1/3/23
to vim/vim, Subscribed

Just tried to reproduce this using ubuntu:18.04 docker image and the error was not present:

# Enter into docker
docker run -it ubuntu:18.04 bash

# Within the container
mkdir ~/vim-complie; cd ~/vim-complie
git clone https://github.com/vim/vim.git
apt update && apt install git
git clone https://github.com/vim/vim.git
cd vim
./configure --prefix=$HOME/Software/vim --enable-python3interp --enable-perlinterp --enable-rubyinterp --enable-luainterp --enable-tclinterp --enable-terminal --enable-gui
make install

# Running VIM works without issues
root@81a41e693e5c:~/vim-complie/vim# /root/Software/vim/bin/vim --version >/dev/null && echo $?
0

LDD shows that libtinfo.so.5 is available

root@81a41e693e5c:~/vim-complie/vim# ldd /root/Software/vim/bin/vim | grep info
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f3d307e6000)

In the failure case, do an ldd of the binary and see what libraries are not found.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11633/1370404978@github.com>

Reply all
Reply to author
Forward
0 new messages