Opened 3 years ago

Closed 3 years ago

#61730 closed defect (fixed)

enscript @1.6.6: error: implicitly declaring library function 'strcmp

Reported by: borwickatuw (John Borwick) Owned by: wteiken (Wilfried Teiken)
Priority: Normal Milestone:
Component: ports Version:
Keywords: bigsur catalina Cc: mndavidoff (Monte Davidoff)
Port: enscript

Description

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

Change History (4)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur catalina added
Summary: enscript 1.6.6: won't build due to -Wimplicit-function-declaration:enscript @1.6.6: error: implicitly declaring library function 'strcmp

No, please don't use that workaround. Please fix it properly by including the right headers, as I described at length on the mailing list.

comment:2 Changed 3 years ago by mndavidoff (Monte Davidoff)

Cc: mndavidoff added

comment:3 Changed 3 years ago by wteiken (Wilfried Teiken)

Created https://github.com/macports/macports-ports/pull/9569 for this in case that helps.

comment:4 Changed 3 years ago by wteiken (Wilfried Teiken)

Owner: set to wteiken
Resolution: fixed
Status: newclosed

In a24179380383ebda2ad9209f958ef8dd4ce7354d/macports-ports (master):

enscript: add patch to add missing strings.h include.

  • fixes a missing include that prevents building on Big Sur.
  • add missing size checksum

Fixes: #61730

Note: See TracTickets for help on using tickets.