https://bugs.winehq.org/show_bug.cgi?id=40851
Bug ID: 40851 Summary: macOS 10.12 Build Failure in winspool.drv with cupsGetPPD Product: Wine Version: 1.9.12 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: spooler Assignee: wine-bugs@winehq.org Reporter: alexander@neilson.net.nz
Created attachment 54840 --> https://bugs.winehq.org/attachment.cgi?id=54840 Homebrew Wine build log with 40830 patch applied
After applying the patch from bug 40830 I still experienced a build failure as seen in the trace log attached.
I haven't been able to find any changelog entry to explain why this would be a build failure in macOS 10.12 however from the extract below its feeling to me like the deprecated cupsGetPPD is being missed out however potential call. (I am still to verify the difference between the framework on my 10.11 version)
I wonder if the comment about the build flags from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/cups/ppd.h may be required to be applied to switched (but I haven't validated if I am on the right track or wrong track)
--Extract from the Trace Log-- info.c:788:1: error: use of undeclared identifier 'cupsGetPPD'; did you mean 'cupsGetFd'? CUPS_FUNCS; ^ info.c:779:13: note: expanded from macro 'CUPS_FUNCS' DO_FUNC(cupsGetPPD); \ ^ /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/cups/cups.h:392:22: note: 'cupsGetFd' declared here extern http_status_t cupsGetFd(http_t *http, const char *resource, int fd); ^ info.c:807:29: error: too few arguments to function call, expected 3, have 1 ppd = pcupsGetPPD( name ); ~~~~~~~~~~~ ^ ../../tools/winegcc/winegcc -o wintab.dll16.so -B../../tools/winebuild -m32 -fasynchronous-unwind-tables -shared wintab.dll16.spec \ -m16 -Wb,--main-module,wintab32.dll wintab.o ../../libs/port/libwine_port.a 2 errors generated. make[1]: *** [info.o] Error 1 make: *** [dlls/winspool.drv] Error 2 make: *** Waiting for unfinished jobs....
--Extract from the PPD.h file-- * THESE APIS ARE DEPRECATED. TO COMPILE WITHOUT WARNINGS ADD * -D_PPD_DEPRECATED="" TO YOUR COMPILE OPTIONS. THIS HEADER AND THESE * FUNCTIONS WILL BE REMOVED IN A FUTURE RELEASE OF CUPS.
Regards Alexander