I'm trying to build some of the php extensions that come bundled with the distribution as dynamic objects, so I don't have to load them on all of my servers.
The .so files I've created generate error messages when I start apache: [28-Feb-2002 12:19:29] PHP Warning: Invalid library (maybe not a PHP library) 'php_mcrypt.so' in Unknown on line 0 The commands for compiling php extensions manually don't work on solaris http://www.php.net/manual/en/zend.creating.php Here's what I'm trying: gcc -fpic \ -DCOMPILE_DL=1 \ -I/usr/local/libmcrypt/include \ -I/usr/local/include \ -I. \ -I.. \ -I../.. \ -I../../Zend \ -I../../main \ -I../../TSRM \ -c -o php_mcrypt.o mcrypt.c gcc -shared -ldl -L/usr/local/libmcrypt/lib \ -B/usr/local/gnu/bin \ -R/usr/local/libmcrypt/lib \ -L/usr/local/libmcrypt/lib/libmcrypt \ -R/usr/local/libmcrypt/lib/libmcrypt \ -Wl,-export-dynamic \ -o php_mcrypt.so php_mcrypt.o but it's not working. Does anyone have suggestions on compiling php extension manually as shared objects? thx Liam -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php