Статус: Новичок
Группы: Участники
Зарегистрирован: 10.12.2021(UTC) Сообщений: 6 Откуда: Москва Сказал(а) «Спасибо»: 1 раз
|
Здравствуйте. Пользовался следующей инструкцией: https://docs.cryptopro.r...es/pycades/pycades-buildПри выполнении команды make -j4 происходит следующая ошибка: Код:
[ 3%] Building CXX object CMakeFiles/pycades.dir/errormsg.cpp.o
[ 6%] Building CXX object CMakeFiles/pycades.dir/PyCadesExtendedKeyUsage.cpp.o
[ 9%] Building CXX object CMakeFiles/pycades.dir/PyCadesHashedData.cpp.o
[ 12%] Building CXX object CMakeFiles/pycades.dir/PyCadesKeyUsage.cpp.o
In file included from /opt/cprocsp/include/pki/atl/atlbase.h:75,
from /opt/cprocsp/include/pki/atl/atlstr.h:19,
from /tmp/src/pycades_0.1.22769/errormsg.cpp:46:
/opt/cprocsp/include/pki/atl/atldef.h:130:13: error: expected initializer before 'AtlThrowLastWin32'
130 | void WINAPI AtlThrowLastWin32();
| ^~~~~~~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:131:13: error: expected initializer before 'AtlThrowImpl'
131 | void WINAPI AtlThrowImpl( HRESULT hr );
| ^~~~~~~~~~~~
In file included from /opt/cprocsp/include/pki/atl/atlcore.h:28,
from /opt/cprocsp/include/pki/atl/atlbase.h:81,
from /opt/cprocsp/include/pki/atl/atlstr.h:19,
from /tmp/src/pycades_0.1.22769/errormsg.cpp:46:
/opt/cprocsp/include/cpcsp/CSP_WinDef.h:484:152: note: '#pragma message: Your application will require at least CryptoPro CSP 4.0 R3. You can use LEGACY_FORMAT_MESSAGE_IMPL to support older versions.'
484 | a message ("Your application will require at least CryptoPro CSP 4.0 R3. You can use LEGACY_FORMAT_MESSAGE_IMPL to support older versions.")
| ^
In file included from /opt/cprocsp/include/pki/atl/atlbase.h:75,
from /opt/cprocsp/include/pki/atl/atlstr.h:19,
from /tmp/src/pycades_0.1.22769/errormsg.cpp:46:
/opt/cprocsp/include/pki/atl/atlalloc.h: In function 'T ATL::AtlMultiplyThrow(T, T)':
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atlalloc.h:190:3: note: in expansion of macro 'AtlThrow'
190 | AtlThrow(hr);
| ^~~~~~~~
/opt/cprocsp/include/pki/atl/atlalloc.h: In function 'T ATL::AtlAddThrow(T, T)':
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atlalloc.h:202:3: note: in expansion of macro 'AtlThrow'
202 | AtlThrow(hr);
| ^~~~~~~~
/opt/cprocsp/include/pki/atl/atlalloc.h: In member function 'T* ATL::CTempBuffer<T, t_nFixedBytes, Allocator>::Reallocate(size_t)':
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:215:23: note: in expansion of macro 'AtlThrow'
215 | if(!(__atl_condVal)) AtlThrow(hr); \
| ^~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:220:25: note: in expansion of macro 'ATLENSURE_THROW'
220 | #define ATLENSURE(expr) ATLENSURE_THROW(expr, E_FAIL)
| ^~~~~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atlalloc.h:507:3: note: in expansion of macro 'ATLENSURE'
507 | ATLENSURE(nElements < size_t(-1)/sizeof(T) );
| ^~~~~~~~~
/opt/cprocsp/include/pki/atl/atlalloc.h: In member function 'void ATL::CTempBuffer<T, t_nFixedBytes, Allocator>::AllocateHeap(size_t)':
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atlalloc.h:555:4: note: in expansion of macro 'AtlThrow'
555 | AtlThrow( E_OUTOFMEMORY );
| ^~~~~~~~
/opt/cprocsp/include/pki/atl/atlalloc.h: In member function 'void ATL::CTempBuffer<T, t_nFixedBytes, Allocator>::ReAllocateHeap(size_t)':
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atlalloc.h:565:4: note: in expansion of macro 'AtlThrow'
565 | AtlThrow( E_OUTOFMEMORY );
| ^~~~~~~~
/opt/cprocsp/include/pki/atl/atlconv.h: In function 'void ATL::AtlConvAllocMemory(_CharType**, int, _CharType*, int)':
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:215:23: note: in expansion of macro 'AtlThrow'
215 | if(!(__atl_condVal)) AtlThrow(hr); \
| ^~~~~~~~
/opt/cprocsp/include/pki/atl/atlconv.h:182:2: note: in expansion of macro 'ATLENSURE_THROW'
182 | ATLENSURE_THROW(ppBuff != NULL, E_INVALIDARG);
| ^~~~~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:215:23: note: in expansion of macro 'AtlThrow'
215 | if(!(__atl_condVal)) AtlThrow(hr); \
| ^~~~~~~~
/opt/cprocsp/include/pki/atl/atlconv.h:183:2: note: in expansion of macro 'ATLENSURE_THROW'
183 | ATLENSURE_THROW(nLength >= 0, E_INVALIDARG);
| ^~~~~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:215:23: note: in expansion of macro 'AtlThrow'
215 | if(!(__atl_condVal)) AtlThrow(hr); \
| ^~~~~~~~
/opt/cprocsp/include/pki/atl/atlconv.h:184:2: note: in expansion of macro 'ATLENSURE_THROW'
184 | ATLENSURE_THROW(pszFixedBuffer != NULL, E_INVALIDARG);
| ^~~~~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atlconv.h:196:5: note: in expansion of macro 'AtlThrow'
196 | AtlThrow( E_OUTOFMEMORY );
| ^~~~~~~~
/opt/cprocsp/include/pki/atl/atldef.h:133:23: error: 'AtlThrowImpl' is not a member of 'ATL'
133 | #define AtlThrow ATL::AtlThrowImpl
| ^~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atlconv.h:218:3: note: in expansion of macro 'AtlThrow'
218 | AtlThrow( E_OUTOFMEMORY );
| ^~~~~~~~
In file included 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/atlstr.h:19,
from /tmp/src/pycades_0.1.22769/errormsg.cpp:46:
/opt/cprocsp/include/pki/atl/atlconv.h: In member function 'void ATL::CA2WEX<t_nBufferLength>::Init(LPCSTR, UINT)':
/opt/cprocsp/include/pki/atl/atlconv.h:450:4: error: there are no arguments to 'AtlThrowLastWin32' that depend on a template parameter, so a declaration of 'AtlThrowLastWin32' must be available [-fpermissive]
450 | AtlThrowLastWin32();
| ^~~~~~~~~~~~~~~~~
/opt/cprocsp/include/pki/atl/atlconv.h:450:4: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/opt/cprocsp/include/pki/atl/atlconv.h: In member function 'void ATL::CW2AEX<t_nBufferLength>::Init(LPCWSTR, UINT)':
/opt/cprocsp/include/pki/atl/atlconv.h:513:4: error: there are no arguments to 'AtlThrowLastWin32' that depend on a template parameter, so a declaration of 'AtlThrowLastWin32' must be available [-fpermissive]
513 | AtlThrowLastWin32();
| ^~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/pycades.dir/build.make:82: CMakeFiles/pycades.dir/errormsg.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /tmp/src/pycades_0.1.22769/stdafx.h:28,
from /tmp/src/pycades_0.1.22769/PyCadesKeyUsage.h:4,
from /tmp/src/pycades_0.1.22769/PyCadesKeyUsage.cpp:1:
/opt/cprocsp/include/cpcsp/CSP_WinDef.h:484:152: note: '#pragma message: Your application will require at least CryptoPro CSP 4.0 R3. You can use LEGACY_FORMAT_MESSAGE_IMPL to support older versions.'
484 | # pragma message ("Your application will require at least CryptoPro CSP 4.0 R3. You can use LEGACY_FORMAT_MESSAGE_IMPL to support older versions.")
| ^
In file included from /tmp/src/pycades_0.1.22769/stdafx.h:28,
from /tmp/src/pycades_0.1.22769/PyCadesHashedData.h:4,
from /tmp/src/pycades_0.1.22769/PyCadesHashedData.cpp:1:
/opt/cprocsp/include/cpcsp/CSP_WinDef.h:484:152: note: '#pragma message: Your application will require at least CryptoPro CSP 4.0 R3. You can use LEGACY_FORMAT_MESSAGE_IMPL to support older versions.'
484 | # pragma message ("Your application will require at least CryptoPro CSP 4.0 R3. You can use LEGACY_FORMAT_MESSAGE_IMPL to support older versions.")
| ^
In file included from /tmp/src/pycades_0.1.22769/stdafx.h:28,
from /tmp/src/pycades_0.1.22769/PyCadesExtendedKeyUsage.h:4,
from /tmp/src/pycades_0.1.22769/PyCadesExtendedKeyUsage.cpp:1:
/opt/cprocsp/include/cpcsp/CSP_WinDef.h:484:152: note: '#pragma message: Your application will require at least CryptoPro CSP 4.0 R3. You can use LEGACY_FORMAT_MESSAGE_IMPL to support older versions.'
484 | # pragma message ("Your application will require at least CryptoPro CSP 4.0 R3. You can use LEGACY_FORMAT_MESSAGE_IMPL to support older versions.")
| ^
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/pycades.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
root@15bc78d64e0b:/tmp/src/pycades_0.1.22769/build#
Что возможно сделать, чтобы её исправить? Спасибо)
|