While doing an "emerge -u world" in order to move up to Gnome 2.4, I ran into a compile problem with dev-perl/XML-LibXML. I am running Gentoo 1.4 on a Gateway YGR600 laptop with 256MB of RAM and recently went with ACCEPT_KEYWORDS="~x86" in my make.conf; before using ACCEPT_KEYWORDS="~x86", I had no problems. I did an "emerge sync" just before "emerge -u world". I get down to XML-LibXML and get the following warning: Calculating world dependencies ...done! >>> emerge (1 of 83) dev-perl/XML-LibXML-1.55 to / >>> md5 src_uri ;-) XML-LibXML-1.55.tar.gz >>> Unpacking source... >>> Unpacking XML-LibXML-1.55.tar.gz to /var/tmp/portage/XML-LibXML-1.55/work >>> Source unpacked. enable native perl UTF8 running xml2-config...untested WARNING! The installed version of libxml2 was not tested with this version of XML::LibXML. XML::LibXML may fail building or some tests may not pass. Expect strange errors and unstable scripts. Check the README file for more informations END OF WARNING "etcat -v libxml2" shows that I have libxml2 version 2.5.11 installed. The compile begins after the warning listed above and fails with this: gcc -c -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=pentium3 -O3 -pipe -fomit-frame-pointer -DVERSION=\"1.55\" -DXS_VERSION=\"1.55\" -fpic "-I/usr/lib/perl5/5.8.1/i686-linux-thread-multi/CORE" -DHAVE_UTF8 -DHAVE_BLANK perl-libxml-sax.c perl-libxml-sax.c: In function `PmmSAXInitialize': perl-libxml-sax.c:82: error: `my_perl' undeclared (first use in this function) perl-libxml-sax.c:82: error: (Each undeclared identifier is reported only once perl-libxml-sax.c:82: error: for each function it appears in.) make: *** [perl-libxml-sax.o] Error 1 !!! ERROR: dev-perl/XML-LibXML-1.55 failed. !!! Function perl-module_src_compile, Line 49, Exitcode 2 !!! compilation failed My CFLAGS from my make.conf: CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" Some Google searching seems to indicate that XML-LibXML-1.55 should work with libxml2-2.5.11 according to this AxKit thread: http://www.mail-archive.com/axkit-users@axkit.org/msg04029.html
I can make XML-LibXML-1.56 from source downloaded on CPAN. I still get the warning about the module version not being tested with libxml2, but it makes, all make tests succeed, and I can install (but didn't). Instead, I cobbled together an ebuild for XML-LibXML-1.56 by more or less copying what was in the 1.55 ebuild. This allowed me to proceed with my "emerge -u world".
Had this exact same problem, version bump to 1.56 with no changes to ebuild worked perfectly.
1.56 in portage.