All of lore.kernel.org
 help / color / mirror / Atom feed
* [tpm2] tpm2-abrmd configure syntax error near expected token AX_VALGRIND_DFLT
@ 2018-03-28 22:02 Anderson, Daniel
  0 siblings, 0 replies; only message in thread
From: Anderson, Daniel @ 2018-03-28 22:02 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]

If you get this error building tpm2-abrmd during ./configure:

./configure: line 13634: syntax error near unexpected token sgcheck,' ./configure: line 13634:AX_VALGRIND_DFLT(sgcheck, off)'

The problem is your version of Linux does not have the latest and greatest autoconf-archive package.  In my case the current Ubuntu 16.04.4 ("xenial") LTS package autoconf-archive is too old (version 20150925-1).

But the future Ubuntu 17.10 LTS ("artful") has a newer version that works OK: 20170928-2.

Here's a workaround until the new Ubuntu LTS version is released (or you can switch to Ubuntu development releases). It grabs a newer version of ax_valgrind_check.m4 with m4 macro AX_VALGRIND_DFLT defined.

Details in https://github.com/tpm2-software/tpm2-abrmd/issues/404

Dan

cd /usr/share/aclocal
cp -p ax_valgrind_check.m4 ax_valgrind_check.m4.ori
mkdir tmp
cd tmp
wget http://mirrors.kernel.org/ubuntu/pool/universe/a/autoconf-archive/autoconf-archive_20170321-1_all.deb 
dpkg-deb -R autoconf-archive_20170321-1_all.deb tmp
cp tmp/usr/share/aclocal/ax_valgrind_check.m4  ..
ls -l /usr/share/aclocal/ax_valgrind_check.m4*
cd ..
rm -rf tmp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-28 22:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 22:02 [tpm2] tpm2-abrmd configure syntax error near expected token AX_VALGRIND_DFLT Anderson, Daniel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.