Opened 9 years ago

Closed 9 years ago

#49607 closed defect (fixed)

py34-matplotlib: error: ‘kCTForegroundColorFromContextAttributeName’ undeclared

Reported by: RivetBenoit (Benoit Rivet) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: leopard Cc: josephsacco, jdgleeson
Port: py34-matplotlib

Description

The following lines in the log may be relevant to understand the bug :

:info:build /usr/bin/gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -arch ppc -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__macosx_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include -I/opt/local/include -I. -Iextern/agg24-svn/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c src/_macosx.m -o build/temp.macosx-10.5-ppc-3.4/src/_macosx.o
:info:build src/_macosx.m: In function ‘GraphicsContext_draw_text’:
:info:build src/_macosx.m:2704: error: ‘kCTForegroundColorFromContextAttributeName’ undeclared (first use in this function)
:info:build src/_macosx.m:2704: error: (Each undeclared identifier is reported only once
:info:build src/_macosx.m:2704: error: for each function it appears in.)
:info:build error: command '/usr/bin/gcc-4.2' failed with exit status 1

This may be specific to Mac OS X.5 PPC : the upgrade went smoothly on another Mac running Mac OS X.10.

Attachments (2)

main.log (100.5 KB) - added by RivetBenoit (Benoit Rivet) 9 years ago.
patch-src-_macosx.m.diff (478 bytes) - added by jdgleeson 9 years ago.

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by RivetBenoit (Benoit Rivet)

Attachment: main.log added

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: leopard added
Summary: py34-matplotlib fails to build on Mac OS X.5 PPCpy34-matplotlib: error: ‘kCTForegroundColorFromContextAttributeName’ undeclared

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: drjesacco@… added

Has duplicate #49617.

comment:3 Changed 9 years ago by seanfarley (Sean Farley)

Resolution: wontfix
Status: newclosed

If someone figures out a patch to fix this, I will work with you to get it into MacPorts (and reopen this ticket) but upstream has made it clear they are no longer fixing bugs for old architectures.

Changed 9 years ago by jdgleeson

Attachment: patch-src-_macosx.m.diff added

comment:4 Changed 9 years ago by jdgleeson

This problem also occurs with py27-matplotlib. The attached patch allows me to build py27-matplotlib on OS X 10.5 PPC. I have not tried it on py34-matplotlib, but I expect it would work. This patch is taken from a fix for the same problem in graphviz http://www.graphviz.org/mantisbt/view.php?id=2405, contributed by ryandesign!

comment:5 Changed 9 years ago by jdgleeson

Cc: jdgleeson@… added

Cc Me!

comment:6 Changed 9 years ago by seanfarley (Sean Farley)

Resolution: wontfix
Status: closedreopened

comment:7 Changed 9 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: reopenedclosed

Pushed this patch in r144224.

Note: See TracTickets for help on using tickets.