Help with self contained php extensions
| From: | Kris Erickson | Date: | Thu, 24 Aug 2000 19:26:43 +0000 |
| Subject: | Help with self contained php extensions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13506@lists.php.net to get a copy of this message | ||
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