Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
20 Views

SSL Add-On for the Intel SGX compilation errors

Hello,

I downloaded the newest version of the SSL Add-On for the Intel SGX provided on Intel pages (https://software.intel.com/sites/default/files/managed/3b/05/sgxssl.1.7.100.35615.zip)

However, I get a whole lot of error when I try to compile it:

1>C:\...\sgxssl.1.7.100.35615\include\openssl/crypto.h(581): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/crypto.h(581): error C2059: syntax error: ')'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bio.h(656): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bio.h(656): error C2065: 'stream': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bio.h(656): error C2062: type 'int' unexpected
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bio.h(730): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bio.h(730): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bio.h(730): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bio.h(731): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bio.h(731): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bio.h(731): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bn.h(516): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bn.h(516): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/bn.h(516): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/asn1.h(985): error C2061: syntax error: identifier 'FILE'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/asn1.h(993): error C2061: syntax error: identifier 'FILE'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/asn1.h(994): error C2061: syntax error: identifier 'FILE'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/asn1.h(1006): error C2061: syntax error: identifier 'FILE'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/asn1.h(1007): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/asn1.h(1007): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/asn1.h(1007): error C2065: 'str': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/asn1.h(1007): error C2275: 'ASN1_STRING': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(98): note: see declaration of 'ASN1_STRING'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/asn1.h(1007): error C2062: type 'unsigned long' unexpected
1>C:\...\sgxssl.1.7.100.35615\include\openssl/ec.h(734): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/ec.h(734): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/ec.h(734): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/ec.h(975): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/ec.h(975): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/ec.h(975): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/ec.h(983): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/ec.h(983): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/ec.h(983): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/rsa.h(383): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/rsa.h(383): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/rsa.h(383): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/dh.h(230): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/dh.h(230): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/dh.h(230): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/dsa.h(248): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/dsa.h(248): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/dsa.h(248): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/dsa.h(249): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/dsa.h(249): error C2065: 'bp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/dsa.h(249): error C2059: syntax error: 'const'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/lhash.h(186): error C2061: syntax error: identifier 'FILE'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/lhash.h(187): error C2061: syntax error: identifier 'FILE'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/lhash.h(188): error C2061: syntax error: identifier 'FILE'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(264): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(264): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(264): error C2065: 'p7': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(264): error C2275: 'PKCS7': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(200): note: see declaration of 'PKCS7'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(265): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(265): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(265): error C2065: 'p7': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(265): error C2275: 'PKCS7': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/pkcs7.h(200): note: see declaration of 'PKCS7'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(670): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(670): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(670): error C2065: 'x509': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(670): error C2275: 'X509': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(154): note: see declaration of 'X509'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(671): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(671): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(671): error C2065: 'x509': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(671): error C2275: 'X509': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(154): note: see declaration of 'X509'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(672): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(672): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(672): error C2065: 'crl': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(672): error C2275: 'X509_CRL': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(156): note: see declaration of 'X509_CRL'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(673): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(673): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(673): error C2065: 'crl': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(673): error C2275: 'X509_CRL': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(156): note: see declaration of 'X509_CRL'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(674): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(674): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(674): error C2065: 'req': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(674): error C2275: 'X509_REQ': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(240): note: see declaration of 'X509_REQ'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(675): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(675): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(675): error C2065: 'req': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(675): error C2275: 'X509_REQ': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(240): note: see declaration of 'X509_REQ'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(677): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(677): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(677): error C2065: 'rsa': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(677): error C2275: 'RSA': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(146): note: see declaration of 'RSA'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(678): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(678): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(678): error C2065: 'rsa': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(678): error C2275: 'RSA': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(146): note: see declaration of 'RSA'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(679): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(679): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(679): error C2065: 'rsa': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(679): error C2275: 'RSA': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(146): note: see declaration of 'RSA'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(680): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(680): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(680): error C2065: 'rsa': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(680): error C2275: 'RSA': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(146): note: see declaration of 'RSA'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(681): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(681): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(681): error C2065: 'rsa': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(681): error C2275: 'RSA': illegal use of this type as an expression
1>  C:\...\sgxssl.1.7.100.35615\include\openssl/ossl_typ.h(146): note: see declaration of 'RSA'
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(682): error C2065: 'FILE': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(682): error C2065: 'fp': undeclared identifier
1>C:\...\sgxssl.1.7.100.35615\include\openssl/x509.h(682): fatal error C1003: error count exceeds 100; stopping compilation

I am on Windows and I removed and reinstalled the newest version of the SDK and PSW.
Does anybody know how to fix this problem?

Best Regards
Benny

 

0 Kudos
1 Reply
Highlighted
Employee
20 Views

I discovered this issue too.  I solved it using the following:

  1. Make sure that the "include" directory is added to the Additional Include Directories:
    1. In the C/C++ General Settings add "$(SolutionDir)..\include\openssl;$(SolutionDir)..\include;"
    2. Add "#include "windows.h" to file - this file exists in $(SolutionDir)..\include

Mark

0 Kudos