[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:31:03 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 jmroot):
Replying to [comment:9 mascguy]:
> In terms of where I'm currently at: Based on the compilation errors
related to C99, my first thought was to patch the build to specify C11.
But that alone didn't make a difference, which suggests that there's more
to it.
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).
--
Ticket URL: <https://trac.macports.org/ticket/63585#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list