[MacPorts] #62916: dosmacux @1.5_1: error: errorimplicitly declaring library function 'islower' with type 'int (int)'
MacPorts
noreply at macports.org
Tue May 18 09:48:54 UTC 2021
#62916: dosmacux @1.5_1: error: errorimplicitly declaring library function
'islower' with type 'int (int)'
-----------------------------+----------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: bigsur catalina | Port: dosmacux
-----------------------------+----------------------
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
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62916>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list