Opened 3 years ago

Closed 3 years ago

#62916 closed defect (fixed)

dosmacux @1.5_1: error: implicitly declaring library function 'islower' with type 'int (int)'

Reported by: cooljeanius (Eric Gallager) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur catalina Cc:
Port: dosmacux

Description

Another victim of -Werror=implicit-function-declaration being on by default now:

make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_dosmacux/dosmacux/work/dosmacux-1.5'
/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64 -c match.c
/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64 -c strnic.c
match.c:42:9:strnic.c:37:15:  error: errorimplicitly declaring library function 'islower' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]: 
implicitly declaring library function 'isalpha' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
    if (isalpha(*user_string))          /* forbid letter mismatches */
        ^
        c1 = 0xff & (islower(*s1) ? (int)*s1 : tolower(*s1));
                     ^
match.c:42:9: note: strnic.cinclude the header <ctype.h> or explicitly provide a declaration for 'isalpha':
37:15: note: include the header <ctype.h> or explicitly provide a declaration for 'islower'
strnic.c:37:41: error: implicitly declaring library function 'tolower' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
        c1 = 0xff & (islower(*s1) ? (int)*s1 : tolower(*s1));
                                               ^
strnic.c:37:41: note: include the header <ctype.h> or explicitly provide a declaration for 'tolower'
1 error generated.
2 errors generated.
make: *** [strnic.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [match.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_dosmacux/dosmacux/work/dosmacux-1.5'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_dosmacux/dosmacux/work/dosmacux-1.5" && /usr/bin/make -j16 -w all 
Exit code: 2
Error: Failed to build dosmacux: command execution failed
DEBUG: Error code: CHILDSTATUS 38212 2

Change History (2)

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

Cc: ryandesign removed
Owner: set to ryandesign
Status: newaccepted
Summary: dosmacux @1.5_1: error: errorimplicitly declaring library function 'islower' with type 'int (int)'dosmacux @1.5_1: error: implicitly declaring library function 'islower' with type 'int (int)'

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

Resolution: fixed
Status: acceptedclosed

In 66b7901095cc8ef5d7277f27b90b5eb30fda2da3/macports-ports (master):

dosmacux: Fix implicit declaration of functions

Closes: #62916

Note: See TracTickets for help on using tickets.