[MacPorts] #55594: libuv @1.18.0 does not build on PPC Tiger because configure does not determine that unsetenv() is a void function?
MacPorts
noreply at macports.org
Wed Dec 27 11:38:38 UTC 2017
#55594: libuv @1.18.0 does not build on PPC Tiger because configure does not
determine that unsetenv() is a void function?
-----------------------+-------------------
Reporter: ballapete | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Keywords: tiger | Port: libuv
-----------------------+-------------------
{{{
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libuv/libuv/work/libuv-1.18.0"
&& /usr/bin/make -w all
DEBUG: system: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libuv/libuv/work/libuv-1.18.0"
&& /usr/bin/make -w all
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libuv/libuv/work/libuv-1.18.0'
CC src/libuv_la-fs-poll.lo
CC src/libuv_la-inet.lo
CC src/libuv_la-threadpool.lo
CC src/libuv_la-uv-common.lo
CC src/libuv_la-version.lo
CC src/unix/libuv_la-async.lo
CC src/unix/libuv_la-core.lo
src/unix/core.c: In function 'uv_os_unsetenv':
src/unix/core.c:1306: error: void value not ignored as it ought to be
make: *** [src/unix/libuv_la-core.lo] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libuv/libuv/work/libuv-1.18.0'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_libuv/libuv/work/libuv-1.18.0"
&& /usr/bin/make -w all
Exit code: 2
}}}
`core.c` has:
{{{
1302 int uv_os_unsetenv(const char* name) {
1303 if (name == NULL)
1304 return -EINVAL;
1305
1306 if (unsetenv(name) != 0)
1307 return -errno;
1308
1309 return 0;
1310 }
}}}
Couldn't it just `return 0`?
--
Ticket URL: <https://trac.macports.org/ticket/55594>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list