Статус: Новичок
Группы: Участники
Зарегистрирован: 26.12.2017(UTC) Сообщений: 2
|
При попытке собрать библиотеку libphpcades получаю множество ошибок синтаксиса некоторых заголовочных файлов. Уже всю голову сломал и все равно понять не могу, почему так :) Моя конфигурация: - Linux ubuntu 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
- gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)
- PHP 7.2.8-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jul 25 2018 10:51:50) ( NTS )
username@ubuntu:/opt/cprocsp/src/phpcades$ eval `/opt/cprocsp/src/doxygen/CSP/../setenv.sh --32`; sudo make -f Makefile.unix g++ -DLINUX -DUNIX -DHAVE_LIMITS_H -I/opt/cprocsp/include/ -I/opt/cprocsp/include/cpcsp -I/opt/cprocsp/include/pki -I/opt/cprocsp/include/pki/atl -I/opt/cprocsp/include/pki/cppcades -I/opt/cprocsp/include/pki/cplib -I/home/username/php-7.2.8 -I/home/username/php-7.2.8/main -I/home/username/php-7.2.8/Zend -I/home/username/php-7.2.8/TSRM -DSIZEOF_VOID_P= -fPIC -DPIC -c -o PHPCadesCPSigners.o PHPCadesCPSigners.cpp In file included from stdafx.h:39:0, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/cpcsp/CSP_WinDef.h:312:19: error: operator '==' has no left operand #if SIZEOF_VOID_P == 8 || defined(_WIN64) ^ /opt/cprocsp/include/cpcsp/CSP_WinDef.h:317:39: error: operator '||' has no right operand #elif !defined(UNIX) || SIZEOF_VOID_P == 4 ^ /opt/cprocsp/include/cpcsp/CSP_WinDef.h:323:2: error: #error "SIZEOF_VOID_P not defined" #error "SIZEOF_VOID_P not defined" ^ In file included from /opt/cprocsp/include/pki/atl/atlsimpstr.h:21:0, from /opt/cprocsp/include/pki/atl/cstringt.h:36, from /opt/cprocsp/include/pki/atl/atlstr.h:24, from /opt/cprocsp/include/pki/atl/atlcrypt2.h:62, from stdafx.h:53, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/cpcsp/cpclocks.h:827:19: error: operator '==' has no left operand #if SIZEOF_VOID_P == 8 || defined(_WIN64) ^ /opt/cprocsp/include/cpcsp/cpclocks.h:831:39: error: operator '||' has no right operand #elif !defined(UNIX) || SIZEOF_VOID_P == 4 ^ /opt/cprocsp/include/cpcsp/cpclocks.h:837:6: error: #error "SIZEOF_VOID_P not defined" #error "SIZEOF_VOID_P not defined" ^ /opt/cprocsp/include/cpcsp/cpclocks.h:897:79: error: operator '==' has no right operand #if !defined(support_fence_acq) || !(defined(_WIN64) || 8 == SIZEOF_VOID_P) ^ /opt/cprocsp/include/cpcsp/cpclocks.h:919:79: error: operator '==' has no right operand #if !defined(support_fence_rel) || !(defined(_WIN64) || 8 == SIZEOF_VOID_P) ^ In file included from stdafx.h:39:0, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/cpcsp/CSP_WinDef.h:326:9: error: ‘ULONG_PTR’ does not name a type typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR; ^ In file included from stdafx.h:39:0, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/cpcsp/CSP_WinDef.h:474:9: error: ‘ULONG_PTR’ does not name a type typedef ULONG_PTR SIZE_T, *PSIZE_T; ^ /opt/cprocsp/include/cpcsp/CSP_WinDef.h:475:9: error: ‘LONG_PTR’ does not name a type typedef LONG_PTR SSIZE_T, *PSSIZE_T; ^ /opt/cprocsp/include/cpcsp/CSP_WinDef.h:649:8: error: ‘SIZE_T’ has not been declared IN SIZE_T uBytes); ^ In file included from /opt/cprocsp/include/cpcsp/WinCryptEx.h:34:0, from stdafx.h:48, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:229:9: error: ‘ULONG_PTR’ does not name a type typedef ULONG_PTR HCRYPTPROV; ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:230:9: error: ‘ULONG_PTR’ does not name a type typedef ULONG_PTR HCRYPTKEY; ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:231:9: error: ‘ULONG_PTR’ does not name a type typedef ULONG_PTR HCRYPTHASH; ^ In file included from /opt/cprocsp/include/cpcsp/WinCryptEx.h:34:0, from stdafx.h:48, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2240:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2241:14: error: expected primary-expression before ‘dwKeySpec’ IN DWORD dwKeySpec, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2242:14: error: expected primary-expression before ‘dwCertEncodingType’ IN DWORD dwCertEncodingType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2243:31: error: expected primary-expression before ‘pInfo’ OUT PCERT_PUBLIC_KEY_INFO pInfo, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2244:18: error: expected primary-expression before ‘*’ token IN OUT DWORD *pcbInfo ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2244:19: error: ‘pcbInfo’ was not declared in this scope IN OUT DWORD *pcbInfo ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2245:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2266:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2267:14: error: expected primary-expression before ‘dwKeySpec’ IN DWORD dwKeySpec, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2268:14: error: expected primary-expression before ‘dwCertEncodingType’ IN DWORD dwCertEncodingType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2269:14: error: expected primary-expression before ‘pszPublicKeyObjId’ IN LPSTR pszPublicKeyObjId, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2270:14: error: expected primary-expression before ‘dwFlags’ IN DWORD dwFlags, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2271:17: error: expected primary-expression before ‘void’ IN OPTIONAL void *pvAuxInfo, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2272:31: error: expected primary-expression before ‘pInfo’ OUT PCERT_PUBLIC_KEY_INFO pInfo, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2273:18: error: expected primary-expression before ‘*’ token IN OUT DWORD *pcbInfo ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2273:19: error: ‘pcbInfo’ was not declared in this scope IN OUT DWORD *pcbInfo ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2274:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2287:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2288:14: error: expected primary-expression before ‘dwCertEncodingType’ IN DWORD dwCertEncodingType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2289:30: error: expected primary-expression before ‘pInfo’ IN PCERT_PUBLIC_KEY_INFO pInfo, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2290:9: error: ‘HCRYPTKEY’ was not declared in this scope OUT HCRYPTKEY *phKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2290:20: error: ‘phKey’ was not declared in this scope OUT HCRYPTKEY *phKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2291:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2314:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2315:14: error: expected primary-expression before ‘dwCertEncodingType’ IN DWORD dwCertEncodingType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2316:30: error: expected primary-expression before ‘pInfo’ IN PCERT_PUBLIC_KEY_INFO pInfo, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2317:15: error: expected primary-expression before ‘aiKeyAlg’ IN ALG_ID aiKeyAlg, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2318:14: error: expected primary-expression before ‘dwFlags’ IN DWORD dwFlags, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2319:17: error: expected primary-expression before ‘void’ IN OPTIONAL void *pvAuxInfo, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2320:9: error: ‘HCRYPTKEY’ was not declared in this scope OUT HCRYPTKEY *phKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2320:20: error: ‘phKey’ was not declared in this scope OUT HCRYPTKEY *phKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2321:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2371:9: error: ‘HCRYPTPROV’ has not been declared OUT HCRYPTPROV *phCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:2613:5: error: ‘HCRYPTPROV’ does not name a type HCRYPTPROV hCryptProv; ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:3492:8: error: ‘HCRYPTPROV’ has not been declared IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:3501:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:3502:15: error: expected primary-expression before ‘pszSubsystemProtocol’ IN LPCSTR pszSubsystemProtocol ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:3503:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:3509:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:3510:16: error: expected primary-expression before ‘pszSubsystemProtocol’ IN LPCWSTR pszSubsystemProtocol ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:3511:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:3554:8: error: ‘HCRYPTPROV’ has not been declared IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8022:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8023:33: error: expected primary-expression before ‘dwCertEncodingType’ IN DWORD dwCertEncodingType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8024:8: error: expected primary-expression before ‘const’ IN const BYTE * pbEncoded, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8025:33: error: expected primary-expression before ‘cbEncoded’ IN DWORD cbEncoded, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8026:33: error: expected primary-expression before ‘pPublicKey’ IN PCERT_PUBLIC_KEY_INFO pPublicKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8027:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8058:17: error: ‘HCRYPTPROV’ was not declared in this scope IN OPTIONAL HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8059:14: error: expected primary-expression before ‘dwCertEncodingType’ IN DWORD dwCertEncodingType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8060:14: error: expected primary-expression before ‘dwSubjectType’ IN DWORD dwSubjectType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8061:8: error: expected primary-expression before ‘void’ IN void *pvSubject, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8062:14: error: expected primary-expression before ‘dwIssuerType’ IN DWORD dwIssuerType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8063:8: error: expected primary-expression before ‘void’ IN void *pvIssuer, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8064:14: error: expected primary-expression before ‘dwFlags’ IN DWORD dwFlags, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8065:17: error: expected primary-expression before ‘void’ IN OPTIONAL void *pvReserved ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8066:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8098:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8099:14: error: expected primary-expression before ‘dwCertEncodingType’ IN DWORD dwCertEncodingType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8100:8: error: expected primary-expression before ‘const’ IN const BYTE *pbEncoded, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8101:14: error: expected primary-expression before ‘cbEncoded’ IN DWORD cbEncoded, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8102:14: error: expected primary-expression before ‘*’ token OUT BYTE *pbComputedHash, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8102:15: error: ‘pbComputedHash’ was not declared in this scope OUT BYTE *pbComputedHash, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8103:18: error: expected primary-expression before ‘*’ token IN OUT DWORD *pcbComputedHash ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8103:19: error: ‘pcbComputedHash’ was not declared in this scope IN OUT DWORD *pcbComputedHash ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8104:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8119:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8120:15: error: expected primary-expression before ‘Algid’ IN ALG_ID Algid, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8121:14: error: expected primary-expression before ‘dwFlags’ IN DWORD dwFlags, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8122:8: error: expected primary-expression before ‘const’ IN const BYTE *pbEncoded, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8123:14: error: expected primary-expression before ‘cbEncoded’ IN DWORD cbEncoded, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8124:14: error: expected primary-expression before ‘*’ token OUT BYTE *pbComputedHash, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8124:15: error: ‘pbComputedHash’ was not declared in this scope OUT BYTE *pbComputedHash, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8125:18: error: expected primary-expression before ‘*’ token IN OUT DWORD *pcbComputedHash ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8125:19: error: ‘pcbComputedHash’ was not declared in this scope IN OUT DWORD *pcbComputedHash ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8126:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8143:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8144:14: error: expected primary-expression before ‘dwKeySpec’ IN DWORD dwKeySpec, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8145:14: error: expected primary-expression before ‘dwCertEncodingType’ IN DWORD dwCertEncodingType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8146:8: error: expected primary-expression before ‘const’ IN const BYTE *pbEncodedToBeSigned, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8147:14: error: expected primary-expression before ‘cbEncodedToBeSigned’ IN DWORD cbEncodedToBeSigned, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8148:36: error: expected primary-expression before ‘pSignatureAlgorithm’ IN PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8149:17: error: expected primary-expression before ‘const’ IN OPTIONAL const void *pvHashAuxInfo, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8150:14: error: expected primary-expression before ‘*’ token OUT BYTE *pbSignature, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8150:15: error: ‘pbSignature’ was not declared in this scope OUT BYTE *pbSignature, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8151:18: error: expected primary-expression before ‘*’ token IN OUT DWORD *pcbSignature ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8151:19: error: ‘pcbSignature’ was not declared in this scope IN OUT DWORD *pcbSignature ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8152:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8170:8: error: ‘HCRYPTPROV’ was not declared in this scope IN HCRYPTPROV hCryptProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8171:14: error: expected primary-expression before ‘dwKeySpec’ IN DWORD dwKeySpec, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8172:14: error: expected primary-expression before ‘dwCertEncodingType’ IN DWORD dwCertEncodingType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8173:15: error: expected primary-expression before ‘lpszStructType’ IN LPCSTR lpszStructType, // "to be signed" ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8174:8: error: expected primary-expression before ‘const’ IN const void *pvStructInfo, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8175:36: error: expected primary-expression before ‘pSignatureAlgorithm’ IN PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8176:17: error: expected primary-expression before ‘const’ IN OPTIONAL const void *pvHashAuxInfo, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8177:15: error: expected primary-expression before ‘pbEncoded’ OUT PBYTE pbEncoded, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8178:18: error: expected primary-expression before ‘*’ token IN OUT DWORD *pcbEncoded ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8178:19: error: ‘pcbEncoded’ was not declared in this scope IN OUT DWORD *pcbEncoded ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8179:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8218:5: error: ‘HCRYPTPROV’ was not declared in this scope HCRYPTPROV hProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8219:11: error: expected primary-expression before ‘*’ token DWORD *pdwReserved, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8219:12: error: ‘pdwReserved’ was not declared in this scope DWORD *pdwReserved, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8220:11: error: expected primary-expression before ‘dwFlags’ DWORD dwFlags); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8220:18: error: expression list treated as compound expression in initializer [-fpermissive] DWORD dwFlags); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8226:5: error: ‘HCRYPTPROV’ was not declared in this scope HCRYPTPROV *phProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8226:17: error: ‘phProv’ was not declared in this scope HCRYPTPROV *phProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8227:12: error: expected primary-expression before ‘pszContainer’ LPCSTR pszContainer, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8228:12: error: expected primary-expression before ‘pszProvider’ LPCSTR pszProvider, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8229:11: error: expected primary-expression before ‘dwProvType’ DWORD dwProvType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8230:11: error: expected primary-expression before ‘dwFlags’ DWORD dwFlags); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8230:18: error: expression list treated as compound expression in initializer [-fpermissive] DWORD dwFlags); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8235:5: error: ‘HCRYPTPROV’ was not declared in this scope HCRYPTPROV *phProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8235:17: error: ‘phProv’ was not declared in this scope HCRYPTPROV *phProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8236:13: error: expected primary-expression before ‘pszContainer’ LPCWSTR pszContainer, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8237:13: error: expected primary-expression before ‘pszProvider’ LPCWSTR pszProvider, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8238:11: error: expected primary-expression before ‘dwProvType’ DWORD dwProvType, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8239:11: error: expected primary-expression before ‘dwFlags’ DWORD dwFlags); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8239:18: error: expression list treated as compound expression in initializer [-fpermissive] DWORD dwFlags); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8250:5: error: ‘HCRYPTPROV’ was not declared in this scope HCRYPTPROV hProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8251:11: error: expected primary-expression before ‘dwFlags’ DWORD dwFlags ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8252:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8258:5: error: ‘HCRYPTPROV’ was not declared in this scope HCRYPTPROV hProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8259:12: error: expected primary-expression before ‘Algid’ ALG_ID Algid, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8260:11: error: expected primary-expression before ‘dwFlags’ DWORD dwFlags, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8261:5: error: ‘HCRYPTKEY’ was not declared in this scope HCRYPTKEY *phKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8261:16: error: ‘phKey’ was not declared in this scope HCRYPTKEY *phKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8262:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8268:5: error: ‘HCRYPTPROV’ was not declared in this scope HCRYPTPROV hProv, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8269:12: error: expected primary-expression before ‘Algid’ ALG_ID Algid, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8270:5: error: ‘HCRYPTHASH’ was not declared in this scope HCRYPTHASH hBaseData, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8271:11: error: expected primary-expression before ‘dwFlags’ DWORD dwFlags, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8272:5: error: ‘HCRYPTKEY’ was not declared in this scope HCRYPTKEY *phKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8272:16: error: ‘phKey’ was not declared in this scope HCRYPTKEY *phKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8273:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8279:5: error: ‘HCRYPTKEY’ was not declared in this scope HCRYPTKEY hKey ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8286:5: error: ‘HCRYPTKEY’ was not declared in this scope HCRYPTKEY hKey, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8287:11: error: expected primary-expression before ‘dwParam’ DWORD dwParam, ^ In file included from stdafx.h:39:0, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/cpcsp/CSP_WinDef.h:146:29: error: expected primary-expression before ‘const’ #define CONST const ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8288:5: note: in expansion of macro ‘CONST’ CONST BYTE *pbData, ^ In file included from /opt/cprocsp/include/cpcsp/WinCryptEx.h:34:0, from stdafx.h:48, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8289:11: error: expected primary-expression before ‘dwFlags’ DWORD dwFlags ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8290:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8296:5: error: ‘HCRYPTKEY’ was not declared in this scope HCRYPTKEY hKey, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8297:11: error: expected primary-expression before ‘dwParam’ DWORD dwParam, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8298:10: error: expected primary-expression before ‘*’ token BYTE *pbData, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8298:11: error: ‘pbData’ was not declared in this scope BYTE *pbData, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8299:11: error: expected primary-expression before ‘*’ token DWORD *pdwDataLen, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8299:12: error: ‘pdwDataLen’ was not declared in this scope DWORD *pdwDataLen, ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8300:11: error: expected primary-expression before ‘dwFlags’ DWORD dwFlags ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:8301:5: error: expression list treated as compound expression in initializer [-fpermissive] ); ^
...
^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:11243:8: error: ‘HCRYPTPROV’ has not been declared IN HCRYPTPROV hCryptProv, // passed to CertOpenStore ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:11575:1: error: ‘HCRYPTPROV’ does not name a type HCRYPTPROV CPCAPI_I_GetDefaultProvider(DWORD dwProvType); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:11577:1: error: ‘HCRYPTPROV’ does not name a type HCRYPTPROV CPCAPI_I_CryptGetDefaultCryptProv(ALG_ID AlgId); ^ /opt/cprocsp/include/cpcsp/CSP_WinCrypt.h:11579:1: error: ‘HCRYPTPROV’ does not name a type HCRYPTPROV CPCAPI_I_CryptGetDefaultCryptProvForEncrypt( ^ In file included from stdafx.h:48:0, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/cpcsp/WinCryptEx.h:2297:24: error: ‘SIZE_T’ has not been declared #define CPC_SIZE_T SIZE_T ^ /opt/cprocsp/include/cpcsp/WinCryptEx.h:2365:16: note: in expansion of macro ‘CPC_SIZE_T’ /* [in] */ CPC_SIZE_T sz, ^ /opt/cprocsp/include/cpcsp/WinCryptEx.h:2297:24: error: ‘SIZE_T’ has not been declared #define CPC_SIZE_T SIZE_T ^ /opt/cprocsp/include/cpcsp/WinCryptEx.h:2423:16: note: in expansion of macro ‘CPC_SIZE_T’ /* [in] */ CPC_SIZE_T sz, ^ In file included from stdafx.h:50:0, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/pki/atl/atltrace2.h:62:25: error: expected type-specifier before ‘DWORD_PTR’ #define XDWORD_PTR_UINT DWORD_PTR ^ /opt/cprocsp/include/pki/atl/atltrace2.h:175:14: note: in expansion of macro ‘XDWORD_PTR_UINT’ operator XDWORD_PTR_UINT () const throw(); ^ /opt/cprocsp/include/pki/atl/atltrace2.h:62:25: error: ‘DWORD_PTR’ does not name a type #define XDWORD_PTR_UINT DWORD_PTR ^ /opt/cprocsp/include/pki/atl/atltrace2.h:178:5: note: in expansion of macro ‘XDWORD_PTR_UINT’ XDWORD_PTR_UINT m_dwCategory; ^ In file included from stdafx.h:50:0, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/pki/atl/atltrace2.h:188:29: error: ‘DWORD_PTR’ has not been declared void __cdecl operator()(DWORD_PTR dwCategory, UINT32 nLevel, const char *ps ^ /opt/cprocsp/include/pki/atl/atltrace2.h:189:29: error: ‘DWORD_PTR’ has not been declared void __cdecl operator()(DWORD_PTR dwCategory, UINT32 nLevel, const wchar_t ^ In file included from /opt/cprocsp/include/pki/atl/atlconv.h:28:0, from /opt/cprocsp/include/pki/atl/atltrace.h:17, from /opt/cprocsp/include/pki/atl/atlexcept.h:17, from /opt/cprocsp/include/pki/atl/atlchecked.h:17, from /opt/cprocsp/include/pki/atl/atlcore.h:46, from /opt/cprocsp/include/pki/atl/atlbase.h:81, from /opt/cprocsp/include/pki/atl/atlenc.h:16, from stdafx.h:52, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/pki/atl/atlalloc.h:603:38: error: ‘ATL::_ATL_SAFE_ALLOCA_IMPL::_AtlVerifyStackAvailable’ declared as an ‘inline’ variable inline bool _AtlVerifyStackAvailable(SIZE_T Size) ^ /opt/cprocsp/include/pki/atl/atlalloc.h:603:38: error: ‘SIZE_T’ was not declared in this scope /opt/cprocsp/include/pki/atl/atlalloc.h:604:1: error: expected ‘,’ or ‘;’ before ‘{’ token { ^ In file included from /opt/cprocsp/include/pki/atl/atlconv.h:28:0, from /opt/cprocsp/include/pki/atl/atltrace.h:17, from /opt/cprocsp/include/pki/atl/atlexcept.h:17, from /opt/cprocsp/include/pki/atl/atlchecked.h:17, from /opt/cprocsp/include/pki/atl/atlcore.h:46, from /opt/cprocsp/include/pki/atl/atlbase.h:81, from /opt/cprocsp/include/pki/atl/atlenc.h:16, from stdafx.h:52, from PHPCadesCPSigners.cpp:1: /opt/cprocsp/include/pki/atl/atlalloc.h:700:19: error: expected ‘}’ before end of line /opt/cprocsp/include/pki/atl/atlalloc.h:700:19: error: expected ‘}’ before end of line /opt/cprocsp/include/pki/atl/atlalloc.h:700:19: error: expected declaration before end of line Makefile.unix:31: ошибка выполнения рецепта для цели «PHPCadesCPSigners.o» make: *** [PHPCadesCPSigners.o] Ошибка 1
|