Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4491 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35756 invoked by uid 1010); 15 Sep 2003 15:31:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35732 invoked from network); 15 Sep 2003 15:31:28 -0000 Received: from unknown (HELO morpheus.webteckies.org) (24.132.35.224) by pb1.pair.com with SMTP; 15 Sep 2003 15:31:28 -0000 Received: from ghost.lan.webteckies.org (ghost.lan.webteckies.org [192.168.1.10]) by morpheus.webteckies.org (Postfix) with ESMTP id 2FE69107D0; Mon, 15 Sep 2003 17:29:49 +0200 (CEST) Organization: Php.net To: "ashish" Date: Mon, 15 Sep 2003 17:31:08 +0200 User-Agent: KMail/1.5.3 References: <20030915143007.91925.qmail@web20707.mail.yahoo.com> In-Reply-To: <20030915143007.91925.qmail@web20707.mail.yahoo.com> Cc: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200309151731.09485.msopacua@php.net> Subject: Re: [PHP-DEV] AIX + PHP Extension Module Does Not Work (giving core dump at zend_parse_parameters) From: msopacua@php.net (Melvyn Sopacua) On Monday 15 September 2003 16:30, ashish b\\ wrote: > 1. ran the ext_skel command i.e. ext_skel --extname=rot13 --proto=rot13.def > 2. with rot13 as current folder I ran phpize for creating a self contained > extension. 3. /usr/local/php-4.3.2/ext/rot13> ./configure > 4. /usr/local/php-4.3.2/ext/rot13> make > 5. /usr/local/php-4.3.2/ext/rot13> make install > 6. librot13.a is generated. > 7. when I do a ldd ./librot13.a i get error as > exec(): 0509-036 Cannot load program ./librot13.a. because of the > following errors: 0509-022 Cannot load module ./librot13.a. > 0509-103 The module has an invalid magic number. > 8. so I used the library rot13.so.0 and got the core dump at > zend_parse_parameters. It seems my extension is not getting the reference > to zend_parse_parameters function in php.The same thing runs withou any > problem on Linux as well as Windows. What's the output of: dump -h rot13.so.0 Does it work, when using the 'non-phpize' approach - ie: compile the extension into php itself. See README.EXT_SKEL for details. -- Melvyn