tpm2-tools
tpm2-tools copied to clipboard
./bootstrap fails on ubuntu 20.04
On ubuntu 20.04, after installing the listed dependencies in INSTALL.md, bootstrap fails with the following error:
tpm2-tools$ ./bootstrap
Generating file lists: src_vars.mk
aclocal: installing 'm4/libtool.m4' from '/usr/share/aclocal/libtool.m4'
aclocal: installing 'm4/ltoptions.m4' from '/usr/share/aclocal/ltoptions.m4'
aclocal: installing 'm4/ltsugar.m4' from '/usr/share/aclocal/ltsugar.m4'
aclocal: installing 'm4/ltversion.m4' from '/usr/share/aclocal/ltversion.m4'
aclocal: installing 'm4/lt~obsolete.m4' from '/usr/share/aclocal/lt~obsolete.m4'
aclocal: installing 'm4/pkg.m4' from '/usr/share/aclocal/pkg.m4'
libtoolize: putting auxiliary files in '.'.
libtoolize: linking file './ltmain.sh'
configure.ac:40: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
@psanford did you try upgrading the autotools version?
I installed autoconf-archive
from source (http://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2019.01.06.tar.xz) as the instructions say, is there something beyond that that I need to do?
Looking at the way the ci docker container gets built, I was able to get a build from source working on ubuntu 20.04: https://gist.github.com/psanford/4a4ac373d0dae97bc6f0d98137537a7c
The documentation still talks about building on ubuntu 16.04, which is EOL. Perhaps the install doc should be updated to reflect the current requirements.