Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190003 - no use-flag in dev-lang/php to compile static zlib library
Summary: no use-flag in dev-lang/php to compile static zlib library
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-08-24 07:24 UTC by Toon Wijnands
Modified: 2007-08-24 08:09 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Toon Wijnands 2007-08-24 07:24:33 UTC
There is no USE-flag (or alternative) available to compile php with static zlib library. Everey emerge results in shared library useage.

This is a problem because of a specific issue regarding PHP and Flash files:
when accessing properties of a Flash file server response is:
The image is a compressed SWF file, but you do not have a static version
of the zlib extension enabled."

(see e.g.

It is a well-known problem with a well-known solution (work-around?): compile zlib statically with PHP.

On gentoo however this doesn't seem possible. I've tried adding USE-flag static but that doesn't help. 

Reproducible: Always

Steps to Reproduce:
1. ensure you have zlib and static in your USE-flags
2. emerge -av dev-lang/php

Actual Results:  
php-5.2.4_pre200708051230-r2 gets emerged succesfully.

check the emerge output: GCC compiles zlib=shared

Expected Results:  
zlib should be compiled static.

IMHO it would be better to introduce a PHP-specific use-flag: e.g. zlib-static.
It's no advisable to compile every library statically.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-24 07:41:25 UTC
Remove sharedext from your USE flags if you need this.

Comment 2 Toon Wijnands 2007-08-24 08:09:29 UTC
Tried this in a recompile and it works!!

Apparantly in my search for the solution I oversaw this flag. Thanx for the quick help.