Re: extensions problems
| From: | Rafa Rodriguez Hernandez | Date: | Wed, 03 Jul 2002 15:09:28 +0000 |
| Subject: | Re: extensions problems | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85782@lists.php.net to get a copy of this message | ||
>
> This is exactly the problem. I've not seen any other scenario
> where you get this error message yet. Make double sure
> COMPILE_DL_module is properly defined (btw, all uppercase
> normally, maybe that's the problem).
>
> - Markus
I'm trying with a simple module. For example GD.
In my gd.c file I've got this (exactly):
#if COMPILE_DL_GD
ZEND_GET_MODULE(gd)
#endif
I compile with this:
gcc -rdynamic -fpic -DCOMPILE_DL=1 -I/opt/php/include/php/main/ -I/opt/php/include/php/TSRM/
-I/opt/php/include/php/Zend/ -I/opt/php/include/php/ -c gd.c
And now dynamic ..
gcc -shared -o gd.so gd.o -rdynamic -L. -L/usr/local/lib -L/usr/lib -L/lib -lsocket -lc
The compilation is ok, I obtain:
#file gd.so
gd.so: ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped
and in the php.ini I've got this line:
extension=gd.so
The location of the file is in /usr/local/lib/gd.so, because in the php.ini I have this:
; Directory in which the loadable extensions (modules) reside.
extension_dir = /usr/local/lib
; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On
Thanks for your help.
>
> --
> GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
> Did I help you? http://guru.josefine.at/wish_en
> Konnte ich helfen? http://guru.josefine.at/wish_de
> "uhmm.. the dates in the bug db.. aren't they printed a bit wrong, i mean, did
> i miss when we changed to 53 days/month ( +2002-02-53) ? =P - N0v3ll
--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Rafa Rodriguez Hernandez
mail to: <rhernandez@prisacom.com>
lynx to: http://www.prisacom.com
Departamento de Sistemas - Prisacom
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
"Bombs do not make peace, brains do"