Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:874 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82296 invoked from network); 12 Apr 2003 12:58:11 -0000 Received: from unknown (HELO flash.fnet) (213.155.172.97) by pb1.pair.com with SMTP; 12 Apr 2003 12:58:11 -0000 Received: by flash.fnet (Postfix, from userid 500) id 13BB3243C0D; Sat, 12 Apr 2003 14:57:58 +0200 (CEST) Date: Sat, 12 Apr 2003 14:57:58 +0200 To: internals@lists.php.net Message-ID: <20030412125758.GA5060@mail.host.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: Linking problem with extension written in C++ From: ggodlewski@host.sk (Grzegorz Godlewski) I have written an extension. Unfortunatelly I had to use some C++. After building I have some problems with 3 functions: zval_add_ref, REGISTER_LONG_CONSTANT, php_error_docref. If I include their body within my extension, it's Ok. Otherwise I got memory fault under PHP 4.3.0 and relocation error: /usr/lib/php/xerces.so: undefined symbol: _Z12zval_add_refPP12_zval_struct under 4.3.1. It has been built by gcc 3.2.2. Could anyone spend few minutes on it: http://ggodlewski.host.sk/download/php-xerces/php-xerces-0.1.tar.gz It requires xerces-c-2.2.0. Problematic places are marked by MEM_FAULT_HACK macro. Thanks, Grzegorz Godlewski