Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10263 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41968 invoked by uid 1010); 3 Jun 2004 16:21:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41853 invoked from network); 3 Jun 2004 16:21:09 -0000 Received: from unknown (HELO secret.deadmime.org) (69.55.224.147) by pb1.pair.com with SMTP; 3 Jun 2004 16:21:09 -0000 Received: from [10.0.1.3] (24.229.134.162.cmts.haz.ptd.net [24.229.134.162]) (authenticated bits=0) by secret.deadmime.org (8.12.9p2/8.12.9) with ESMTP id i53GL6qQ016578 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Thu, 3 Jun 2004 09:21:08 -0700 (PDT) (envelope-from dank@deadmime.org) In-Reply-To: <5.1.0.14.2.20040603164112.036018f0@127.0.0.1> References: <5.1.0.14.2.20040603164112.036018f0@127.0.0.1> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <03B13760-B57A-11D8-A72E-000A95AD08A8@deadmime.org> Content-Transfer-Encoding: 7bit Cc: internals@lists.php.net Date: Thu, 3 Jun 2004 12:21:05 -0400 To: Andi Gutmans X-Mailer: Apple Mail (2.618) Subject: Re: [PHP-DEV] MAC OS X and DSOs From: dank@deadmime.org (Dan Kalowsky) This behavior is mostly likely a result of the changes to the included system libraries in 10.3. The truth to the matter is now dlcompat is distributed with OS X (as of 10.3) so most of the library handling code Marko and I wrote probably is no longer necessary for future generations of OS X (please note this is untested). It is necessary though for those running 10.2 (and earlier), and there do seem to be a great many of them still. Looking at your change though, I don't believe it should cause much damage. On Jun 3, 2004, at 9:43 AM, Andi Gutmans wrote: > Hi guys, > > There seem to be some problems with loading shared libraries on the > MAC OS X platform. It seems that ./configure on MAC OS X defines > HAVE_LIBDL in php_config.h which causes the following code in zend.h > not to be used: > #elif defined(HAVE_MACH_O_DYLD_H) > # define DL_LOAD(libname) zend_mh_bundle_load(libname) > # define DL_UNLOAD(handle) zend_mh_bundle_unload(handle) > # define DL_FETCH_SYMBOL(h,s) zend_mh_bundle_symbol(h,s) > # define DL_ERROR zend_mh_bundle_error > # define DL_HANDLE void * > # define ZEND_EXTENSIONS_SUPPORT 1 > > After testing this stuff quite a bit it seems that in order for DSO's > to work correctly on MAC OS X they should be defined. I am thinking of > changing the following code in zend.h: > > #if defined(HAVE_LIBDL) > > to > > #if defined(HAVE_LIBDL) && !defined(HAVE_MACH_O_DYLD_H) > > Anyone have additional insight on this? > Andi > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php