Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73289 - dev-php/mod_php pointlessly requires dev-php/php, as one cannot build modules for dev-php/php and expect them to work with dev-php/mod_php!
Summary: dev-php/mod_php pointlessly requires dev-php/php, as one cannot build modules...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-03 18:33 UTC by Alex Zinner
Modified: 2004-12-03 19:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Zinner 2004-12-03 18:33:23 UTC
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!
Comment 1 Markus Nigbur (RETIRED) gentoo-dev 2004-12-03 18:49:39 UTC
pear needs dev-php/php and can't be build against dev-php/mod_php. that's it.
Comment 2 Alex Zinner 2004-12-03 19:16:05 UTC
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!
Comment 3 Alex Zinner 2004-12-03 19:23:28 UTC
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