https://bugs.winehq.org/show_bug.cgi?id=44174
Bug ID: 44174 Summary: implicit declaration of function 'CCCryptorCreateWithMode' Product: Wine Version: 3.0-rc1 Hardware: x86 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: bcrypt Assignee: wine-bugs@winehq.org Reporter: wine@ryandesign.com
Hi, I'm the maintainer of wine in MacPorts.
wine 3.0-rc1 fails to build on Mac OS X 10.6 because you are using the function CCCryptorCreateWithMode which was introduced in OS X 10.7.
bcrypt_main.c: In function ‘key_set_params’: bcrypt_main.c:916: warning: implicit declaration of function ‘CCCryptorCreateWithMode’ bcrypt_main.c:916: error: ‘kCCModeCBC’ undeclared (first use in this function) bcrypt_main.c:916: error: (Each undeclared identifier is reported only once bcrypt_main.c:916: error: for each function it appears in.) bcrypt_main.c:916: error: ‘ccNoPadding’ undeclared (first use in this function)
Here is a build log of the failure:
https://build.macports.org/builders/ports-10.6_x86_64_legacy-builder/builds/...
I don't know how to fix this; I don't know what 10.6-compatible functionality would be equivalent to CCCryptorCreateWithMode.
https://bugs.winehq.org/show_bug.cgi?id=44174
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- Created attachment 59939 --> https://bugs.winehq.org/attachment.cgi?id=59939 patch
Does this patch fix your build on 10.6?
https://bugs.winehq.org/show_bug.cgi?id=44174
--- Comment #2 from Ryan Schmidt wine@ryandesign.com --- Thank you, yes, with that patch, wine 3.0-rc2 builds successfully on Mac OS X 10.6.
https://bugs.winehq.org/show_bug.cgi?id=44174
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |68cff26b1b2d9d83b5f0a16b16f | |78c1b57f62ebd
--- Comment #3 from Hans Leidekker hans@meelstraat.net --- Patch committed as 68cff26b1b2d9d83b5f0a16b16f78c1b57f62ebd.
https://bugs.winehq.org/show_bug.cgi?id=44174
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.0-rc3.
https://bugs.winehq.org/show_bug.cgi?id=44174
Jeremy Huddleston jeremyhu@freedesktop.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremyhu@freedesktop.org
--- Comment #5 from Jeremy Huddleston jeremyhu@freedesktop.org --- This bug is not fixed in 3.0-rc3.
Lion fails to compile with 3.0-rc3 with this issue.
CCCryptorCreateWithMode was added in Lion, but it wasn't made available in the SDK until Mountain Lion.
Please reopen and adjust that MAC_OS_X_VERSION_MAX_ALLOWED check to >= 1080.
https://bugs.winehq.org/show_bug.cgi?id=44174
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Hopefully it works in 3.0-rc4.