[MacPorts] #61145: libvterm @0.1.2:error: implicit declaration of function 'strdup' is invalid in C99
MacPorts
noreply at macports.org
Tue Sep 8 08:39:15 UTC 2020
#61145: libvterm @0.1.2:error: implicit declaration of function 'strdup' is invalid
in C99
-----------------------+----------------------
Reporter: keke-cute | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.99
Keywords: | Port: libvterm
-----------------------+----------------------
{{{
---> Building libvterm
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libvterm/libvterm/work/libvterm-0.1.2"
&& /usr/bin/make -j4 -w all PREFIX=/opt/local
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libvterm/libvterm/work/libvterm-0.1.2'
CC bin/vterm-ctrl.c
bin/vterm-ctrl.c:117:10: error: implicit declaration of function 'strdup'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return strdup(csi);
^
bin/vterm-ctrl.c:117:10: note: did you mean 'strcmp'?
/Applications/Xcode-
beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/string.h:77:6:
note: 'strcmp' declared here
int strcmp(const char *__s1, const char *__s2);
^
bin/vterm-ctrl.c:117:10: warning: incompatible integer to pointer
conversion returning 'int' from a function with result type 'char *'
[-Wint-conversion]
return strdup(csi);
^~~~~~~~~~~
bin/vterm-ctrl.c:142:10: error: implicit declaration of function 'strdup'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return strdup(dcs);
^
bin/vterm-ctrl.c:142:10: warning: incompatible integer to pointer
conversion returning 'int' from a function with result type 'char *'
[-Wint-conversion]
return strdup(dcs);
^~~~~~~~~~~
bin/vterm-ctrl.c:129:10: warning: result of comparison of constant 156
with expression of type 'char' is always false [-Wtautological-constant-
out-of-range-compare]
if(c == 0x9c) // ST
~ ^ ~~~~
3 warnings and 2 errors generated.
make: *** [bin/vterm-ctrl] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libvterm/libvterm/work/libvterm-0.1.2'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libvterm/libvterm/work/libvterm-0.1.2"
&& /usr/bin/make -j4 -w all PREFIX=/opt/local
Exit code: 2
Error: Failed to build libvterm: command execution failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61145>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list