[MacPorts] #63452: gst @3.2.5: getopt.c:576:30: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror, -Wimplicit-function-declaration] (was: gst compilation error (#include <string.h> is missing))

MacPorts noreply at macports.org
Sun Sep 5 18:03:52 UTC 2021


#63452: gst @3.2.5: getopt.c:576:30: error: implicitly declaring library function
'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-
function-declaration]
----------------------------+-----------------------------
  Reporter:  informatimago  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.7.1
Resolution:                 |   Keywords:  catalina bigsur
      Port:  gst            |
----------------------------+-----------------------------
Changes (by ryandesign):

 * keywords:   => catalina bigsur
 * version:   => 2.7.1


Old description:

> See main.log attached; a #include <string.h> is missing.
>

> gst @3.2.5_4 (lang)
>     Free implementation of Smalltalk-80

New description:

 See main.log attached; a #include <string.h> is missing.

 {{{
 gst @3.2.5_4 (lang)
     Free implementation of Smalltalk-80
 }}}

--

Comment:

 It's the typical problem we see with Xcode 12 and later:
 {{{
 getopt.c:576:30: error: implicitly declaring library function 'strcmp'
 with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-
 declaration]
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63452#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list