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...
https://bugs.winehq.org/show_bug.cgi?id=44173
Ryan Schmidt wine@ryandesign.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS|Linux |Mac OS X
https://bugs.winehq.org/show_bug.cgi?id=44173
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- The fix looks good, please send it to wine-devel.
https://bugs.winehq.org/show_bug.cgi?id=44173
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |dda67031c78c50fae00140976c2 | |459c58bc5c936
--- Comment #2 from Hans Leidekker hans@meelstraat.net --- Fix committed as dda67031c78c50fae00140976c2459c58bc5c936.
https://bugs.winehq.org/show_bug.cgi?id=44173
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.0-rc3.