[MacPorts] #61730: enscript 1.6.6: won't build due to -Wimplicit-function-declaration:

MacPorts noreply at macports.org
Wed Dec 2 23:33:57 UTC 2020


#61730: enscript 1.6.6: won't build due to -Wimplicit-function-declaration:
-------------------------+----------------------
 Reporter:  borwickatuw  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:  enscript
-------------------------+----------------------
 Here's the errors from the build log:

 {{{
 :info:build getopt.c:527:30: error: implicitly declaring library function
 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-
 function-declaration]
 :info:build getopt.c:603:7: error: implicitly declaring library function
 'strncmp' with type 'int (const char *, const char *, unsigned long)'
 [-Werror,-Wimplicit-function-declaration]
 :info:build getopt.c:606:21: error: implicitly declaring library function
 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-
 function-declaration]
 }}}

 This works as a workaround:

 {{{
 configure.cflags-append -Wno-implicit-function-declaration
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61730>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list