[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:29:14 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
 Keywords:  ppc tiger  |       Port:  lua
-----------------------+--------------------
 {{{
 /opt/local/bin/g++-apple-4.2 -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:290: error: 'gmtime_r' was not declared in this scope
 loslib.c:294: error: 'localtime_r' was not declared in this scope
 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'
 make[1]: *** [macosx] Error 2
 make[1]: 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'
 make: *** [macosx] Error 2
 make: 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'
 Command failed:  cd
 "/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"
 && /usr/bin/make -w echo macosx MACPORTS_PREFIX=/opt/local
 MYLDFLAGS="$LDFLAGS" MACPORTS_VERSION=5.3.6 TO_LIB=liblua.a
 MACPORTS_BRANCH=5.1
 CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua/work/compwrap/cxx/opt/local/bin/g++-apple-4.2"
 OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua/work/compwrap/objc/opt/local/bin
 /gcc-apple-4.2"
 OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua/work/compwrap/objcxx/opt/local/bin/g++-apple-4.2"
 INSTALL="/usr/bin/install -c" CC=/opt/local/bin/g++-apple-4.2
 MYCFLAGS="$CPPFLAGS $CXXFLAGS" MYLDFLAGS="$LDFLAGS " LUA_A=liblua-c++.a
 MACPORTS_SHARED_LIB=liblua-c++.dylib
 Exit code: 2
 Error: Failed to build lua: command execution failed
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69283>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list