[MacPorts] #58591: check @0.10.0 does not build on PPC Tiger, MacOSX 10.4.11, because of native void function unsetenv()
MacPorts
noreply at macports.org
Wed Jun 12 17:28:27 UTC 2019
#58591: check @0.10.0 does not build on PPC Tiger, MacOSX 10.4.11, because of
native void function unsetenv()
-----------------------+--------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Keywords: tiger | Port: check
-----------------------+--------------------
{{{
/opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I.. -I../src -I../src
-I/opt/local/include -pipe -Os -arch ppc -Wextra -Wstrict-prototypes
-Wmissing-prototypes -W\
write-strings -Wno-variadic-macros -Wimport -Wfatal-errors -Wformat=2
-Winit-self -Wmissing-include-dirs -Wswitch-default -Wunknown-pragmas -MT
check_check_export-che\
ck_check_log.o -MD -MP -MF .deps/check_check_export-check_check_log.Tpo -c
-o check_check_export-check_check_log.o `test -f 'check_check_log.c' ||
echo './'`check_che\
ck_log.c
check_check_log.c: In function 'restore_env':
check_check_log.c:24: error: void value not ignored as it ought to be
compilation terminated due to -Wfatal-errors.
{standard input}:5:FATAL:.abort detected. Assembly stopping.
make[2]: *** [check_check_export-check_check_log.o] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_check/check/work/chec\
k-0.10.0/tests'
}}}
The source code is:
{{{
9 #if HAVE_DECL_SETENV
10 /* save environment variable's value and set new value */
11 static int save_set_env(const char *name, const char *value,
12 const char **old_value)
13 {
14 *old_value = getenv(name);
15 return setenv(name, value, 1);
16 }
17
18 /* restore environment variable's old value, handle cases where
19 variable must be unset (old value is NULL) */
20 static int restore_env(const char *name, const char *old_value)
21 {
22 int res;
23 if (old_value == NULL) {
24 res = unsetenv(name);
25 } else {
26 res = setenv(name, old_value, 1);
27 }
28 return res;
29 }
30 #endif /* HAVE_DECL_SETENV */
}}}
--
Ticket URL: <https://trac.macports.org/ticket/58591>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list