Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28330 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84544 invoked by uid 1010); 13 Mar 2007 22:32:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84529 invoked from network); 13 Mar 2007 22:32:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2007 22:32:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=marco@vampiresoft.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=marco@vampiresoft.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain vampiresoft.com from 209.68.5.17 cause and error) X-PHP-List-Original-Sender: marco@vampiresoft.com X-Host-Fingerprint: 209.68.5.17 relay03.pair.com Received: from [209.68.5.17] ([209.68.5.17:2643] helo=relay03.pair.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/52-03168-06627F54 for ; Tue, 13 Mar 2007 17:32:01 -0500 Received: (qmail 1981 invoked from network); 13 Mar 2007 22:31:57 -0000 Received: from 87.2.37.61 (HELO ?192.168.0.26?) (87.2.37.61) by relay03.pair.com with SMTP; 13 Mar 2007 22:31:57 -0000 X-pair-Authenticated: 87.2.37.61 Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-ID: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: internals@lists.php.net Date: Tue, 13 Mar 2007 23:31:56 +0100 X-Mailer: Apple Mail (2.752.2) Subject: MacOS X issue with php extensions From: marco@vampiresoft.com (Marco Bambini) I have developed a php extension, the linux version works fine but the osx version has some issue when php is loaded from the command line (within apache works fine). The terminal shows me the following error: dyld: lazy symbol binding failed: Symbol not found: _zend_register_long_constant Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/ rsql.dylib Expected in: flat namespace Please note that all the _zend functions are reported as "lazy symbol binding failed", this is just the first one... I am using the standard way to compile a php extension so I am quite sure that the issue has something to do with the way the linker is invoked. I think I need a way to tell gcc to weak link the final dylib plugin or something similar... Your help is really appreciate... Thanks a lot, Marco Bambini