Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30590 - Compile problem with dev-perl/XML-LibXML
Summary: Compile problem with dev-perl/XML-LibXML
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 33651
  Show dependency tree
 
Reported: 2003-10-07 11:45 UTC by Gregg Casillo
Modified: 2003-12-20 14:48 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregg Casillo 2003-10-07 11:45:52 UTC
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
Comment 1 Gregg Casillo 2003-10-07 20:49:15 UTC
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".
Comment 2 Shaun Guth 2003-10-08 16:05:52 UTC
Had this exact same problem, version bump to 1.56 with no changes to ebuild
worked perfectly.
Comment 3 Robert Coie (RETIRED) gentoo-dev 2003-12-20 14:48:23 UTC
1.56 in portage.