Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18307 invoked from network); 23 Jun 2003 00:06:57 -0000 Received: from unknown (HELO 128kb.com) (68.112.247.235) by pb1.pair.com with SMTP; 23 Jun 2003 00:06:57 -0000 Received: from 128kb.com (cpe-68-112-247-235.ma.charter.com [68.112.247.235]) by 128kb.com (8.12.9/8.12.2) with ESMTP id h5N08NUt016457 for ; Sun, 22 Jun 2003 20:08:23 -0400 (EDT) Date: Sun, 22 Jun 2003 20:08:23 -0400 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: multipart/alternative; boundary=Apple-Mail-6-710291751 To: internals@lists.php.net Message-ID: X-Mailer: Apple Mail (2.552) Subject: shared ext linkage question From: m31@128kb.com (Justin) --Apple-Mail-6-710291751 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi, I've started reading on the Zend API and am going through the examples and run across a small problem while linking a shared extension. Excuse my limited knowledge. I've manually compiled one of the example extensions from http://us2.php.net/manual/en/zend.creating.php and I'm trying to link it up and am getting undefined symbols: % gcc -L/usr/lib -o zendTest.so zendTest.o ld: Undefined symbols: _main _zend_parse_parameters The docs say to link with: cc -shared -L/usr/local/lib -rdynamic -o but I'm using gcc3 on Darwin/OSX and it doesn't support the -shared and -rdynamic flags. I'm not sure how to debug this problem cause I'm not exactly sure what lib I'm actually linking to, and the documentation is somewhat vague. Can someone point me in the right direction?? Thanks, Justin Hannus --Apple-Mail-6-710291751--