[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1/3] stubdom: fix vtpm compilation on GCC-7



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):
tpm_emulator-$(TPMEMU_VERSION).tar.gz
        patch -d $@ -p1 < vtpm-deepquote.patch
        patch -d $@ -p1 < vtpm-deepquote-anyloc.patch
        patch -d $@ -p1 < vtpm-cmake-Wextra.patch
+      patch -d $@ -p1 < vtpm-implicit-fallthrough.patch
+     for i in marshal.h tcg.h tpm2_marshal.h tpmrsa.h ;do sed -i -e '/^inline/ i\static' stubdom/vtpmmgr/"$i" ;done
        mkdir $@/build
        cd $@/build; CC=${CC} $(CMAKE) .. -DCMAKE_C_FLAGS:STRING="-std=c99
-DTPM_NO_EXTERN $(TARGET_CPPFLAGS) $(TARGET_CFLAGS)
-Wno-declaration-after-statement"
        touch $@

PryMar56
##xen-packaging
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.