Opened 4 years ago

Closed 4 years ago

#61759 closed defect (fixed)

scale2x @2.4_2: error: implicitly declaring library function 'strcmp'

Reported by: MaddTheSane (C.W. Betts) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur catalina Cc:
Port: scale2x

Description (last modified by MaddTheSane (C.W. Betts))

This is another case of a file not including the right header introduced by Big Sur:

:info:build scalex.c:149:9: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
:info:build                                 if (strcmp(optarg, "2") == 0) {
:info:build                                     ^
:info:build scalex.c:149:9: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
:info:build 1 error generated.
:info:build make[1]: *** [scalex.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build scalerx.c:606:9: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
:info:build                                 if (strcmp(optarg, "2") == 0) {
:info:build                                     ^
:info:build scalerx.c:606:9: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
:info:build 1 error generated.
:info:build make[1]: *** [scalerx.o] Error 1

It looks like a simple patch will make it compile fine.

Change History (3)

comment:1 Changed 4 years ago by MaddTheSane (C.W. Betts)

Description: modified (diff)
Keywords: bigsur added

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: catalina added
Owner: set to ryandesign
Status: newaccepted
Summary: scale2x @2.4_2: implicit declared function strcmpscale2x @2.4_2: error: implicitly declaring library function 'strcmp'

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

Resolution: fixed
Status: acceptedclosed

In 6200a1443ed7cc312150914d905874a0365372ee/macports-ports (master):

scale2x: Update to 4.0

Closes: #61759

Note: See TracTickets for help on using tickets.