Opened 8 months ago

Closed 8 months ago

#69550 closed defect (duplicate)

lua @5.3.6 fails to build on Tiger: error: 'gmtime_r' was not declared in this scope

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: tiger Cc:
Port: lua, lua53, lua54

Description

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_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_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua/work/lua-5.3.6/src'
make: *** [macosx] Error 2

Change History (3)

comment:1 Changed 8 months ago by barracuda156

lua52 installs fine. lua54 fails on:

/opt/local/bin/g++-apple-4.2 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_MACOSX -DLUA_USE_READLINE -I/opt/local/include -Os -arch ppc -I/opt/local/include  -c -o lmathlib.o lmathlib.c
lmathlib.c:305: error: integer constant is too large for 'unsigned long' type
lmathlib.c:338: error: integer constant is too large for 'unsigned long' type
lmathlib.c:551: error: integer constant is too large for 'unsigned long' type
lmathlib.c:571: error: integer constant is too large for 'unsigned long' type
lmathlib.c:586: error: integer constant is too large for 'unsigned long' type
make[2]: *** [lmathlib.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_lua/lua54/work/lua-5.4.6/src'
make[1]: *** [macosx] Error 2

comment:2 Changed 8 months ago by barracuda156

Port: lua53 lua54 added

comment:3 in reply to:  1 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

One error per ticket, please.

The lua53 problem is already reported in #69283.

The lua54 problem is already reported in #67799.

Note: See TracTickets for help on using tickets.