Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14642 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93684 invoked by uid 1010); 4 Feb 2005 11:30:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93654 invoked from network); 4 Feb 2005 11:30:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2005 11:30:27 -0000 X-Host-Fingerprint: 67.78.11.230 relay.daleenterprise.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (1) Received: from ([67.78.11.230:52324] helo=daleenterprise.com) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id D3/CB-22541-2CC53024 for ; Fri, 04 Feb 2005 06:30:11 -0500 Received: from mail.daleenterprise.com (localhost [127.0.0.1]) by daleenterprise.com (Postfix) with ESMTP id 47C7A462168 for ; Fri, 4 Feb 2005 06:30:08 -0500 (EST) Received: from daleenterprise.com ([127.0.0.1]) by mail.daleenterprise.com (daleenterprise.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00293-05 for ; Fri, 4 Feb 2005 06:30:07 -0500 (EST) Received: from [10.1.100.21] (relay.mustangrestomods.com [67.78.11.226]) by daleenterprise.com (Postfix) with ESMTP id 59F12462152 for ; Fri, 4 Feb 2005 06:30:07 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619.2) Content-Transfer-Encoding: 7bit Message-ID: <2489380dc8de3b75cd1b1a3d7eb0c200@daleenterprise.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: internals@lists.php.net Date: Fri, 4 Feb 2005 06:30:06 -0500 X-Mailer: Apple Mail (2.619.2) MTA-Interface: amavisd-new-2.2.1 (2004-12-22) at daleenterprise.com X-Spam-Scanned: using SpamAssassin at daleenterprise.com X-Virus-Scanned: using ClamAV at daleenterprise.com Subject: modules/embedded function and Mac OSX From: info@daleenterprise.com (D . Walsh) I've been having some problems building some modules or embedding the function in PHP. I've attempted to build several different modules and all give the same results. If I build as a module, placing an 'extension=' entry in php.ini causes a dylib error. dyld: /usr/sbin/httpd Undefined symbols: __array_init __convert_to_string __efree __emalloc __estrdup __estrndup _add_assoc_long_ex _add_next_index_double _add_next_index_string _convert_to_array _convert_to_long ________________________________________________________________________ _ Without the 'extension=' entry in php.ini, placing an entry in my php script "dl('module.so');" results in the following log entry: [Fri Feb 4 06:12:38 2005] [error] PHP Warning: module: Unable to register functions, unable to load in Unknown on line 0 ________________________________________________________________________ _ If I use this entry in my php script, the module functions work properly. if (!function_exists('my_function') && @dl('module.so')) { } ________________________________________________________________________ _ Is there anything specific I need to do for Mac OSX to build modules or embed them in PHP so they work properly?