compile error on tpm2-tools (4.2.X branch)
ted.h.kim at oracle.com
Folks,
I got an "error" compiling tpm2-tools (4.2.X branch).
Yes, I realize this is because warnings being converted to errors. Don't think I changed the CC flags, but maybe this is just my environment?
Haven't checked the new 4.2.1 release update - does that take care of this?
Thanks,
-ted
++++
from the make output:
lib/tpm2.c: In function ‘tpm2_getsapicontext’:lib/tpm2.c:4070:20: error: implicit declaration of function ‘Esys_GetSysContext’
; did you mean ‘Esys_FlushContext’? [-Werror=implicit-function-declaration]
TSS2_RC rval = Esys_GetSysContext(esys_context, sys_context); ^~~~~~~~~~~~~~~~~~
Esys_FlushContext
cc1: all warnings being treated as errors
make: *** [Makefile:4857: lib/libcommon_a-tpm2.o] Error 1
Signature · 3 lines
Ted H. Kim, PhD ted.h.kim(a)oracle.com +1 310-258-7515
Fuchs
I guess your tpm2-tss and thus your tss2_esys.h / libtss2-esys.so are too old.
Cheers,
Andreas
________________________________________
From: ted.h.kim(a)oracle.com [ted.h.kim(a)oracle.com]
Sent: Wednesday, May 13, 2020 18:14
To: tpm2(a)lists.01.org
Subject: [tpm2] compile error on tpm2-tools (4.2.X branch)
Folks,
I got an "error" compiling tpm2-tools (4.2.X branch).
Yes, I realize this is because warnings being converted to errors. Don't think I changed the CC flags, but maybe this is just my environment?
Haven't checked the new 4.2.1 release update - does that take care of this?
Thanks,
-ted
++++
from the make output:
lib/tpm2.c: In function ‘tpm2_getsapicontext’:lib/tpm2.c:4070:20: error: implicit declaration of function ‘Esys_GetSysContext’
; did you mean ‘Esys_FlushContext’? [-Werror=implicit-function-declaration]
TSS2_RC rval = Esys_GetSysContext(esys_context, sys_context);
^~~~~~~~~~~~~~~~~~
Esys_FlushContextcc1: all warnings being treated as errors
make: *** [Makefile:4857: lib/libcommon_a-tpm2.o] Error 1
--
Ted H. Kim, PhD
ted.h.kim(a)oracle.com
+1 310-258-7515
_______________________________________________
tpm2 mailing list -- tpm2(a)lists.01.org
To unsubscribe send an email to tpm2-leave(a)lists.01.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
ted.h.kim at oracle.com
Is the stuff in tpm2-tss 2.3.X - not good enough?
-ted
Quoted 44 lines · Andreas
I guess your tpm2-tss and thus your
tss2_esys.h/ libtss2-esys.so are too old.Cheers,
Andreas
________________________________________
From: ted.h.kim(a)oracle.com [ted.h.kim(a)oracle.com]
Sent: Wednesday, May 13, 2020 18:14
To: tpm2(a)lists.01.org
Subject: [tpm2] compile error on tpm2-tools (4.2.X branch)Folks,
I got an "error" compiling tpm2-tools (4.2.X branch).
Yes, I realize this is because warnings being converted to errors. Don't think I changed the CC flags, but maybe this is just my environment?Haven't checked the new 4.2.1 release update - does that take care of this?
Thanks,
-ted++++
from the make output:
lib/tpm2.c: In function ‘tpm2_getsapicontext’:lib/tpm2.c:4070:20: error: implicit declaration of function ‘Esys_GetSysContext’
; did you mean ‘Esys_FlushContext’? [-Werror=implicit-function-declaration]TSS2_RC rval = Esys_GetSysContext(esys_context, sys_context); ^~~~~~~~~~~~~~~~~~ Esys_FlushContextcc1: all warnings being treated as errors
make: *** [Makefile:4857:lib/libcommon_a-tpm2.o] Error 1--
Ted H. Kim, PhD
ted.h.kim(a)oracle.com
+1 310-258-7515_______________________________________________
tpm2 mailing list -- tpm2(a)lists.01.org
To unsubscribe send an email to tpm2-leave(a)lists.01.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Signature · 3 lines
Ted H. Kim, PhD ted.h.kim(a)oracle.com +1 310-258-7515
Fuchs
No, you need 2.4.x.
I opened and issue here: https://github.com/tpm2-software/tpm2-tools/issues/2022
________________________________________
From: ted.h.kim(a)oracle.com [ted.h.kim(a)oracle.com]
Sent: Wednesday, May 13, 2020 18:22
To: Fuchs, Andreas; tpm2(a)lists.01.org
Subject: Re: [tpm2] compile error on tpm2-tools (4.2.X branch)
Is the stuff in tpm2-tss 2.3.X - not good enough?
-ted
Quoted 40 lines · Andreas
I guess your tpm2-tss and thus your
tss2_esys.h/ libtss2-esys.so are too old.Cheers,
Andreas
________________________________________
From: ted.h.kim(a)oracle.com [ted.h.kim(a)oracle.com]
Sent: Wednesday, May 13, 2020 18:14
To: tpm2(a)lists.01.org
Subject: [tpm2] compile error on tpm2-tools (4.2.X branch)Folks,
I got an "error" compiling tpm2-tools (4.2.X branch).
Yes, I realize this is because warnings being converted to errors. Don't think I changed the CC flags, but maybe this is just my environment?Haven't checked the new 4.2.1 release update - does that take care of this?
Thanks,
-ted++++
from the make output:
lib/tpm2.c: In function ‘tpm2_getsapicontext’:lib/tpm2.c:4070:20: error: implicit declaration of function ‘Esys_GetSysContext’
; did you mean ‘Esys_FlushContext’? [-Werror=implicit-function-declaration]TSS2_RC rval = Esys_GetSysContext(esys_context, sys_context); ^~~~~~~~~~~~~~~~~~ Esys_FlushContextcc1: all warnings being treated as errors
make: *** [Makefile:4857:lib/libcommon_a-tpm2.o] Error 1--
Ted H. Kim, PhD
ted.h.kim(a)oracle.com
+1 310-258-7515
Quoted 4 lines
_______________________________________________
tpm2 mailing list -- tpm2(a)lists.01.org
To unsubscribe send an email to tpm2-leave(a)lists.01.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
--
Ted H. Kim, PhD
ted.h.kim(a)oracle.com
+1 310-258-7515
Roberts
Ill backport that fix and add it to 4.2.1-RC1 next Monday. Thank you for the bug report And thanks Andreas for the triage!
Quoted 77 lines
-----Original Message-----
From: Fuchs, Andreas [mailto:andreas.fuchs(a)sit.fraunhofer.de]
Sent: Wednesday, May 13, 2020 11:52 AM
To: ted.h.kim(a)oracle.com; tpm2(a)lists.01.org
Subject: [tpm2] Re: compile error on tpm2-tools (4.2.X branch)No, you need 2.4.x.
I opened and issue here: https://github.com/tpm2-software/tpm2-tools/issues/2022________________________________________
From: ted.h.kim(a)oracle.com [ted.h.kim(a)oracle.com]
Sent: Wednesday, May 13, 2020 18:22
To: Fuchs, Andreas; tpm2(a)lists.01.org
Subject: Re: [tpm2] compile error on tpm2-tools (4.2.X branch)Is the stuff in tpm2-tss 2.3.X - not good enough?
-ted
Quoted 40 lines · Andreas
I guess your tpm2-tss and thus your
tss2_esys.h/ libtss2-esys.so are too old.Cheers,
Andreas
________________________________________
From: ted.h.kim(a)oracle.com [ted.h.kim(a)oracle.com]
Sent: Wednesday, May 13, 2020 18:14
To: tpm2(a)lists.01.org
Subject: [tpm2] compile error on tpm2-tools (4.2.X branch)Folks,
I got an "error" compiling tpm2-tools (4.2.X branch).
Yes, I realize this is because warnings being converted to errors. Don't think I changed the CC flags, but maybe this is just my environment?Haven't checked the new 4.2.1 release update - does that take care of this?
Thanks,
-ted++++
from the make output:
lib/tpm2.c: In function 'tpm2_getsapicontext':lib/tpm2.c:4070:20: error: implicit declaration of function 'Esys_GetSysContext'
; did you mean 'Esys_FlushContext'? [-Werror=implicit-function-declaration]TSS2_RC rval = Esys_GetSysContext(esys_context, sys_context); ^~~~~~~~~~~~~~~~~~ Esys_FlushContextcc1: all warnings being treated as errors
make: *** [Makefile:4857:lib/libcommon_a-tpm2.o] Error 1--
Ted H. Kim, PhD
ted.h.kim(a)oracle.com
+1 310-258-7515Quoted 4 lines
_______________________________________________
tpm2 mailing list -- tpm2(a)lists.01.org To unsubscribe send an email to tpm2-leave(a)lists.01.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s--
Ted H. Kim, PhD
ted.h.kim(a)oracle.com
+1 310-258-7515_______________________________________________
tpm2 mailing list -- tpm2(a)lists.01.org
To unsubscribe send an email to tpm2-leave(a)lists.01.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s