Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152198 - dev-perl/XML-Simple-2.15 requires me to install XML::SAX::Expat
Summary: dev-perl/XML-Simple-2.15 requires me to install XML::SAX::Expat
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 166796 (view as bug list)
Depends on: 168988
Blocks: 166830
  Show dependency tree
 
Reported: 2006-10-21 01:34 UTC by Martin Mokrejš
Modified: 2011-01-09 11:07 UTC (History)
12 users (show)

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


Attachments
ParserDetails.ini (ParserDetails.ini,66 bytes, text/plain)
2006-10-24 01:08 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2006-10-21 01:34:45 UTC
# emerge -uN world
Calculating world dependencies... done!

>>> Emerging (1 of 65) dev-perl/XML-Simple-2.15 to /
 * XML-Simple-2.15.tar.gz MD5 ;-) ...                                                                                                                                                                                           [ ok ]
 * XML-Simple-2.15.tar.gz RMD160 ;-) ...                                                                                                                                                                                        [ ok ]
 * XML-Simple-2.15.tar.gz SHA1 ;-) ...                                                                                                                                                                                          [ ok ]
 * XML-Simple-2.15.tar.gz SHA256 ;-) ...                                                                                                                                                                                        [ ok ]
 * XML-Simple-2.15.tar.gz size ;-) ...                                                                                                                                                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                            [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                           [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                          [ ok ]
 * checking XML-Simple-2.15.tar.gz ;-) ...                                                                                                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking XML-Simple-2.15.tar.gz to /var/tmp/portage/XML-Simple-2.15/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/XML-Simple-2.15/work/XML-Simple-2.15 ...
/var/tmp/portage/XML-Simple-2.15/work/XML-Simple-2.15
 * Using ExtUtils::MakeMaker
Checking installed modules ...
=============================================================================

  Fatal error: Your default XML parser (XML::SAX::PurePerl) is broken.

  There are known bugs in the PurePerl parser included with version 0.13 
  and 0.14 of XML::SAX.  The XML::Simple tests will fail with this parser.

  One way to avoid the problem is to install XML::SAX::Expat - it will
  install itself as the system default XML parser and then you will be able 
  to install XML::Simple successfully.  XML::SAX::Expat is also much faster
  than XML::SAX::PurePerl so you probably want it anyway.

=============================================================================

!!! ERROR: dev-perl/XML-Simple-2.15 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called perl-module_src_compile
  perl-module.eclass, line 136:   Called perl-module_src_prep
  perl-module.eclass, line 125:   Called die

!!! Unable to build! (are you using USE="build"?)
!!! If you need support, post the topmost build error, and the call stack if relevant.

# emerge --info
Portage 2.1.2_pre2-r7 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.18.1 i686)
=================================================================
System uname: 2.6.18.1 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.12.4
Last Sync: Fri, 20 Oct 2006 20:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.0-r2, 2.0.30
dev-lang/python:     2.3.5, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19-r1, 2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="cs cz en"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 FFmpeg X Xaw3d a52 aac aalib acpi alsa amr apache2 apm ati avi berkdb bitmap-fonts bonobo caca cdparanoia cdr cli cpudetection cracklib crypt cscope ctype cups dba dga directfb divx divx5 divx5linux dlloader dri dts dv dvb dvd dvdr dvdread eds elibc_glibc emacs emacs-w3 emboss encode ethereal evo f77 faad faad2 fam fame fbcon ffmpeg flash foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 icc iconv ieee1394 ifc imagemagick imlib imlib2 inifile innodb input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog ithreads java jpeg kernel_linux lcms leim libcaca libg++ libwww linguas_cs linguas_cz linguas_en lirc live lzo mad matroska mcal mesa mhash mikmod ming mmx mmx2 mmxext motif mozilla mp3 mpeg mule musepack mysql ncurses network nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pda pdf pdflib perl plotutils plugin png ppds pppd pthread pthreads python qt qt3 qt4 qtx quicktime readline reflection rtc samba scanner scp server session slp spell spl sse sse2 ssl stroke tcltk tcpd tetex theora thread threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 video_cards_ati vorbis win32 win32codecs winvidix wmf x264 xanim xml xml2 xmms xorg xosd xprint xv xvid xvmc zeo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

#

Where should I get the XML::SAX::Expat from? CPAN? Whys isn't that a gentoo package then? Please let me know how should I proceed and improve the error message. Thank you. ;)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-10-21 01:37:43 UTC

*** This bug has been marked as a duplicate of 149948 ***
Comment 2 Martin Mokrejš 2006-10-23 09:58:08 UTC
No, even when I have re-synced today the problem is still here:

>>> Emerging (2 of 64) dev-perl/XML-Simple-2.15 to /
 * XML-Simple-2.15.tar.gz MD5 ;-) ...                                                                                                                                                                                           [ ok ]
 * XML-Simple-2.15.tar.gz RMD160 ;-) ...                                                                                                                                                                                        [ ok ]
 * XML-Simple-2.15.tar.gz SHA1 ;-) ...                                                                                                                                                                                          [ ok ]
 * XML-Simple-2.15.tar.gz SHA256 ;-) ...                                                                                                                                                                                        [ ok ]
 * XML-Simple-2.15.tar.gz size ;-) ...                                                                                                                                                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                            [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                           [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                          [ ok ]
 * checking XML-Simple-2.15.tar.gz ;-) ...                                                                                                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking XML-Simple-2.15.tar.gz to /var/tmp/portage/dev-perl/XML-Simple-2.15/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-perl/XML-Simple-2.15/work/XML-Simple-2.15 ...
/var/tmp/portage/dev-perl/XML-Simple-2.15/work/XML-Simple-2.15
 * Using ExtUtils::MakeMaker
Checking installed modules ...
=============================================================================

  Fatal error: Your default XML parser (XML::SAX::PurePerl) is broken.

  There are known bugs in the PurePerl parser included with version 0.13 
  and 0.14 of XML::SAX.  The XML::Simple tests will fail with this parser.

  One way to avoid the problem is to install XML::SAX::Expat - it will
  install itself as the system default XML parser and then you will be able 
  to install XML::Simple successfully.  XML::SAX::Expat is also much faster
  than XML::SAX::PurePerl so you probably want it anyway.

=============================================================================

!!! ERROR: dev-perl/XML-Simple-2.15 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1261:   Called perl-module_src_compile
  perl-module.eclass, line 136:   Called perl-module_src_prep
  perl-module.eclass, line 125:   Called die

!!! Unable to build! (are you using USE="build"?)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2006-10-23 14:44:30 UTC
Which version of XML-LibXML do you have installed?

PREREQUISITES

<snip>
  If you have installed XML::SAX, it will be used by default.  You should
  consider installing XML::SAX::Expat or XML::LibXML to replace the (slower)
  PurePerl parser from the XML::SAX distribution.

The XML::LibXML module should have taken care of that for you.

>>> Compiling source in /var/tmp/portage/dev-perl/XML-Simple-2.15/work/XML-Simple-2.15 ...
/var/tmp/portage/dev-perl/XML-Simple-2.15/work/XML-Simple-2.15
 * Using ExtUtils::MakeMaker
Checking installed modules ...
XML::SAX is installed, it will be used by the test suite
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Simple
(yada yada yada)

Not naysaying adding the XML-SAX-Expat, just not clear on why this is failing for you.
Comment 4 Martin Mokrejš 2006-10-23 15:08:20 UTC
ribosome ~ # emerge -s XML-LibXML
Searching...   
[ Results for search key : XML-LibXML ]
[ Applications found : 4 ]
 
*  dev-perl/XML-LibXML
      Latest version available: 1.61.003
      Latest version installed: 1.61.003
      Size of files: 252 kB
      Homepage:      http://cpan.org/modules/by-module/XML/XML-LibXML-1.61003.readme
      Description:   A Perl module to parse XSL Transformational sheets using gnome's libXSLT
      License:       Artistic

*  dev-perl/XML-LibXML-Common
      Latest version available: 0.13
      Latest version installed: 0.13
      Size of files: 12 kB
      Homepage:      http://www.cpan.org/modules/by-module/XML/XML-LibXML-Common-0.13.readme
      Description:   Routines and Constants common for XML::LibXML and XML::GDOME.
      License:       || ( Artistic GPL-2 )

*  dev-perl/XML-LibXML-Iterator
      Latest version available: 1.00
      Latest version installed: 1.00
      Size of files: 6 kB
      Homepage:      http://www.cpan.org/modules/by-authors/id/P/PH/PHISH/XML-LibXML-Iterator-1.00.readme
      Description:   No description available.
      License:       || ( Artistic GPL-2 )

*  dev-perl/XML-LibXML-XPathContext
      Latest version available: 0.07
      Latest version installed: 0.07
      Size of files: 41 kB
      Homepage:      http://search.cpan.org/search?query=XML::LibXML::XPathContext
      Description:   Perl interface to libxml2's xmlXPathContext
      License:       || ( Artistic GPL-2 )


ribosome ~ # 
ribosome ~ # emerge -s XML-SAX-Expat
Searching...   
[ Results for search key : XML-SAX-Expat ]
[ Applications found : 0 ]
 

ribosome ~ # emerge -s Expat
Searching...   
[ Results for search key : Expat ]
[ Applications found : 2 ]
 
*  dev-libs/expat
      Latest version available: 2.0.0
      Latest version installed: 2.0.0
      Size of files: 440 kB
      Homepage:      http://expat.sourceforge.net/
      Description:   XML parsing libraries
      License:       as-is

*  dev-tcltk/tclxml-expat
      Latest version available: 2.4
      Latest version installed: [ Not Installed ]
      Size of files: 395 kB
      Homepage:      http://tclxml.sourceforge.net/
      Description:   Tcl wrapper libraries for expat XML parser.
      License:       BSD


ribosome ~ # 
Comment 5 Yuval Yaari (RETIRED) gentoo-dev 2006-10-24 00:33:32 UTC
Could you please attach
/usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserDetails.ini
?
Comment 6 Martin Mokrejš 2006-10-24 01:08:08 UTC
Created attachment 100346 [details]
ParserDetails.ini

BTW, I still don't know why there is no XML-SAX-Expat ebuild available. ;-) Reinstalling XML_SAX did not help as it only compiles the PurePerl stuff. Hope this file helps you with this.
Comment 7 Yuval Yaari (RETIRED) gentoo-dev 2006-10-24 05:27:53 UTC
Michael, it fails for him because XML::SAX::PurePerl is his default parser.

Martin, you can also use XML-Parser, which is in Portage (but you can install XML::SAX::Expat using g-cpan if you really want to).
Comment 8 Martin Mokrejš 2006-10-24 05:40:14 UTC
ribosome ~ # emerge -s XML-Parser
Searching...   
[ Results for search key : XML-Parser ]
[ Applications found : 1 ]
 
*  dev-perl/XML-Parser
      Latest version available: 2.34
      Latest version installed: 2.34
      Size of files: 224 kB
      Homepage:      http://search.cpan.org/~msergeant/XML-Parser-2.34/
      Description:   A Perl extension interface to James Clark's XML parser, expat
      License:       Artistic


ribosome ~ # 


I do have it installed. I am really puzzled what I am supposed to do. I don't know what is g-CPAN, but I know CPAN and yes, I could download the package and install XML::SAX::Expat but why isn't that in portage if it is required?
Comment 9 Yuval Yaari (RETIRED) gentoo-dev 2006-10-25 00:25:36 UTC
g-cpan -i XML::SAX::Expat
As for why it's not in portage:
http://www.gentoo.org/proj/en/devrel/handbook/hb-policy-ebuild.xml
(Read under "Perl")
Comment 10 Martin Mokrejš 2006-10-29 14:12:26 UTC
# g-cpan -i XML::SAX::Expat
...
  Database was generated on Sun, 29 Oct 2006 18:24:25 GMT

  There's a new CPAN.pm version (v1.8802) available!
  [Current version is v1.7602]
  You might want to try
    install Bundle::CPAN
    reload cpan
  without quitting the current session. It should be a seamless upgrade
  while we are running...


Trying with "/usr/bin/lynx -source" to get
    "http://search.cpan.org/CPAN"/modules/03modlist.data.gz
Going to read /var/tmp/g-cpan/.cpan/sources/modules/03modlist.data.gz
Going to write /var/tmp/g-cpan/.cpan/Metadata
 * g-cpan: Looking for XML::SAX::Expat

Trying with "/usr/bin/lynx -source" to get
    "http://search.cpan.org/CPAN"/authors/id/R/RB/RBERJON/XML-SAX-Expat-0.37.tar.gz
CPAN: Digest::MD5 loaded ok

Trying with "/usr/bin/lynx -source" to get
    "http://search.cpan.org/CPAN"/authors/id/R/RB/RBERJON/CHECKSUMS
Checksum for /var/tmp/g-cpan/.cpan/sources/authors/id/R/RB/RBERJON/XML-SAX-Expat-0.37.tar.gz ok
Scanning cache /var/tmp/g-cpan/.cpan/build for sizes
XML-SAX-Expat-0.37
XML-SAX-Expat-0.37/Expat.pm
XML-SAX-Expat-0.37/MANIFEST
XML-SAX-Expat-0.37/t
XML-SAX-Expat-0.37/t/00basic.t
XML-SAX-Expat-0.37/Changes
XML-SAX-Expat-0.37/Makefile.PL
 * g-cpan: Ebuild already exists for XML-SAX
 * g-cpan: Ebuild already exists for XML-NamespaceSupport
 * g-cpan: Looking for XML::SAX::Base

Trying with "/usr/bin/lynx -source" to get
    "http://search.cpan.org/CPAN"/authors/id/K/KH/KHAMPTON/XML-SAX-Base-1.02.tar.gz

Trying with "/usr/bin/lynx -source" to get
    "http://search.cpan.org/CPAN"/authors/id/K/KH/KHAMPTON/CHECKSUMS
Checksum for /var/tmp/g-cpan/.cpan/sources/authors/id/K/KH/KHAMPTON/XML-SAX-Base-1.02.tar.gz ok
XML-SAX-Base-1.02/
XML-SAX-Base-1.02/lib/
XML-SAX-Base-1.02/lib/XML/
XML-SAX-Base-1.02/lib/XML/SAX/
XML-SAX-Base-1.02/lib/XML/SAX/Base.pm
XML-SAX-Base-1.02/lib/XML/SAX/Exception.pm
XML-SAX-Base-1.02/README
XML-SAX-Base-1.02/MANIFEST
XML-SAX-Base-1.02/t/
XML-SAX-Base-1.02/t/10dochdriver.t
XML-SAX-Base-1.02/t/01simpledriver.t
XML-SAX-Base-1.02/t/06lexhdriver.t
XML-SAX-Base-1.02/t/08errorhdriver.t
XML-SAX-Base-1.02/t/15parentswitch.t
XML-SAX-Base-1.02/t/events.pl
XML-SAX-Base-1.02/t/02simplefilter.t
XML-SAX-Base-1.02/t/00basic.t
XML-SAX-Base-1.02/t/14downstreamswitch.t
XML-SAX-Base-1.02/t/12sax2multiclass.t
XML-SAX-Base-1.02/t/07declhdriver.t
XML-SAX-Base-1.02/t/03chdriver.t
XML-SAX-Base-1.02/t/11sax1multiclass.t
XML-SAX-Base-1.02/t/05dtdhdriver.t
XML-SAX-Base-1.02/t/04chfilter.t
XML-SAX-Base-1.02/t/09resoldriver.t
XML-SAX-Base-1.02/t/01exception.t
XML-SAX-Base-1.02/t/13handlerswitch.t
XML-SAX-Base-1.02/Makefile.PL
XML-SAX-Base-1.02/Changes
 * g-cpan: Generating ebuild for XML::SAX::Base
 * g-cpan: Ebuild generated for XML-SAX-Base
 * g-cpan: Ebuild already exists for XML-Parser
 * g-cpan: Generating ebuild for XML::SAX::Expat
 * g-cpan: Ebuild generated for XML-SAX-Expat
 * g-cpan: Nothing to install!!
# emerge -u dev-perl/XML-Simple
Calculating dependencies... done!
>>> Recording dev-perl/XML-Simple in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.

# emerge dev-perl/XML-Simple
Calculating dependencies... done!

>>> Emerging (1 of 1) dev-perl/XML-Simple-2.15 to /
 * XML-Simple-2.15.tar.gz MD5 ;-) ...                                                                                               [ ok ]
 * XML-Simple-2.15.tar.gz RMD160 ;-) ...                                                                                            [ ok ]
 * XML-Simple-2.15.tar.gz SHA1 ;-) ...                                                                                              [ ok ]
 * XML-Simple-2.15.tar.gz SHA256 ;-) ...                                                                                            [ ok ]
 * XML-Simple-2.15.tar.gz size ;-) ...                                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                              [ ok ]
 * checking XML-Simple-2.15.tar.gz ;-) ...                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking XML-Simple-2.15.tar.gz to /var/tmp/portage/dev-perl/XML-Simple-2.15/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-perl/XML-Simple-2.15/work/XML-Simple-2.15 ...
/var/tmp/portage/dev-perl/XML-Simple-2.15/work/XML-Simple-2.15
 * Using ExtUtils::MakeMaker
Checking installed modules ...
=============================================================================

  Fatal error: Your default XML parser (XML::SAX::PurePerl) is broken.

  There are known bugs in the PurePerl parser included with version 0.13 
  and 0.14 of XML::SAX.  The XML::Simple tests will fail with this parser.

  One way to avoid the problem is to install XML::SAX::Expat - it will
  install itself as the system default XML parser and then you will be able 
  to install XML::Simple successfully.  XML::SAX::Expat is also much faster
  than XML::SAX::PurePerl so you probably want it anyway.

=============================================================================

!!! ERROR: dev-perl/XML-Simple-2.15 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1261:   Called perl-module_src_compile
  perl-module.eclass, line 136:   Called perl-module_src_prep
  perl-module.eclass, line 125:   Called die

!!! Unable to build! (are you using USE="build"?)
!!! If you need support, post the topmost build error, and the call stack if relevant.

# 



So, I have 2 coments:

1. Please, improve the above error message to point "newbies" to install the g-cpan thing and what command to run.

2. What went wrong in my case?
Comment 11 Dan A. Dickey 2006-11-09 09:08:28 UTC
I'm new to g-cpan as well.  (Where did it come from? :))
However, it looks like it just creates ebuilds in your PORTDIR_OVERLAY,
which you still have to emerge.  Try an 'emerge -pv XML-SAX-Expat' after
the g-cpan -i XML::SAX::Expat and you'll see.
However, my emerge of XML-SAX-Expat is failing...
I'll try to learn more about it and see what is going wrong.
I'm hoping that if the emerge of XML-SAX-Expat goes ok, then XML-Simple
will go ok as well.

Actually (more time went by) - Just running 'g-cpan -i XML::SAX::Expat'
again causes it to try an install the second time around.  The first
time it seems to just generate the ebuilds.  The emerge or g-cpan of
XML::SAX::Expat still fails for me though...
Comment 12 Luke Ravitch 2006-11-09 21:57:45 UTC
(In reply to comment #10)
> 2. What went wrong in my case?

I also had this same problem.  Reemerging XML-LibXML did the trick for me.
Comment 13 Dan A. Dickey 2006-11-10 05:24:13 UTC
Well...
Through a combination of equery, perl-cleaner, and what not, I successfully got XML-Simple to install - without using g-cpan to install XML::SAX::Expat.
I'm running 5.8.8, and went through and updated everything that was still in 5.8.[4-7] on my system.  (Look in your /var/lib/perl5 directory).  I'm now down to just 5.8.8 "pieces".  I ran 'perl-cleaner all' after that was done, which ended up re-emerging pdflib for some reason.  Then an emerge --oneshot XML-Simple went through quite cleanly.  YMMV.   Good luck!
P.S. - There is no XML::SAX::Expat on my system either.
Comment 14 David Leverton 2006-11-10 12:51:39 UTC
Seems this happens because remerging XML-SAX (0.14-r1 in my case) overwrite the ParserDetails.ini with the default, so XML-LibXML's parser gets unregistered.
Comment 15 Martin Mokrejš 2006-11-15 23:52:50 UTC
I retried the install command and again did NOT get through:

# g-cpan -i XML::SAX::Expat
...
>>> /usr/share/doc/XML-SAX-Base-1.02/
>>> /usr/share/doc/XML-SAX-Base-1.02/Changes.gz
>>> /usr/share/doc/XML-SAX-Base-1.02/MANIFEST.gz
>>> /usr/share/doc/XML-SAX-Base-1.02/README.gz
 * Man pages are not installed for most modules now.
 * Please use perldoc instead.
>>> perl-gcpan/XML-SAX-Base-1.02 merged.

>>> No packages selected for removal by clean.


>>> Emerging (2 of 2) perl-gcpan/XML-SAX-Expat-0.37 to /
 * XML-SAX-Expat-0.37.tar.gz MD5 ;-) ...                                                                                            [ ok ]
 * XML-SAX-Expat-0.37.tar.gz RMD160 ;-) ...                                                                                         [ ok ]
 * XML-SAX-Expat-0.37.tar.gz SHA1 ;-) ...                                                                                           [ ok ]
 * XML-SAX-Expat-0.37.tar.gz SHA256 ;-) ...                                                                                         [ ok ]
 * XML-SAX-Expat-0.37.tar.gz size ;-) ...                                                                                           [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                              [ ok ]
 * checking XML-SAX-Expat-0.37.tar.gz ;-) ...                                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking XML-SAX-Expat-0.37.tar.gz to /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/work/XML-SAX-Expat-0.37 ...
/var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/work/XML-SAX-Expat-0.37
 * Using ExtUtils::MakeMaker
Checking if your kit is complete...
Looks good
Writing Makefile for XML::SAX::Expat
cp Expat.pm blib/lib/XML/SAX/Expat.pm
>>> Source compiled.
>>> Test phase [not enabled]: perl-gcpan/XML-SAX-Expat-0.37

>>> Install XML-SAX-Expat-0.37 into /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/image/ category perl-gcpan
Installing /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/image/usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/Expat.pm
Writing /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/image//usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi/auto/XML/SAX/Expat/.packlist
Appending installation info to /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/image//usr/lib/perl5/5.8.8/i686-linux-thread-multi/perllocal.pod
Can't locate XML/SAX/Expat.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/local/lib/site_perl .) at /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX.pm line 147.
make: *** [install_sax_expat] Error 2

!!! ERROR: perl-gcpan/XML-SAX-Expat-0.37 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_install
  ebuild.sh, line 1022:   Called src_install
  ebuild.sh, line 1261:   Called perl-module_src_install
  perl-module.eclass, line 163:   Called die

...
# ls -la /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/Expat.pm
ls: cannot access /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/Expat.pm: No such file or directory
# find /usr -name Expat.pm
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi/XML/Parser/Expat.pm
#

So what's wrong?
Comment 16 Vincent Le Ligeour 2006-11-19 16:26:11 UTC
Re-emerging XML-LibXML fixed the problem for me
Comment 17 Martin Wegner 2006-12-03 12:15:31 UTC
I'm getting the same error here. I tried re-merging XML-LibXML but it did not solve it for me.
Comment 18 Michael Evans 2006-12-04 09:39:17 UTC
Same problem here (~x86).  Could not find a package or flag to request XML::SAX::Expat, however the cpan install instructions on the forum worked perfectly and it's past this point now.   This needs a new package (XML-SAX-Expat ?) and dependency for it?
Comment 19 Jacek Wolszczak 2006-12-04 11:45:24 UTC
try 

perl -MCPAN -e shell
install XML::SAX::Expat
quit 

this one worked for me. from http://forums.gentoo.org/viewtopic-t-504091-highlight-pureperl.html

but before this I also tried http://bugs.gentoo.org/show_bug.cgi?id=152198#c11, so  maybe you have to combine both of these methods. 

btw. I'm using ~x86
Comment 20 Holger Bunzel 2006-12-04 15:34:56 UTC
Nor it works for me. My ParserDetails.ini has still one entry only (PurePerl). It lacks libxml and expat, but both are installed on my gentoo box.
I have another gentoo box running. Here it works - for the most part. The ParserDetails.ini has an entry for libxml, so Simple-XML will work, but expat is still missing. I donnot need expat, so it is okay for me.
The main difference of the two boxes is the "ithreads" use flag. On the box which NOT works, the use flag is activated. libxml-perl installs some stuff in "/usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi" then, without this flag it installs itsself into "/usr/lib/perl5/vendor_perl/5.8.8/i686-linux" Maybe this is the point?
I'm also using ~x86
Greetings

Holger
Comment 21 Josh Nichols (RETIRED) gentoo-dev 2006-12-04 17:15:23 UTC
I ran into this problem as well.

Remerging XML-LibXML didn't seem to help, and didn't affect ParserDetails.ini.

I ended up using updating ParserDetails.ini to use XML::LibXML::SAX:Parser, and use cpan to install it. Of course, this is more than a little kludgy, but it got me past this on onto the rest of the world.
Comment 22 Ian Voysey 2006-12-04 23:56:02 UTC
Just another data point. I fixed this by running cpan and installing the XML::SAX::Expat module. The code snippet for this is:

perl -MCPAN -e shell
install XML::SAX::Expat
quit

I found this solution on http://forums.gentoo.org/viewtopic-t-504091-highlight-devperl+xmlsimple.html
Comment 23 Ian Abbott 2006-12-05 03:55:46 UTC
The correct way would be to use g-cpan, but it doesn't work in this case (see comment #15).  It also doesn't work after removing the unneeded XML-SAX-Base dependency from the XML-SAX-Expat ebuild generated by g-cpan (XML-SAX-Base is now  incorporated into the XML-SAX ebuild).

The suggestion in comment #19 and comment #22 seems to be the best workaround until a dev-perl/XML-SAX-Expat is added to portage and dev-perl/XML-Simple depends on it.
Comment 24 Martin von Gagern 2006-12-06 01:33:44 UTC
OK, I have this one to, after encountering bug 157004 and remerging XML-SAX.
Remerging dev-perl/XML-LibXML-1.62.001 I see this line:

Can't locate XML/LibXML/SAX/Parser.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.7/i686-linux /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/local/lib/site_perl .) at /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX.pm line 147.

which, looking at the ebuild, belongs to this command here:
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"

which probably makes this whole issue a dup of or depending on bug 157247, which in turn has been duped to bug 157119, which has been fixed in CVS recently. So resync, remerge XML-LibXML, and XML-Simple should work just fine. Did for me.
Comment 25 Martin Mokrejš 2006-12-06 05:51:53 UTC
I have resynced, remerged but still get the error as in comment #15 and comment #24. Here is what I did today:

emerge -uN dbus lynx sun-jre-bin fontconfig tclx tar aspell dev-perl/XML-LibXML gimp dhcpcd ctags app-editors/vim-core dev-util/cscope app-editors/vim media-gfx/qiv xterm tcsh
etc-update
emerge -u XML-LibXML XML-Simple
emerge -uN XML-LibXML XML-Simple
emerge XML-LibXML XML-Simple
emerge -u XML-Parser
emerge XML-Parser
g-cpan -i XML::SAX::Expat  <---- failed
Comment 26 Daniel Drake (RETIRED) gentoo-dev 2006-12-06 06:26:22 UTC
(In reply to comment #25)
This bug is about XML-Simple failing to install, not g-cpan failing on XML::SAX::Expat. The steps you list seem to indicate that XML-Simple merged OK for you, so the bug is solved.
Comment 27 Martin Mokrejš 2006-12-06 09:41:44 UTC
OK, so I installed the XML::SAX::Expat manually using CPAN (succeeded), but then I get later when I try to emerge over suing 'g-cpan -i XML::SAX::Expat':

>>> Emerging (1 of 1) perl-gcpan/XML-SAX-Expat-0.37 to /
 * XML-SAX-Expat-0.37.tar.gz MD5 ;-) ...                                                                                            [ ok ]
 * XML-SAX-Expat-0.37.tar.gz RMD160 ;-) ...                                                                                         [ ok ]
 * XML-SAX-Expat-0.37.tar.gz SHA1 ;-) ...                                                                                           [ ok ]
 * XML-SAX-Expat-0.37.tar.gz SHA256 ;-) ...                                                                                         [ ok ]
 * XML-SAX-Expat-0.37.tar.gz size ;-) ...                                                                                           [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                              [ ok ]
 * checking XML-SAX-Expat-0.37.tar.gz ;-) ...                                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking XML-SAX-Expat-0.37.tar.gz to /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/work/XML-SAX-Expat-0.37 ...
/var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/work/XML-SAX-Expat-0.37
 * Using ExtUtils::MakeMaker
Checking if your kit is complete...
Looks good
Writing Makefile for XML::SAX::Expat
cp Expat.pm blib/lib/XML/SAX/Expat.pm
>>> Source compiled.
>>> Test phase [not enabled]: perl-gcpan/XML-SAX-Expat-0.37

>>> Install XML-SAX-Expat-0.37 into /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/image/ category perl-gcpan
Installing /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/image/usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/Expat.pm
Writing /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/image//usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi/auto/XML/SAX/Expat/.packlist
Appending installation info to /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/image//usr/lib/perl5/5.8.8/i686-linux-thread-multi/perllocal.pod
ACCESS DENIED  chmod:     /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserDetails.ini
ACCESS DENIED  unlink:    /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserDetails.ini
 * Cleaning out stray man files
>>> Completed installing XML-SAX-Expat-0.37 into /var/tmp/portage/perl-gcpan/XML-SAX-Expat-0.37/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-perl-gcpan_-_XML-SAX-Expat-0.37-25636.log"

chmod:     /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserDetails.ini
unlink:    /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserDetails.ini
--------------------------------------------------------------------------------
!!! This ebuild is from an overlay: '/usr/local/portage'


Please help. ;-) Other than that, it seems the original bug is really fixed now. Thanks.
Comment 28 Barry Gear 2006-12-06 22:32:42 UTC
Same here. On two different machines running ~x86, they both fail using g-cpan. emerging Lib-XML doesnt help either. The only thing that works is not using the generates XML:SAX:Expat ebuild but using perl/cpan to install Expat.

I thought I was in the clear on one machine cause my ParserDetails.ini was :
[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces = 1

[XML::LibXML::SAX::Parser]
http://xml.org/sax/features/namespaces = 1

before my XML-Simple emerge. It went in fine without needing Expat but later I got this:

Can't locate object method "new" via package "XML::LibXML::SAX::Parser" at /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserFactory.pm line 43.
make[5]: *** [install-data-local] Error 2

with gnome-themes 2.16.2

I'll try it after using cpan and installing Expat..
Comment 29 Barry Gear 2006-12-06 22:35:22 UTC
Yeah. gnome-themes-2.16.2 installed fine after manually adding Expat..
Comment 30 Martin von Gagern 2006-12-06 23:09:43 UTC
(In reply to comment #28)
> Can't locate object method "new" via package "XML::LibXML::SAX::Parser" at
> /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserFactory.pm line 43.
> make[5]: *** [install-data-local] Error 2

Are you sure you have a recent XML-LibXML installed? Because this looks a lot like bug 157004 which was caused on my system by bug 157119. 
Make sure this file is present on your system:
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/XML/LibXML/SAX/Parser.pm
Comment 31 Xake 2006-12-09 10:06:46 UTC
I got this today problem again today and for me it helped to:
emegre -C XML-SAX && emerge expat XML-Simple -1 --nodeps
So it seems XMS-Simple does not in fact need XML-SAX as long as there is another parser on your system, but still XML-Simple directly depends on it even if it gives more problems as it seems...
So maybe block XML-SAX and set a depend on some other parser?
Comment 32 Jakub Moc (RETIRED) gentoo-dev 2007-02-14 09:11:12 UTC
*** Bug 166796 has been marked as a duplicate of this bug. ***
Comment 33 Alexander Skwar 2007-02-14 10:06:21 UTC
Is there a solution for this bug?

If it doesn't work when XML-SAX is installed, wouldn't a solution be, that XML-Simple cannot be installed when XML-SAX is installed? Installing XML-Simple with "--nodeps" certainly cannot be the right way, I'd think. And if it should work with XML::SAX:Expat, then I wonder why there's no ebuild, as it would fulfill a dependency.
Comment 34 Alexander Skwar 2007-02-14 13:33:41 UTC
gnome-themes-2.16.2 requires that XML-Simple is installed, but XML-Simple cannot be installed... Please also see bug #166830.
Comment 35 Alexander Skwar 2007-03-02 08:55:38 UTC
I'd really love to install Gnome... Any idea, about when this bug might finally be fixed, so that Gnome can be installed?
Comment 36 Martin von Gagern 2007-03-02 11:38:06 UTC
XML-LibXML set as default parser for XML::SAX should work.
Unfortunately XML::SAX seems to overwrite a corresponding setting.
Solution: re-emerge XML-LibXML
If this solved it, I'd suggest making this bug here depend on bug #168988.

XML::SAX::PurePerl from XML-SAX-0.15 does work.
Solution: echo "=dev-perl/XML-SAX-0.15" >> /etc/portage/package.keywords

XML::SAX::Expat would still be nice. I just filed bug #168994 for this.
If neither the above suggestions nor g-cpan work for you, that report should be changed from an enhancement request to a real normal bug, blocking this here.
Comment 37 Alexander Skwar 2007-03-02 11:49:24 UTC
(In reply to comment #36)
> XML-LibXML set as default parser for XML::SAX should work.
> Unfortunately XML::SAX seems to overwrite a corresponding setting.
> Solution: re-emerge XML-LibXML
> If this solved it, I'd suggest making this bug here depend on bug #168988.

This solved it for me. I re-emerged XML-LibXML and after that, I was able to emerge XML-Simple.

It would be good, if you'd go ahead and make this bug (152198) a blocker of bug #168988.

Comment 38 Michael Cummings (RETIRED) gentoo-dev 2007-04-15 11:32:41 UTC
issue seems to have died down once we added the right block to the right ebuild :) closing as fixed for now, thanks all!
Comment 39 Don Bishop 2007-04-22 14:24:16 UTC
This bug remains.  I just did an emerge -e on one of my systems and it failed with the notice to use XML::SAX::Expat.  I did an emerge XML-LibXML followed by an emerge XML-Simple and it all worked fine.  I will do another emerge -e and see if the problem returns.
Comment 40 vyp08 2007-05-30 07:59:10 UTC
(In reply to comment #39)
> This bug remains.

Confirm. :(

Now stable XML-Simple-2.16 required from me unstable XML-SAX-0.15-r1.
Quote from XML-Simple-2.16/Makefile.PL:
[..]
if ( eval { require XML::SAX } && ! $@ ) {
    my $default_parser = ref(XML::SAX::ParserFactory->parser());
    if ($default_parser eq 'XML::SAX::PurePerl') {
      my $version = XML::SAX->VERSION;
      if($version > 0.12  and  $version < 0.15) {
        die <<"EOF";
=============================================================================

  Fatal error: Your default XML parser (XML::SAX::PurePerl) is broken.

  There are known bugs in the PurePerl parser included with version 0.13
  and 0.14 of XML::SAX.  The XML::Simple tests will fail with this parser.

  One way to avoid the problem is to install XML::SAX::Expat - it will
  install itself as the system default XML parser and then you will be able
  to install XML::Simple successfully.  XML::SAX::Expat is also much faster
  than XML::SAX::PurePerl so you probably want it anyway.

=============================================================================
EOF
[..]

Emerge --sync yesterday.
All packets from dev-perl/ and dev-lang/perl is stable, exclude XML-SAX-0.15-r1.
Check "~x86" flags, please.
Comment 41 Jesse Adelman 2007-07-02 21:27:13 UTC
Issue remains.

>>> Emerging (19 of 151) dev-perl/XML-Simple-2.16 to /
 * XML-Simple-2.16.tar.gz RMD160 ;-) ...                                  [ ok ]
 * XML-Simple-2.16.tar.gz SHA1 ;-) ...                                    [ ok ]
 * XML-Simple-2.16.tar.gz SHA256 ;-) ...                                  [ ok ]
 * XML-Simple-2.16.tar.gz size ;-) ...                                    [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking XML-Simple-2.16.tar.gz ;-) ...                                [ ok ]
>>> Unpacking source...
>>> Unpacking XML-Simple-2.16.tar.gz to /var/tmp/portage/dev-perl/XML-Simple-2.16/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-perl/XML-Simple-2.16/work/XML-Simple-2.16 ...
 * Using ExtUtils::MakeMaker
=============================================================================

  Fatal error: Your default XML parser (XML::SAX::PurePerl) is broken.

  There are known bugs in the PurePerl parser included with version 0.13
  and 0.14 of XML::SAX.  The XML::Simple tests will fail with this parser.

  One way to avoid the problem is to install XML::SAX::Expat - it will
  install itself as the system default XML parser and then you will be able
  to install XML::Simple successfully.  XML::SAX::Expat is also much faster
  than XML::SAX::PurePerl so you probably want it anyway.

=============================================================================
Checking installed modules ...

!!! ERROR: dev-perl/XML-Simple-2.16 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1311:   Called perl-module_src_compile
  perl-module.eclass, line 136:   Called perl-module_src_prep
  perl-module.eclass, line 125:   Called die

!!! Unable to build! (are you using USE="build"?)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/dev-perl:XML-Simple-2.16:20070702-114232.log'.

mythtvbox ~ #
Comment 42 Jesse Adelman 2007-07-02 21:29:08 UTC
Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 AMD Athlon(tm)
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 30 Jun 2007 21:00:10 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 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.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/x
kb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext
-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.usu.edu/mirrors/gentoo/
 http://gentoo.llarian.net/"
MAKEOPTS="-j8"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://homeserver-02/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi acpi4linux alsa apache2 audiofile bash-completion berkdb bitmap
-fonts bzip2 cairo cdparanoia cdr cgi chroot cli cpudetection cracklib crypt cscope ctype cups curl db
a dga dnd dri dts dv dvd dvdr dvdread eds emboss encode esd ethereal evms2 evo exif expat faad fam fas
tcgi fbcon ffmpeg fftw firefox flac font-server force-cgi-redirect freetype gd gdbm ggi gif glut gmp g
photo2 gpm gstreamer gtk hal httpd iconv idn imagemagick inode isdnlog ivtv jdepend joystick jp2 jpeg 
jsch junit kde latin1 lcd lcms libg++ lirc live lm_sensors lzo lzw lzw-tiff mad maildir matroska memli
mit mhash midi mikmod mime mjpeg mmx mmxext mng mp2 mp3 mpeg mpeg2 mpm-worker mysql mythtv na_dd na_ic
ons nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net network nls nptl nptlonly numeric offensi
ve ogg opengl openmp optional-tasks oro oscar oss pam pcap pcre pdf perl php png posix ppds pppd pytho
n qt3 qt3support quicktime readline reflection regexp rtc ruby samba sdl session silc slang slp snmp s
oap sockets spell spl sse ssl stream svg svga tga theora threads tiff tokenizer transcode truetype tru
etype-fonts type1-fonts unicode usb utf8 v4l v4l2 vhosts vlm vorbis win32codecs wmf x86 xalan xchatnogtk xchattext xerces xfs xine xinerama xml xml2 xmlrpc xorg xpm xsl xv xvid yahoo yv12 zip zlib" ALSA_C
ARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 
es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALS
A_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa l
float linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="ke
yboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcd
m001 mtxorb ncurses text" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="vga vesa ivtvdev nvidia
 nv fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, 
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 43 Tiago Marques 2008-05-03 14:37:57 UTC
Can't locate object method "new" via package "XML::LibXML::SAX::Parser" at /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserFactory.pm line 43.
make[3]: *** [install-data-local] Error 2
make[3]: Leaving directory `/var/tmp/portage/x11-themes/gnome-icon-theme-2.20.0/work/gnome-icon-theme-2.20.0/8x8/emblems'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-themes/gnome-icon-theme-2.20.0/work/gnome-icon-theme-2.20.0/8x8/emblems'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-themes/gnome-icon-theme-2.20.0/work/gnome-icon-theme-2.20.0/8x8'
make: *** [install-recursive] Error 1
 *
 * ERROR: x11-themes/gnome-icon-theme-2.20.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line  652:  Called gnome2_src_install
 *             environment, line  604:  Called die
 * The specific snippet of code:
 *           emake DESTDIR="${D}" "scrollkeeper_localstate_dir=${D}${sk_tmp_dir} " "$@" install || die "install failed";
 *  The die message:
 *   install failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-themes/gnome-icon-theme-2.20.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-themes/gnome-icon-theme-2.20.0/temp/environment'.



-----------------------------------------------------------------

Same problem. Rebuilding XML-Simple-2.15 pulled also LibXML:

1209825169:  ::: completed emerge (1 of 2) dev-perl/XML-LibXML-1.65 to /
1209825185:  ::: completed emerge (2 of 2) dev-perl/XML-Simple-2.18 to /

Maybe adding LibXML to the list of dependencies of the gnome-icon-theme ebuild? Or XML-Simple-2.18?

Should I submit a new bug report?
Comment 44 simon 2008-08-15 09:09:07 UTC
This bug seems not to be solved. I had the same problems described here during a world upgrade.

Steps to reproduce:
1.) Upgrade libperl and perl __with changed USE flag ithreads__ (was -ithreads before)

2.) upgrade XML-Simple fails:
   >>> Compiling source in /var/tmp/portage/dev-perl/XML-Simple-2.18/work/XML-Simple-2.18 ...
    * Using ExtUtils::MakeMaker
   Checking installed modules ...
   Can't locate object method "new" via package "XML::LibXML::SAX::Parser" at /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserFactory.pm line 43.
    *
    * ERROR: dev-perl/XML-Simple-2.18 failed.
    * Call stack:
    *               ebuild.sh, line   49:  Called src_compile
    *             environment, line 2289:  Called perl-module_src_compile
    *             environment, line 2023:  Called perl-module_src_prep
    *             environment, line 2076:  Called die
    * The specific snippet of code:
    *               echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none' PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || die "Unable to build! (are you using USE=\"build\"?)";
    *  The die message:
    *   Unable to build! (are you using USE="build"?)
    *
    * If you need support, post the topmost build error, and the call stack if relevant.

3.) re-emerging XML-LibXML doesn't help

4.) g-cpan'ing XML::SAX::Expat doesn't work:

   Can't locate XML/SAX/Expat.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /etc/perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/local/lib/site_perl .) at /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX.pm line 147.
   make: *** [install_sax_expat] Error 2
    *
    * ERROR: perl-gcpan/XML-SAX-Expat-0.40 failed.
    * Call stack:
    *               ebuild.sh, line   49:  Called src_install
    *             environment, line 2295:  Called perl-module_src_install
    *             environment, line 2040:  Called die
    * The specific snippet of code:
    *           make ${myinst} ${mytargets} || die;
    *  The die message:
    *   (no error message)

5.) Installing XML::SAX::Expat from the shell (see comment #22) __does work__

6.) Now upgrading to XML-Simple-2.18 does work as well