https://bugs.winehq.org/show_bug.cgi?id=44173
Bug ID: 44173 Summary: error: use of undeclared identifier 'kCCAlgorithmAES' Product: Wine Version: 3.0-rc1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: bcrypt Assignee: wine-bugs@winehq.org Reporter: wine@ryandesign.com Distribution: ---
Hi, I'm the maintainer of wine in MacPorts.
wine 3.0-rc1 does not build on OS X 10.8 and earlier because you are calling CCCryptorCreateWithMode with the constant kCCAlgorithmAES, and kCCAlgorithmAES was introduced in OS X 10.9.
bcrypt_main.c:916:68: error: use of undeclared identifier 'kCCAlgorithmAES'; did you mean 'kCCAlgorithmDES'? bcrypt_main.c:922:68: error: use of undeclared identifier 'kCCAlgorithmAES'; did you mean 'kCCAlgorithmDES'?
Here is a build log of the failure:
https://build.macports.org/builders/ports-10.8_x86_64_legacy-builder/builds/...
OS X 10.8 and earlier used the constant kCCAlgorithmAES128 which has the same value and means the same thing. kCCAlgorithmAES128 is still in the headers on macOS 10.13 so it should be safe to always use the old kCCAlgorithmAES128 constant name. That's what I did in MacPorts to fix it:
https://github.com/macports/macports-ports/commit/57f6a37383ad2acd0b25bcec19...