[MacPorts] #40433: lua @5.2.2 fails to build on Tiger (with solution)

MacPorts noreply at macports.org
Mon Sep 9 15:06:57 PDT 2013


#40433: lua @5.2.2 fails to build on Tiger (with solution)
----------------------------+--------------------------------
 Reporter:  mp@…            |      Owner:  macports-tickets@…
     Type:  defect          |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:  2.2.0
 Keywords:  tiger haspatch  |       Port:  lua
----------------------------+--------------------------------
 During build on Tiger (10.4), lua 5.2.2 fails to compile liolib.c (off_t
 undeclared)

 {{{
 :info:build /usr/bin/gcc-4.0 -O2 -Wall -DLUA_COMPAT_ALL -fno-common
 -DLUA_USE_MACOSX\
     -Os -I/opt/local/include -arch ppc   -c -o liolib.o liolib.c
 :info:build liolib.c: In function ‘f_seek’:
 :info:build liolib.c:551: error: ‘off_t’ undeclared (first use in this
 function)
 :info:build liolib.c:551: error: (Each undeclared identifier is reported
 only once
 :info:build liolib.c:551: error: for each function it appears in.)
 :info:build liolib.c:551: error: parse error before ‘offset’
 :info:build liolib.c:552: error: ‘offset’ undeclared (first use in this
 function)
 :info:build make[2]: *** [liolib.o] Error 1
 }}}

 Solution is to add
 {{{
 #include <sys/types.h>
 }}}
 as advised in
 http://lua-users.org/lists/lua-l/2011-12/msg00708.html

 Attaching solution as Portfile diff.

-- 
Ticket URL: <https://trac.macports.org/ticket/40433>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list