[MacPorts] #55415: cmake @3.10.0 does not build on PPC Tiger, Mac OS X 10.4.11, because error: void value not ignored as it ought to be
MacPorts
noreply at macports.org
Sun Nov 26 23:40:16 UTC 2017
#55415: cmake @3.10.0 does not build on PPC Tiger, Mac OS X 10.4.11, because error:
void value not ignored as it ought to be
------------------------+-----------------------
Reporter: ballapete | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords: tiger
Port: cmake |
------------------------+-----------------------
Comment (by ballapete):
Replying to [comment:2 kencu]:
> try adding this and please report back
>
The error is left:
{{{
/opt/local/bin/gcc-mp-6 -pipe -Os -m32
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Bootstrap.cmk
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Source
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Source/LexerParser
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Utilities
-DCMAKE_BOOTSTRAP -D_DARWIN_USE_64_BIT_INODE=1
-D_DARWIN_UNLIMITED_SELECT=1
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Utilities/cmlibuv/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Utilities/cmlibuv/src/unix
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Utilities/cmlibuv/src
-c
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Utilities/cmlibuv/src/unix/core.c
-o uv-src-unix-core.c.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Utilities/cmlibuv/src/unix/core.c:
In function 'uv_os_unsetenv':
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.0/Utilities/cmlibuv/src/unix/core.c:1292:7:
error: void value not ignored as it ought to be
if (unsetenv(name) != 0)
^~~~~~~~~~~~~~
gmake: *** [Makefile:384: uv-src-unix-core.c.o] Error 1
---------------------------------------------
}}}
The `pre-processor` produces this code:
{{{
int uv_os_unsetenv(const char* name) {
if (unsetenv(name) != 0)
return -
# 1293 "Utilities/cmlibuv/src/unix/core.c" 3 4
(*__error())
# 1293 "Utilities/cmlibuv/src/unix/core.c"
;
return 0;
}
}}}
`uv_os_unsetenv()` is declared in
{{{
Utilities/cmlibuv/include/uv.h:UV_EXTERN int uv_os_setenv(const char*
name, const char* value);
Utilities/cmlibuv/include/uv.h:UV_EXTERN int uv_os_unsetenv(const char*
name);
}}}
They both overwrite the system's declarations.
--
Ticket URL: <https://trac.macports.org/ticket/55415#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list