#36495: icu @49.1.2_0 Patch to allow successful build on Tiger ----------------------------+-------------------------------- Reporter: ccarey@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: tiger haspatch | Port: icu ----------------------------+-------------------------------- The {{{icu @49.1.2_0}}} port does not successfully build on Tiger because of {{{ :info:build /usr/bin/g++-4.0 -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION -DU_HAVE_TIMEZONE=0 -I. "-DDEFAULT_ICU_PLUGINS=\"/opt/local/lib/icu\" " -pipe -O2 -arch ppc -O2 -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -fno-common -c -o putil.ao putil.cpp :info:build putil.cpp: In function ‘const char* uprv_tzname_49(int)’: :info:build putil.cpp:1083: error: ‘localtime_r’ was not declared in this scope :info:build putil.cpp: At global scope: :info:build putil.cpp:1450: warning: ‘const char* age()’ defined but not useddepp :info:build gnumake[1]: *** [putil.ao] Error 1 }}} The attached patch fixes the problem by providing a “backup” declaration of {{{localtime_r}}}() for Darwin. Note that the platform-specific {{{#define}}}s within ICU only distinguish Darwin from other operating systems; they don’t distinguish between Tiger, Leopard, Snow Leopard, &c. This patch works for Tiger, but could theoretically cause a problem for other versions of Mac OS X. I don’t have access to any other Mac OS X version than Tiger, so please ensure that this patch causes no problem with Leopard and beyond before integrating this patch. -- Ticket URL: <https://trac.macports.org/ticket/36495> MacPorts <http://www.macports.org/> Ports system for Mac OS