[MacPorts] #63585: py27-pygtk: error: implicit declaration of function 'pango_font_metrics_new' is invalid in C99
MacPorts
noreply at macports.org
Sat Oct 9 17:33:54 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 mascguy):
Replying to [comment:11 jmroot]:
> Implicit declaration is only allowed in C89 and K&R C. The correct fix
is to provide function prototypes before calling the functions, usually by
including an appropriate header. `-Wno-error=implicit-function-
declaration` is no longer the default because implicit declaration is
unsafe on arm64 (different ABI depending on what type of arguments a
function takes).
Yep for sure; I purposely left this ticket open, as the initial fix is
intended to stop the bleeding on x86.
I'm now looking at potential code patches, to see if it's a simple matter
of correcting header inclusion.
--
Ticket URL: <https://trac.macports.org/ticket/63585#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list