Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74435 - php doesn't build in a uclibc env
Summary: php doesn't build in a uclibc env
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
: 99220 (view as bug list)
Depends on: 2272
Blocks: 99225
  Show dependency tree
Reported: 2004-12-14 17:55 UTC by Christian Zoffoli (RETIRED)
Modified: 2005-10-29 17:58 UTC (History)
3 users (show)

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

some php-sapi changes (more cond. on some use flags ...xml) (php-sapi-uclibc-xml-iconv.chris.patch,1.41 KB, patch)
2004-12-14 17:56 UTC, Christian Zoffoli (RETIRED)
Details | Diff
fixed ebuild to support compilation in a uclibc env (php-uclibc.ebuild.chris.patch,738 bytes, patch)
2004-12-14 17:58 UTC, Christian Zoffoli (RETIRED)
Details | Diff
uclibc libresolv fixes (php-4.3.9-uclibc.chris.patch,1.22 KB, patch)
2004-12-14 17:59 UTC, Christian Zoffoli (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Zoffoli (RETIRED) gentoo-dev 2004-12-14 17:55:13 UTC
I can't emerge php in a uclibc env.

So I've modified php-sapi.eclass and the ebuild it works (without xml and NIS support). XML support doesn't work because iconv lack in uclibc (also enabling nls in the uclibc ebuild doesn't change anything), if you try to use libiconv, you'll find some problems with sablotron and expat.

Reproducible: Always
Steps to Reproduce:

Portage 2.0.51-r3 (uclibc/x86/hardened, gcc-3.3.4, uclibc-0.9.26-r7, i686)
System uname: i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
CFLAGS="-Os -pipe"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -pipe"
FEATURES="autoaddcvs autoconfig ccache distlocks nodoc noinfo noman sandbox
sfperms strict"
USE="x86 berkdb hardened libwww ncurses perl pic pie python readline ssl tcpd
uclibc zlib"
Comment 1 Christian Zoffoli (RETIRED) gentoo-dev 2004-12-14 17:56:37 UTC
Created attachment 46006 [details, diff]
some php-sapi changes (more cond. on some use flags ...xml)
Comment 2 Christian Zoffoli (RETIRED) gentoo-dev 2004-12-14 17:58:08 UTC
Created attachment 46007 [details, diff]
fixed ebuild to support compilation in a uclibc env
Comment 3 Christian Zoffoli (RETIRED) gentoo-dev 2004-12-14 17:59:09 UTC
Created attachment 46008 [details, diff]
uclibc libresolv fixes
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-14 21:46:38 UTC
XML is NOT optional for the time being.
It is needed for PEAR.

When we get a portage with use flag deps so all PEAR stuff can depend on PHP+XML, then we can revisit this.
Comment 5 Milan Holzäpfel 2005-07-16 09:13:07 UTC
*** Bug 99225 has been marked as a duplicate of this bug. ***
Comment 6 Milan Holzäpfel 2005-07-16 09:17:21 UTC
*** Bug 99220 has been marked as a duplicate of this bug. ***
Comment 7 Milan Holzäpfel 2005-07-16 09:20:38 UTC
"if you try to use libiconv, you'll find some problems with sablotron 
and expat."

I assume these are runtime problems?  (I'm asking because compiling went just 
fine here.. would you care to elaborate a bit on the issues, possibly in a 
personal email?) 
Comment 8 SpanKY gentoo-dev 2005-07-16 18:05:18 UTC
the iconv should be made conditional on USE=nls ...

the nis / yp change should def be made, that isnt just a bug for uClibc
Comment 9 Stuart Herbert (RETIRED) gentoo-dev 2005-08-22 11:54:50 UTC

Could you retest your changes against the new packages in the Gentoo PHP
Overlay, please, and re-submit patches as required?


Many thanks,
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-09-17 15:42:05 UTC
Please, test w/ the ebuilds from PHP overlay and report back.
Comment 11 SpanKY gentoo-dev 2005-10-25 13:38:17 UTC
dev-lang/php-5.0.x in portage works fine, thanks
Comment 12 Luca Longinotti (RETIRED) gentoo-dev 2005-10-29 15:47:41 UTC
Closing, since it works.
Best regards, CHTEKK.
Comment 13 SpanKY gentoo-dev 2005-10-29 17:58:19 UTC
the eclass is fixed for handling USE flags yes but the build of php-4 is still
broken, see Bug 99225