Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14299 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89794 invoked by uid 1010); 6 Jan 2005 22:05:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89724 invoked from network); 6 Jan 2005 22:05:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2005 22:05:05 -0000 X-Host-Fingerprint: 209.251.159.130 nameserver1.brainwerkz.net Linux 2.5 (sometimes 2.4) (4) Received: from ([209.251.159.130:59683] helo=nameserver1.mcve.com) by pb1.pair.com (ecelerity HEAD (r4049:4050)) with SMTP id 2A/D8-30894-016BDD14 for ; Thu, 06 Jan 2005 17:05:04 -0500 Received: from [192.168.1.99] (shop.monetra.com [209.251.159.140]) by nameserver1.mcve.com (Postfix) with ESMTP id 1FC3B14C06F; Thu, 6 Jan 2005 17:05:02 -0500 (EST) Message-ID: <41DDB60D.6030606@mainstreetsoftworks.com> Date: Thu, 06 Jan 2005 17:05:01 -0500 User-Agent: Mozilla Thunderbird 1.0 (X11/20041208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrei Zmievski Cc: internals@lists.php.net References: <41DB0A01.2000007@mainstreetsoftworks.com> <20050106212123.GA17621@gravitonic.com> <41DDAF00.50607@mainstreetsoftworks.com> <20050106214201.GA17784@gravitonic.com> <41DDB1D0.9030308@mainstreetsoftworks.com> <20050106215514.GA18475@gravitonic.com> In-Reply-To: <20050106215514.GA18475@gravitonic.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP_SHLIB_SUFFIX not being properly set on MacOSX From: brad@mainstreetsoftworks.com (Brad House) ok, so they _are_ different names then: In the auto-scripts it's SHLIB_SUFFIX_NAME as per this that get's pulled in as an actual PHP constant. main/build-defs.h.in:91:#define PHP_SHLIB_SUFFIX "@SHLIB_SUFFIX_NAME@" main/main.c:1206: REGISTER_MAIN_STRINGL_CONSTANT("PHP_SHLIB_SUFFIX", PHP_SHLIB_SUFFIX, sizeof(PHP_SHLIB_SUFFIX)-1, CONST_PERSISTENT | CONST_CS); Even though it is confusing, PHP_SHLIB_SUFFIX is a safe variable to use, and has been being used to denote the extension for shared libraries when looking for dependancies on the OS. And the function that ends up defining SHLIB_SUFFIX_NAME is PHP_SHLIB_SUFFIX_NAME ... so still no conflict ... though it all does get confusing... My patch still needs to be applied, regardless if a naming changes takes place or not, because even with a naming change, $host_alias will not be defined. -Brad Andrei Zmievski wrote: > On Thu, 06 Jan 2005, Brad House wrote: > >>Are you sure we're talking about the same constant here. The one >>in particular I'm talking about is 100% in the build system. I do >>not believe it is exported as a define into the actual code... >>Though I could be wrong. > > > Yes. The PHP_SHLIB_SUFFIX_NAME macro figures out the actual suffix which > gets substituted into main/build-defs.h.in and later defined as a > constant in main.c. > > >>Having PHP_SHLIB_SUFFIX is confusing though, as MacOSX differentiates >>shared libraries and modules. >> >>shared libraries have a .dylib extension, while loadable modules >>have a .so extension, and they are not interchangable :/ Very >>odd. > > > Yes, I realize that. Which is why I was saying that we should probably > use separate constants for build system lib suffix and the extension > one. > > - Andrei >