Re: Help with self contained php extensions

From: Date: Wed, 30 Aug 2000 22:33:32 +0000
Subject: Re: Help with self contained php extensions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-31347@lists.php.net to get a copy of this message
Did you read README.EXT_SKEL in the PHP 4 distribution? And it would also help if you would wrap your lines at somewhere less than 80 chars. I tend to skip unreadable messages like yours. -Rasmus On Wed, 30 Aug 2000, Kris Erickson wrote: > I tried posting this in php-general, but got no response. Can anyone answer this, or is it a > configuration issue? > > > To anyone who has successfully created a self contained php extension... > > Finally, after a lot of playing around I got a self_contained php extension to compile and > load, and everything seems to work alright... I can create an associative array and fill it with > data, and check out that data from a PHP script. This is until there is an error, where I call > php_error(). Any php code that produces an error returns the following error from the php runtime > (this is from the command-line)... > > php: error in loading shared libraries: > /usr/local/lib/php/extensions/no-debug-non-zts-20000609/php_test.so: undefined symbol: php_error_cb > > I assume this is some kind of linking problem between the .so and the funcitons in main.c, > however I have no idea how I am supposed to add these libraries to the SO, or anything like that. I > have noticed the same problem in the php_sablotron (http://p4lib.hk-go.to/) extension, so either my > install of PHP is weird, or other people are having problems with this as well. > > Pertinent Information > > System : linux 2.2.14-5.0 > PHP Version: php-4.0.1pl2 > Configure Command: './configure' '--with-mysql' '--with-gd' > '--with-ttf' '--enable-freetype-4bit-antialias-hack' '--enable-xml' > '--with-dom' '--enable-ftp' '--enable-versioning' > '--enable-memory-limit' '--enable-track-vars' '--disable-debug' > '--disable-inline' '--with-apache=/usr/local/src/apache' > Zend Debug: Disabled > Thread Safety: Disabled > SERVER_SOFTWARE: Apache/1.3.12 (Unix) > > Thanks in advance... > > Kris > > >

« previous php.dev (#31347) next »