[MacPorts] #69283: lua @5.3.6_3 does not build on PPC Tiger, Mac OS X 10.4.11, because gmtime_r' and 'localtime_r' were not declared in this scope
MacPorts
noreply at macports.org
Mon Feb 5 11:52:24 UTC 2024
#69283: lua @5.3.6_3 does not build on PPC Tiger, Mac OS X 10.4.11, because
gmtime_r' and 'localtime_r' were not declared in this scope
------------------------+-----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: | Keywords: ppc tiger
Port: lua |
------------------------+-----------------------
Comment (by ballapete):
Using `configure.compiler=macports-gcc-7` I get:
{{{
/opt/local/bin/g++-mp-7 -O2 -Wall -Wextra -DLUA_COMPAT_5_2
-DLUA_USE_MACOSX -I/opt/local/include -DLUA_COMPAT_5_1 -Os -arch ppc
-I/opt/local/include -DLUA_COMPAT_5_1 -c -o loslib.o loslib.c
loslib.c: In function 'int os_date(lua_State*)':
loslib.c:86:24: error: 'gmtime_r' was not declared in this scope
#define l_gmtime(t,r) gmtime_r(t,r)
^
loslib.c:290:11: note: in expansion of macro 'l_gmtime'
stm = l_gmtime(&t, &tmr);
^~~~~~~~
loslib.c:86:24: note: suggested alternative: 'gmtime'
#define l_gmtime(t,r) gmtime_r(t,r)
^
loslib.c:290:11: note: in expansion of macro 'l_gmtime'
stm = l_gmtime(&t, &tmr);
^~~~~~~~
loslib.c:87:26: error: 'localtime_r' was not declared in this scope
#define l_localtime(t,r) localtime_r(t,r)
^
loslib.c:294:11: note: in expansion of macro 'l_localtime'
stm = l_localtime(&t, &tmr);
^~~~~~~~~~~
loslib.c:87:26: note: suggested alternative: 'localtime'
#define l_localtime(t,r) localtime_r(t,r)
^
loslib.c:294:11: note: in expansion of macro 'l_localtime'
stm = l_localtime(&t, &tmr);
^~~~~~~~~~~
make[2]: *** [loslib.o] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua/work/lua-5.3.6/src'
}}}
So it's quite clearly faulty code…
--
Ticket URL: <https://trac.macports.org/ticket/69283#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list