Posted on 2008-12-28 12:16:12-08 by avichay
XML-LibXML-Common-0.13
Hello,

I'm using Perl 5.8.8 on RHEL 5.1 32bit with XML-LibXML-Common-0.13 and XML-LibXML-1.66.

I want to run them on RHEL 5.2 64bit.

At first I tried to install Perl and its modules "as is" (without recompiling them).
When I used a script containing "[B]use XML::LibXML;" it gave me an error message saying:
Can't locate XML/LibXML.pm in @INC (@INC contains: /usr/cti/apps/CSPbase/Perl/lib/perl5/5.8.8/x86_64-linux /usr/cti/apps/CSPbase/Perl/lib/perl5/5.8.8 /usr/cti/apps/CSPbase/Perl/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/cti/apps/CSPbase/Perl/lib/perl5/site_perl/5.8.8 /usr/cti/apps/CSPbase/Perl/lib/perl5/site_perl .) at /usr/cti/apps/CSPbase/csp_scanner.pl line 18.

When I could not understand why this had happened I tried recompiling Perl and its modules on 64bit.
Perl compiled ok but when I'm compiling the XML-LibXML-Common-0.13 I get an error when running make test.

[root@mullins20 /tmp/PM/XML-LibXML-Common-0.13]# CSPperl Makefile.PL
enable native perl UTF8
running xml2-config... ok
looking for -lxml2... yes
Note (probably harmless): No library found for -lxml2
Writing Makefile for XML::LibXML::Common

[root@mullins20 /tmp/PM/XML-LibXML-Common-0.13]# make
cc -c -I/usr/include/libxml2 -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\" -fpic "-I/usr/cti/apps/CSPbase/Perl/lib/perl5/5.8.8/x86_64-linux/CORE" -DHAVE_UTF8 -DHAVE_BLANK Common.c
In file included from Common.xs:9:
ppport.h:362:1: warning: "PERL_UNUSED_DECL" redefined
In file included from Common.xs:7:
/usr/cti/apps/CSPbase/Perl/lib/perl5/5.8.8/x86_64-linux/CORE/perl.h:163:1: warning: this is the location of the previous definition
Running Mkbootstrap for XML::LibXML::Common ()
chmod 644 Common.bs
rm -f blib/arch/auto/XML/LibXML/Common/Common.so
LD_RUN_PATH="/usr/lib" cc -shared -L/usr/local/lib Common.o -o blib/arch/auto/XML/LibXML/Common/Common.so \
-lz -lm \

chmod 755 blib/arch/auto/XML/LibXML/Common/Common.so
cp Common.bs blib/arch/auto/XML/LibXML/Common/Common.bs
chmod 644 blib/arch/auto/XML/LibXML/Common/Common.bs
Manifying blib/man3/XML::LibXML::Common.3

[root@mullins20 /tmp/PM/XML-LibXML-Common-0.13]# make test
PERL_DL_NONLAZY=1 /usr/cti/apps/CSPbase/Perl/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..8
# Running under perl version 5.008008 for linux
# Current time local: Sun Dec 28 17:21:09 2008
# Current time GMT: Sun Dec 28 15:21:09 2008
# Using Test.pm version 1.25
Can't load 'blib/arch/auto/XML/LibXML/Common/Common.so' for module XML::LibXML::Common: blib/arch/auto/XML/LibXML/Common/Common.so: undefined symbol: xmlFree at /usr/cti/apps/CSPbase/Perl/lib/perl5/5.8.8/x86_64-linux/DynaLoader.pm line 230.
at test.pl line 10
Compilation failed in require at test.pl line 10.
BEGIN failed--compilation aborted at test.pl line 10.
make: *** [test_dynamic] Error 2

I'm not sure what to do next

[email]avichay.har-tuv@comverse.com[/email]
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.