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
You need USE=expat; USE=xml enables dom xml extension.
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. :)
*** Bug 137595 has been marked as a duplicate of this bug. ***
*** Bug 142653 has been marked as a duplicate of this bug. ***
*** Bug 144466 has been marked as a duplicate of this bug. ***
*** Bug 160771 has been marked as a duplicate of this bug. ***
(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.