Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 131616

Summary: XML disabled when emerging dev-lang/php-4.4.2 with USE="xml"
Product: Gentoo Linux Reporter: Jan Van Uytven <ysgard>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED WORKSFORME    
Severity: normal CC: ablyler, gdubicki, lejban, whit
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jan Van Uytven 2006-04-28 14:57:34 UTC
I'm trying to get php-4.4.2 installed so I can get an older version of horde working.  It works for the most part, but when loading horde I get the error: 

Fatal error: Call to undefined function: utf8_decode() in /usr/share/webapps/horde/3.1.1/htdocs/lib/Horde/String.php on line 325

Digging deeper, it seems this happens becuase PHP is not compiled with xml enabled, and a call to phpinfo() confirms this with '--disable-xml' listed in the configure flags for PHP.

Checking over the emerge sequence, the xml flag is clearly turned on:

firebird php # USE="xml" emerge -pv =dev-lang/php-4.4.2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/php-4.4.2  USE="apache2 berkdb calendar cjk cli crypt curl ftp gdbm imap ipv6 mcal mhash mysql ncurses nls odbc pcre readline session snmp spell sqlite ssl truetype unicode xml xmlrpc xsl zlib -adabas -apache -bcmath -birdstep -bzip2 -cdb -cgi -ctype -db2 -dbase -dbmaker -dbx -debug -discard-path -doc -empress -empress-bcs -esoob -exif -expat -fastbuild -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase -gd -gd-external -gmp -hardenedphp -hyperwave-api -iconv -informix -inifile -interbase -iodbc -java-external -java-internal -kerberos -ldap -libedit -mcve -memlimit -ming -mnogosearch -msql -mssql -oci8 -oci8-instant-client -oracle7 -overload -ovrimos -pcntl -pfpro -pic -posix -postgres -recode -sapdb -sharedext -sharedmem -sockets -solid -sybase -sybase-ct -sysvipc -threads -tokenizer -wddx -xpm -yaz -zip" 0 kB

Is there a way I can temporarily enable xml in the configuration while this gets sorted out?

Here's my emerge info.

firebird php # emerge info
*** Deprecated use of action 'info', use '--info' instead
Portage 2.1_pre7-r5 (default-linux/x86/no-nptl, gcc-3.4.6, glibc-2.3.6-r3, 2.6.1  6-gentoo-r2 i686)
=================================================================
System uname: 2.6.16-gentoo-r2 i686 Intel(R) Xeon(TM) CPU 2.66GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mcpu=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/  config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://adelie.polymtl.ca/ http://gentoo.arcticnetwork.ca/ http:/  /gentoo.mirrored.ca/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm avi berkdb bidi bitmap-fonts calendar canna cjk clamav c  li crypt cups curl dba dbm dio dri eds emboss encode foomaticdb fortran ftp gdbm   gif gpm gstreamer gtk gtk2 imap imlib ipv6 isdnlog jpeg libg++ libwww mad maild  ir mcal mhash mikmod mime mmap motif mp3 mpeg mysql mysqli ncurses nls odbc ogg   opengl oss pam pcre pdflib perl perlpython png pppd python qt quicktime readline   reflection samba sasl sdl session snmp spell spl sqlite sse ssl tcpd truetype t  ruetype-fonts type1-fonts unicode vorbis x86 xml xml2 xmlrpc xmms xorg xsl xv zl  ib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLA  GS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-28 15:05:49 UTC
You need USE=expat; USE=xml enables dom xml extension.
Comment 2 Jan Van Uytven 2006-04-28 15:36:36 UTC
Tried USE="-xml expat" - works now.  This seems non-intuitive though,perhaps a note could be added to the php post-install notes? and Thanks for your help. :)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-22 07:52:28 UTC
*** Bug 137595 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-06-22 09:08:07 UTC
*** Bug 137595 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-08-03 07:18:55 UTC
*** Bug 142653 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-08-19 15:42:51 UTC
*** Bug 144466 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-01-07 21:02:52 UTC
*** Bug 160771 has been marked as a duplicate of this bug. ***
Comment 8 Grzegorz Dubicki 2007-01-07 21:06:01 UTC
(In reply to comment #2)
> Tried USE="-xml expat" - works now.  This seems non-intuitive though,perhaps a
> note could be added to the php post-install notes? and Thanks for your help. :)
> 

I totally agree with you.