Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#55816 closed defect (fixed)

lua52 @5.2.4_1 : cannot build with OS X 10.4.11

Reported by: miniupnp (Thomas BERNARD) Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: haspatch, tiger Cc:
Port: lua52

Description

lua52 port fails to build on my old PowerPC with 10.4.11

$ uname -a
Darwin power-mac-g4-de-dvers-divers.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
:info:build liolib.c: In function 'f_seek':
:info:build liolib.c:552: error: 'off_t' undeclared (first use in this function)
:info:build liolib.c:552: error: (Each undeclared identifier is reported only once
:info:build liolib.c:552: error: for each function it appears in.)
:info:build liolib.c:552: error: expected ';' before 'offset'
:info:build liolib.c:553: error: 'offset' undeclared (first use in this function)

Attached is a patch to fix the problem

Attachments (2)

lua-5.2.4.macosx10.4.11.patch (371 bytes) - added by miniupnp (Thomas BERNARD) 6 years ago.
Patch to fix build problem of lua52
main.log (37.1 KB) - added by miniupnp (Thomas BERNARD) 6 years ago.
build log

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by miniupnp (Thomas BERNARD)

Patch to fix build problem of lua52

Changed 6 years ago by miniupnp (Thomas BERNARD)

Attachment: main.log added

build log

comment:1 Changed 6 years ago by miniupnp (Thomas BERNARD)

Note : I checked a more recent version of lua, the #include <sys/types.h> is included upstream...

comment:2 Changed 6 years ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In bef979e677f055409e872bbb72d15906310394c0/macports-ports:

lua52: add fix for Tiger

this fix is already in lua53+ and
builds on all systems tested
closes: #55816

comment:3 Changed 6 years ago by kencu (Ken)

Thanks! FYI patch needed to be adjusted to work with MacPorts' default patchlevel setting.

FYI, for more Tiger-related fixes, you might want to check out <https://github.com/kencu/TigerPorts>. I've been collecting suitable patches and fixes that relate to Tiger, and if appropriate, will try to integrate as many of them into MacPorts main repo as seem reasonable.

Note: See TracTickets for help on using tickets.