Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25064 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89340 invoked by uid 1010); 30 Jul 2006 11:24:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89325 invoked from network); 30 Jul 2006 11:24:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2006 11:24:08 -0000 X-PHP-List-Original-Sender: marco@vampiresoft.com X-Host-Fingerprint: 209.68.5.9 relay00.pair.com Received: from ([209.68.5.9:3168] helo=relay00.pair.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 5E/3C-58709-8D69CC44 for ; Sun, 30 Jul 2006 07:24:08 -0400 Received: (qmail 95211 invoked from network); 30 Jul 2006 11:24:05 -0000 Received: from unknown (HELO ?192.168.1.26?) (unknown) by unknown with SMTP; 30 Jul 2006 11:24:05 -0000 X-pair-Authenticated: 82.52.32.197 Mime-Version: 1.0 (Apple Message framework v749.3) Content-Transfer-Encoding: 7bit Message-ID: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: internals@lists.php.net Date: Sun, 30 Jul 2006 13:24:00 +0200 X-Mailer: Apple Mail (2.749.3) Subject: Issue developing a PHP extension on MacOS X From: marco@vampiresoft.com (Marco Bambini) I developed a PHP extension for MacOS X and when loaded from within apache+php everything works fine. The issue occurs every time I try to execute php from the command like for example: php -r "print ini_get('extension_dir');" then PHP crashes and I got a dylib error: dyld: lazy symbol binding failed: Symbol not found: ZEND_ROUTINE_HERE Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/ rsql.dylib Expected in: flat namespace dyld: Symbol not found: ZEND_ROUTINE_HERE Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/ rsql.dylib Expected in: flat namespace please note that ZEND_ROUTINE_HERE is the first routine I use in the dylib entrypoint PHP_MINIT_FUNCTION. Something is wrong, but I really do not understand how I can solve the issue because as I already said when loaded from within apache everything works fine without any error. The dylib is generated with the following parameters to gcc: -dynamic -flat_namespace -bundle -undefined suppress I tried also to modify these flags to: -dynamic -twolevel_namespace -bundle -bundle_loader /usr/bin/php but nothing changed. Please help. --- Thanks a lot, Marco Bambini Italy