[MacPorts] #62594: yydecode @0.2.10: error: implicitly declaring library function 'strcmp'
MacPorts
noreply at macports.org
Thu Apr 1 00:25:49 UTC 2021
#62594: yydecode @0.2.10: error: implicitly declaring library function 'strcmp'
-----------------------------+----------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: bigsur catalina | Port: yydecode
-----------------------------+----------------------
Another victim of `-Werror=implicit-function-declaration` being on by
default now:
{{{
source='getopt.c' object='getopt.o' libtool=no \
depfile='.deps/getopt.Po' tmpdepfile='.deps/getopt.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
/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 `test -f 'getopt.c' || echo './'`getopt.c
getopt.c:423:30: error: implicitly declaring library function 'strcmp'
with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-
declaration]
if (optind != argc && !strcmp (argv[optind], "--"))
^
getopt.c:423:30: note: include the header <string.h> or explicitly provide
a declaration for 'strcmp'
getopt.c:505:63: error: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-
declaration]
if ((unsigned int)(nameend - nextchar) == (unsigned int)
strlen (p->name))
^
getopt.c:505:63: note: include the header <string.h> or explicitly provide
a declaration for 'strlen'
2 errors generated.
make[2]: *** [getopt.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_yydecode/yydecode/work/yydecode-0.2.10/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_yydecode/yydecode/work/yydecode-0.2.10/src'
make: *** [all-recursive] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_yydecode/yydecode/work/yydecode-0.2.10'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_yydecode/yydecode/work/yydecode-0.2.10"
&& /usr/bin/make -j16 -w all
Exit code: 2
Error: Failed to build yydecode: command execution failed
DEBUG: Error code: CHILDSTATUS 99981 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62594>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list