Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dcap_quoteverify build fails -- missing include path #424

Open
bvavala opened this issue Sep 20, 2024 · 0 comments
Open

dcap_quoteverify build fails -- missing include path #424

bvavala opened this issue Sep 20, 2024 · 0 comments

Comments

@bvavala
Copy link

bvavala commented Sep 20, 2024

Hi, I am interested in the static versions of the libraries, I noticed a compile issue and I should have spotted where the issue is.

Problem.

ar: creating libsgx_dcap_qvl_attestation.a
ln -sf ../../../QuoteGeneration/build/linux/libsgx_dcap_quoteverify.so ../../../QuoteGeneration/build/linux/libsgx_dcap_quoteverify.so.1
make[3]: Entering directory '/tmp/SGXDataCenterAttestationPrimitives/QuoteVerification/dcap_quoteverify/linux'
../sgx_dcap_pcs_com.cpp:45:10: fatal error: sgx_default_quote_provider.h: No such file or directory
   45 | #include "sgx_default_quote_provider.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

This problem shows up with the DCAP_1.18 tag (DCAP_1.17 works fine) and beyond.
Looking at the changes in DCAP_1.18 (6882afa#diff-9eb05970f3bf53a41ace7668dd8712b08ae0dfff9456d5e868de3f31ed357d47), it appears that in QuoteVerification/buildenv.mk the -I$(DCAP_QG_DIR)/qpl/inc include path was removed from the following line

QVL_LIB_INC := -I$(QVL_COMMON_PATH)/include -I$(QVL_COMMON_PATH)/include/Utils -I$(QVL_LIB_PATH)/include -I$(QVL_LIB_PATH)/src -I$(QVL_PARSER_PATH)/include -I$(QVL_SRC_PATH)/ThirdParty/rapidjson/include

The library compiles once the include path is restored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant