From: Mark Pryor Subject: Re: [PATCH 1/3] stubdom: fix vtpm compilation on GCC-7 Date: Wed, 28 Jun 2017 03:21:34 +0000 (UTC) Message-ID: <2047790077.167895.1498620094098@mail.yahoo.com> References: <2047790077.167895.1498620094098.ref@mail.yahoo.com> Reply-To: Mark Pryor Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4840346169785996828==" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQ3Xt-00084f-NA for xen-devel@lists.xenproject.org; Wed, 28 Jun 2017 03:21:38 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Xen-devel List-Id: xen-devel@lists.xenproject.org --===============4840346169785996828== Content-Type: multipart/alternative; boundary="----=_Part_167894_2135069508.1498620094097" Content-Length: 3543 ------=_Part_167894_2135069508.1498620094097 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Marek, The undefined references are fixed by adding the static keyword in front of= the inline keywords (149 times).I did it with a sed edit/insert. @@ -228,6 +228,8 @@ tpm_emulator-$(XEN_TARGET_ARCH):=20 tpm_emulator-$(TPMEMU_VERSION).tar.gz =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 patch -d $@ -p1 < vtpm-deepquote= .patch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 patch -d $@ -p1 < vtpm-deepquote= -anyloc.patch =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 patch -d $@ -p1 < vtpm-cmake-Wex= tra.patch +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 patch -d $@ -p1 < vtpm-implicit-fallthrough= .patch+=C2=A0=C2=A0=C2=A0=C2=A0 for i in marshal.h tcg.h tpm2_marshal.h tpm= rsa.h ;do sed -i -e '/^inline/ i\static' stubdom/vtpmmgr/"$i" ;done =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mkdir $@/build =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cd $@/build; CC=3D${CC} $(CMAKE)= .. -DCMAKE_C_FLAGS:STRING=3D"-std=3Dc99=20 -DTPM_NO_EXTERN $(TARGET_CPPFLAGS) $(TARGET_CFLAGS)=20 -Wno-declaration-after-statement" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 touch $@ PryMar56##xen-packaging ------=_Part_167894_2135069508.1498620094097 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Marek,

The undefined references are fixed by adding the static key= word in front of the inline keywords (149 times).
I did it with a= sed edit/insert.

@@ -228,6 +228,8 @@ tpm_emulator-$(XEN_TARGET_ARCH):=
tpm_emulator-$(TPMEMU_VERSION).= tar.gz
    &n= bsp;   patch -d $@ -p1 < vtpm-deepquote.patch
        patch = -d $@ -p1 < vtpm-deepquote-anyloc.patch
        patch -d $@ -p1 < v= tpm-cmake-Wextra.patch
+ &nb= sp;    patch -d $@ -p1 < vtpm-implicit-fallthrough.patch<= /div>
+  &= nbsp;  for i in marshal.h tcg.h tpm2_marshal.h tpmrsa.h ;do sed -i -e = '/^inline/ i\static' stubdom/vtpmmgr/"$i" ;done
      &= nbsp; mkdir $@/build
  =       cd $@/build; CC=3D${CC} $(CMAKE) .. -DCMAKE_= C_FLAGS:STRING=3D"-std=3Dc99
-DT= PM_NO_EXTERN $(TARGET_CPPFLAGS) $(TARGET_CFLAGS)
-Wno-declaration-after-statement"
        touch $@

PryMar56
##xen-packaging
------=_Part_167894_2135069508.1498620094097-- --===============4840346169785996828== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============4840346169785996828==--