Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14280 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20837 invoked by uid 1010); 4 Jan 2005 21:44:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71020 invoked from network); 4 Jan 2005 21:26:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2005 21:26:30 -0000 X-Host-Fingerprint: 209.251.159.130 nameserver1.brainwerkz.net Linux 2.5 (sometimes 2.4) (4) Received: from ([209.251.159.130:46883] helo=nameserver1.mcve.com) by pb1.pair.com (ecelerity HEAD (r3992M)) with SMTP id F5/D8-06279-40A0BD14 for ; Tue, 04 Jan 2005 16:26:28 -0500 Received: from [192.168.1.99] (shop.monetra.com [209.251.159.140]) by nameserver1.mcve.com (Postfix) with ESMTP id 071E814C009 for ; Tue, 4 Jan 2005 16:26:26 -0500 (EST) Message-ID: <41DB0A01.2000007@mainstreetsoftworks.com> Date: Tue, 04 Jan 2005 16:26:25 -0500 User-Agent: Mozilla Thunderbird 1.0 (X11/20041208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------070307000903020508070006" Subject: PHP_SHLIB_SUFFIX not being properly set on MacOSX From: brad@mainstreetsoftworks.com (Brad House) --------------070307000903020508070006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Just tried to phpize an extension, and it appears as though there is a problem on MacOSX. PHP_SHLIB_SUFFIX defaults to .so because a check is run on $host_alias, which is set to "". Attached is a patch to use $host_os instead which fixes the problem. This is against php-4.3.10 by the way. I have not confirmed if PHP 5 has this issue or not. -Brad --------------070307000903020508070006 Content-Type: text/plain; name="php-shlib-suffix.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="php-shlib-suffix.diff" diff -ruN php-4.3.10.old/acinclude.m4 php-4.3.10/acinclude.m4 --- php-4.3.10.old/acinclude.m4 2004-12-11 06:17:21.000000000 -0500 +++ php-4.3.10/acinclude.m4 2005-01-04 16:23:08.187803400 -0500 @@ -279,7 +279,7 @@ AC_DEFUN([PHP_SHLIB_SUFFIX_NAME],[ PHP_SUBST(SHLIB_SUFFIX_NAME) SHLIB_SUFFIX_NAME=so - case $host_alias in + case $host_os in *hpux*[)] SHLIB_SUFFIX_NAME=sl ;; diff -ruN php-4.3.10.old/aclocal.m4 php-4.3.10/aclocal.m4 --- php-4.3.10.old/aclocal.m4 2004-12-14 12:55:17.000000000 -0500 +++ php-4.3.10/aclocal.m4 2005-01-04 16:22:56.439589400 -0500 @@ -279,7 +279,7 @@ AC_DEFUN([PHP_SHLIB_SUFFIX_NAME],[ PHP_SUBST(SHLIB_SUFFIX_NAME) SHLIB_SUFFIX_NAME=so - case $host_alias in + case $host_os in *hpux*[)] SHLIB_SUFFIX_NAME=sl ;; --------------070307000903020508070006--