[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 12:13:15 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):

 `/usr/include/time.h` has:

 {{{
     142 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE)
     143 char *asctime_r(const struct tm *, char *);
     144 char *ctime_r(const time_t *, char *);
     145 struct tm *gmtime_r(const time_t *, struct tm *);
     146 struct tm *localtime_r(const time_t *, struct tm *);
     147 time_t posix2time(time_t);
     148 #if !__DARWIN_UNIX03
     149 char *timezone(int, int);
     150 #endif /* !__DARWIN_UNIX03 */
     151 void tzsetwall(void);
     152 time_t time2posix(time_t);
     153 time_t timelocal(struct tm * const);
     154 time_t timegm(struct tm * const);
     155 #endif /* neither ANSI nor POSIX */
 }}}

 Quite early we get

 {{{
 479:#undef _POSIX_C_SOURCE
 480:#define _POSIX_C_SOURCE 200112L
 }}}

 from pre-processed output…

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


More information about the macports-tickets mailing list