When I try to build custom extensions with 'phpize', it builds it against dev-php/php's headers - NOT dev-php/mod_php's headers, so it doesn't work! The extension will build, but will be incompatible. This is what happens when I try to load an extension compiled against dev-php/php's headers under dev-php/mod_php's! PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-zts-20040412/classkit.so' - /usr/lib/php/extensions/no-debug-zts-20040412/classkit.so: undefined symbol: executor_globals in Unknown on line 0 Also, I get a few errors with file's mime.magic! PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:47) '!SCREAM!\taudio/x-mod' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:104) 'image/svg+xml' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:187) 'AVI\t\tvideo/x-msvideo' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:614) 'jP\t image/jp2' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:619) 'jp2\t image/jp2' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:622) 'M4A\t audio/mp4' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:623) 'qt\t video/quicktime' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:686) 'Hierarchical Data Format (version 4) data' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:687) 'Hierarchical Data Format (version 5) data' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:762) 'public key block' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:763) 'message' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:764) 'signed message' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:765) 'signature' is not a valid mimetype, entry skipped in Unknown on line 0 PHP Warning: PHP Startup: : (/usr/share/misc/file/magic.mime:766) 'data' is not a valid mimetype, entry skipped in Unknown on line 0 sa04 ~ # qpkg -f /usr/share/misc/file/magic.mime sys-apps/file * sa04 ~ # emerge file -pv *snip* [ebuild R ] sys-apps/file-4.12 -build -debug -python 0 kB Can anyone shed some light on these matters? Thanks for your time anyways. -- Alex Zinner (Awox) http://www.awox.net/ AU Mobile: 0415665448 Reproducible: Always Steps to Reproduce: 1. install mod_php and any of the following: 2. pear install <url to some pecl module> 2. phpize && ./configure && make && make install in an extesnion source directory Expected Results: It should have compiled against mod_php's headers and the extension should load with no problems at all!
pear needs dev-php/php and can't be build against dev-php/mod_php. that's it.
So? What about phpize? The fact that you only get pear with CLI is irrelevant, you still need the correct phpize and headers to build extensions for mod_php!
Solved, although the ebuild is still broken. To fix: 1. tar jxf /usr/portage/distfiles/php-5.0.2.tar.bz2 2. cd php-5.0.2 3. just paste the ./configure line from the phpinfo() from Gentoo's mod_php install 4. make && make install This works perfectly, it also installs php-config, phpize, and the proper php headers, now you can build custom extensions with: 1. tar zxf /some/pecl/extension-4.0.tgz 2. cd extension-4.0 3. phpize && ./configure 4. make && make install