FAQ
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

Search Discussions

  • Philip Olson at May 25, 2010 at 1:04 am

    On May 24, 2010, at 12:42 PM, Stas Malyshev wrote:

    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
    ])
    Hello Stas,

    This patch works for me, and is required for ext/intl to build.

    Regards,
    Philip

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedMay 24, '10 at 7:43p
activeMay 25, '10 at 1:04a
posts2
users2
websitephp.net

2 users in discussion

Philip Olson: 1 post Stas Malyshev: 1 post

People

Translate

site design / logo © 2022 Grokbase