Actions
Bug #1443
closedCompilation error when using non-apple compiler on OSX platform
Start date:
Due date:
% Done:
100%
Estimated time:
Description
(Not supported configuration, but should be fixed when time allows)
The issue was reported by Haowei when using macports-installed gcc-4.8:
../src/security/sec-tpm-osx.cpp:579:3: error: 'SecTransformRef' was not declared in this scope
SecTransformRef signer = SecSignTransformCreate((SecKeyRef)privateKey, &error);
^
../src/security/sec-tpm-osx.cpp:579:19: error: expected ';' before 'signer'
SecTransformRef signer = SecSignTransformCreate((SecKeyRef)privateKey, &error);
^
../src/security/sec-tpm-osx.cpp:583:46: error: 'signer' was not declared in this scope
Boolean set_res = SecTransformSetAttribute(signer,
^
../src/security/sec-tpm-osx.cpp:584:46: error: 'kSecTransformInputAttributeName' was not declared in this scope
kSecTransformInputAttributeName,
^
../src/security/sec-tpm-osx.cpp:586:52: error: 'SecTransformSetAttribute' was not declared in this scope
&error);
^
../src/security/sec-tpm-osx.cpp:591:28: error: 'kSecPaddingKey' was not declared in this scope
kSecPaddingKey,
^
../src/security/sec-tpm-osx.cpp:592:28: error: 'kSecPaddingPKCS1Key' was not declared in this scope
kSecPaddingPKCS1Key,
^
../src/security/sec-tpm-osx.cpp:598:38: error: 'kSecDigestTypeAttribute' was not declared in this scope
It is a known issue that OSX-specific things may not work with non-apple compiler. But the error is not acceptable anyways: it should be solved, if it is possible or disable compilation of *-osx.cpp files in such cases.
Updated by Alex Afanasyev over 11 years ago
- Status changed from New to Code review
- Assignee set to Alex Afanasyev
- % Done changed from 0 to 100
Updated by Alex Afanasyev over 11 years ago
- Status changed from Code review to Closed
Actions