[PHP-DEV] maybe not a PHP library?
I'm trying to create a minimal module to do some debugging work, but it fails to load. I essentially used ext_skel to create an fresh extension, moved it out of the PHP tree, then did: $ phpize $ ./configure --enable-apdebug $ make # make install The extension is generated OK AFAICT, but it lacks the symbol get_module, which gets me 'PHP Warning: Invalid library (maybe not a PHP library) 'apdebug.so' in Unknown on line 0' in my error log. Any ideas, anyone? Using Apache 1.3.19 and 4.0.4.5rc6 on Debian sid. Emile -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] maybe not a PHP library?
On Wed, 2 May 2001, Emiliano wrote: I'm trying to create a minimal module to do some debugging work, but it fails to load. I essentially used ext_skel to create an fresh extension, moved it out of the PHP tree, then did: $ phpize $ ./configure --enable-apdebug $ make # make install The extension is generated OK AFAICT, but it lacks the symbol get_module, which gets me 'PHP Warning: Invalid library (maybe not a PHP library) 'apdebug.so' in Unknown on line 0' in my error log. Any ideas, anyone? Using Apache 1.3.19 and 4.0.4.5rc6 on Debian sid. Yes. This known bug for self contained extensions when config.h isn't read by php_apdebug.c so HAVE_APDEBUG and COMPILE_DL_APDEBUG aren't defined. Try to do bizzare thing; CFLAGS=$CFLAGS -DHAVE_APDEBUG=1 -DCOMPILE_DL_APDEBUG=1 ./configure --with-apdebug -- Sincerely yours, Alexander Bokovoy The Midgard Project | www.midgard-project.org | ALT Linux Team Minsk Linux Users Group |www.minsk-lug.net| www.altlinux.ru -- Getting into trouble is easy. -- D. Winkel and F. Prosser -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] maybe not a PHP library?
Alexander Bokovoy wrote: I'm trying to create a minimal module to do some debugging work, but it fails to load. I essentially used ext_skel to create an fresh extension, moved it out of the PHP tree, then did: $ phpize $ ./configure --enable-apdebug $ make # make install The extension is generated OK AFAICT, but it lacks the symbol get_module, which gets me 'PHP Warning: Invalid library (maybe not a PHP library) 'apdebug.so' in Unknown on line 0' in my error log. Any ideas, anyone? Using Apache 1.3.19 and 4.0.4.5rc6 on Debian sid. Yes. This known bug for self contained extensions when config.h isn't read by php_apdebug.c so HAVE_APDEBUG and COMPILE_DL_APDEBUG aren't defined. Try to do bizzare thing; CFLAGS=$CFLAGS -DHAVE_APDEBUG=1 -DCOMPILE_DL_APDEBUG=1 ./configure --with-apdebug OK, that worked and brings us closer to my problem. I have said module compiled as a self-contained extension, loaded via php.ini. No other extensions are loaded, and I'm using apache and php4 from debian packages. The only thing I do in my debug extension is this: PHP_RINIT_FUNCTION(apdebug) { request_rec *r; r = ((request_rec *) SG(server_context)); fprintf(stderr, APDEBUG: request_config=%#lx\n, r-request_config); return SUCCESS; } request_config is always 0x1, while I can confirm that in other apache modules request config is a sane value in the fixup phase (before PHP is active) and the logging phase (after the PHP script has ran). Does this ring a bell for anyone? Emile -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]