Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48450 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81643 invoked from network); 24 May 2010 19:43:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2010 19:43:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 74.85.23.205 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 74.85.23.205 mail.sugarcrm.net Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from [74.85.23.205] ([74.85.23.205:58749] helo=mail.sugarcrm.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/BC-13219-2C6DAFB4 for ; Mon, 24 May 2010 15:43:00 -0400 Received: from stasmacbook.cup1.sugarcrm.net (10.8.11.37) by exch-cupertino1.cup1.sugarcrm.net (10.8.1.103) with Microsoft SMTP Server (TLS) id 8.1.393.1; Mon, 24 May 2010 12:42:55 -0700 Message-ID: <4BFAD6BF.5000509@sugarcrm.com> Date: Mon, 24 May 2010 12:42:55 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: ext/intl builds on Mac From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! The patch below seems to fix ext/intl (and maybe others) compile problems on Mac OS X. The problem seems to be because C++ needs libstdc++ and for some reason it doesn't get added on Mac. Could people having build problems on Mac see if this fixes the problem for them (buildconf/re-configure required)? Also if some autoconf guru could see if that makes sense in general, that'd be nice too :) The patch: --- acinclude.m4 (revision 299709) +++ acinclude.m4 (working copy) @@ -768,6 +768,11 @@ if test -z "$php_cxx_done"; then AC_PROG_CXX AC_PROG_CXXCPP + case $host_alias in + *darwin*) + PHP_ADD_LIBRARY(stdc++) + ;; + esac php_cxx_done=yes fi ]) -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227