Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139350 - emerge php-5.1.4-r3 failed - cannot build reflection as a shared module
Summary: emerge php-5.1.4-r3 failed - cannot build reflection as a shared module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on: 166048
Blocks:
  Show dependency tree
 
Reported: 2006-07-05 11:34 UTC by baso
Modified: 2007-03-05 17:52 UTC (History)
0 users

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


Attachments
emerge --info (emerge_info.txt,8.62 KB, text/plain)
2006-07-05 11:35 UTC, baso
Details
sorry, this is my config.log (config.log,337.64 KB, text/plain)
2006-07-05 12:58 UTC, baso
Details
Fix for the broken reflection extension check (reflection-extension-failure-fix.patch,2.14 KB, patch)
2006-09-24 16:01 UTC, Jozef Behran
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description baso 2006-07-05 11:34:26 UTC
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking whether to enable reflection support... yes
configure: error: Cannot build reflection as a shared module

!!! ERROR: dev-lang/php-5.1.4-r3 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  php-5.1.4-r3.ebuild, line 109:   Called src_compile_normal
  php-5.1.4-r3.ebuild, line 215:   Called php5_1-sapi_src_compile
  php5_1-sapi.eclass, line 573:   Called die
Comment 1 baso 2006-07-05 11:35:00 UTC
Created attachment 90993 [details]
emerge --info
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-05 11:49:01 UTC
Please, attach config.log here, unless I've misread the eclass, reflection is _not_ build as shared extension, so the error looks misleading as usually w/ php.
Comment 3 baso 2006-07-05 12:12:19 UTC
What do you mean with config.log? I haven't one. 
Comment 4 baso 2006-07-05 12:58:41 UTC
Created attachment 91003 [details]
sorry, this is my config.log
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-07-05 15:46:29 UTC
You forgot to reopen.
Comment 6 Jozef Behran 2006-09-24 15:54:50 UTC
As you may read at http://bugs.php.net/, bug id 38556, this is caused by some legacy code that they forgot to remove when they changed the command line options which control the reflection extension support. This stray code is located at ext/reflection/config.m4.
Comment 7 Jozef Behran 2006-09-24 16:01:12 UTC
Created attachment 97985 [details, diff]
Fix for the broken reflection extension check

Place dev-lang/php into a portage overlay, clear the Manifest file and then apply this patch to the portage overlay (at the root, use option -p1). It will not work when applied to the portage tree directly since there is missing manifest update (updating the manifest cost me about an hour and I don't have any idea how to speed this up).
Comment 8 Luca Longinotti (RETIRED) gentoo-dev 2007-03-05 17:52:39 UTC
Reflection and SPL can't be built as shared extensions now in our packages, which fixes this bug.
Best regards, CHTEKK.