[MacPorts] #63585: py27-pygtk: error: implicit declaration of function 'pango_font_metrics_new' is invalid in C99
MacPorts
noreply at macports.org
Tue Oct 12 13:43:38 UTC 2021
#63585: py27-pygtk: error: implicit declaration of function
'pango_font_metrics_new' is invalid in C99
------------------------+-----------------------------
Reporter: rhstanton | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: catalina bigsur
Port: py-pygtk |
------------------------+-----------------------------
Comment (by evanmiller):
The issue is {{{pango_font_metrics_new}}} was moved from a public header
to a private header in Pango, I guess between 1.42 and 1.48.
Couple things to try:
Add this line to {{{pango.override}}}, after {{{#include <pango.h>}}}
{{{
PANGO_AVAILABLE_IN_ALL PangoFontMetrics *pango_font_metrics_new (void);
}}}
On line 525 of the same file, try adding {{{*_new}}} to the {{{ignore-
glob}}} list
--
Ticket URL: <https://trac.macports.org/ticket/63585#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list