Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#52743 closed defect (fixed)

py27-pyobjc-cocoa @3.0.4+universal: fails to build on Sierra

Reported by: tcwan (TC Wan) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: py27-pyobjc-cocoa

Description

Build fails with the following error(s):

:info:build building 'AppKit._AppKit' extension
:info:build /usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -arch i386 -Ibuild/temp.macosx-10.12-x86_64-2.7/pyobjc-include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/_AppKit.m -o build/temp.macosx-10.12-x86_64-2.7/Modules/_AppKit.o -DPyObjC_BUILD_RELEASE=1012 -Wno-deprecated-declarations
:info:build In file included from Modules/_AppKit.m:11:
:info:build Modules/_AppKit_carbon.m:25:9: warning: implicit declaration of function 'WinObj_Convert' is invalid in C99 [-Wimplicit-function-declaration]
:info:build         return WinObj_Convert(obj, (WindowPtr*)output);
:info:build                ^
:info:build Modules/_AppKit_carbon.m:31:9: warning: implicit declaration of function 'WinObj_New' is invalid in C99 [-Wimplicit-function-declaration]
:info:build         return WinObj_New((WindowPtr)value);
:info:build                ^

Attachments (1)

main.log (77.8 KB) - added by tcwan (TC Wan) 8 years ago.
Build log attached

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by tcwan (TC Wan)

Attachment: main.log added

Build log attached

comment:1 Changed 8 years ago by tcwan (TC Wan)

Note: This is for the universal build of pyobjc-cocoa, the default build is available as a binary download from MacPorts.

comment:2 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

In 7fa6f8ed/macports-ports:

py-pyobjc-cocoa: allow 32-bit build on macOS Sierra

Fixes #52743
On 64-bit systems, py-pyobjc-cocoa does not include pymactoolbox.h.
It declares the parts it needs.
On macOS Sierra, the same trick is needed on 32-bit systems.

comment:3 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added
Note: See TracTickets for help on using tickets.