[Bug 44173] New: error: use of undeclared identifier 'kCCAlgorithmAES'

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Dec 15 01:04:45 CST 2017


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 at winehq.org
          Reporter: wine at 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/46509/steps/install-port/logs/stdio

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/57f6a37383ad2acd0b25bcec198cbd09f6bab03f#diff-c3e6aebd71a06e3be74b269ad2a67d82

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list