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

Bug 186888

Summary: www-apps/websvn-2.0_rc4: Call to undefined function xml_parser_create
Product: Gentoo Linux Reporter: Christian Mandery <gbugzilla>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: php -i output

Description Christian Mandery 2007-07-28 12:40:39 UTC
After emerging WebSVN-2.0_rc4 and configuring it by editing include/config.inc, it aborts with the following PHP error when trying to access a repository:

Fatal error: Call to undefined function xml_parser_create() in /var/www/localhost/htdocs/websvn/include/svnlook.inc on line 645

WebSVN itself only demands on the xml USE flag for the PHP installation but nevertheless I tried enabling anything related to XML like xmlreader, xmlrpc, xmlwriter or xsl- it did not help.

Reproducible: Always

Steps to Reproduce:
1. emerge WebSVN (2.0_rc4) and configure it
2. open WebSVN and click on a repositorz

Actual Results:  
Fatal error: Call to undefined function xml_parser_create() in /var/www/localhost/htdocs/websvn/include/svnlook.inc on line 645

Expected Results:  
Correct WebSVN output.

emerge --info:

Portage 2.1.2.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r3 x86_64 AMD Sempron(tm) Processor 3400+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 27 Jul 2007 23:00:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog libg++ mailwrapper midi mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

PHP Information:
Attached!
Comment 1 Christian Mandery 2007-07-28 12:41:27 UTC
Created attachment 126220 [details]
php -i output
Comment 2 Christian Mandery 2007-07-28 12:50:31 UTC
Solved the problem for me:

After remerging PHP, I tried restarting Apache with the Gentoo initscript but obviously the Apache initscript had a problem restarting my Apache server.

After killing all httpd instances and apache2 zap/start, PHP now has XML enabled and WebSVN works fine.

I'll try to reproduce the restart problem though.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-28 13:23:25 UTC
Dupe.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-07-28 13:23:38 UTC

*** This bug has been marked as a duplicate of bug 137074 ***