I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2006-08-29 04:20:41-07 by kida
Cannot get XML::Parser working!
Tried 12 hours of installing XML::Parser... nutting. When I do perl Makefile.PL - its fine: Then the make I get: . . . make[1]: Entering directory `/home/myhome/src/XML-Parser-2.34/Expat' gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64 -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" -fPIC "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" Expat.c Expat.xs: In function `startElement': Expat.xs:501: warning: comparison is always false due to limited range of data type Expat.xs: In function `XS_XML__Parser__Expat_LoadEncoding': Expat.xs:2043: warning: comparison is always false due to limited range of data type Expat.xs:2044: warning: comparison is always false due to limited range of data type Running Mkbootstrap for XML::Parser::Expat () . . . I'm not sure if that is bad or a bogus error, but the make does happen without any 'errors'. When i do make test, all the tests fail, and among them, i get this error: PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/astress.........Can't load '/home/myhome/src/XML-Parser-2.34/blib/arch/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: libexpat.so.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line 230. at /home/myhome/src/XML-Parser-2.34/blib/lib/XML/Parser.pm line 14 Compilation failed in require at /home/myhome/src/XML-Parser-2.34/blib/lib/XML/Parser.pm line 14. BEGIN failed--compilation aborted at /home/myhome/src/XML-Parser-2.34/blib/lib/XML/Parser.pm line 18. Compilation failed in require at t/astress.t line 11. BEGIN failed--compilation aborted at t/astress.t line 11. t/astress.........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-27 The thing is Expat.so DOES exist in that directory! I've tried installing expat-2.0 separately, but no dice. nothing is working. help? Kid-A
Direct Responses: 2852 | 2854 | Write a response
Posted on 2006-08-29 04:30:12-07 by kida in response to 2851
Re: Cannot get XML::Parser working!
Here is a more readable version of the question
When I do perl Makefile.PL - its fine:
Then the make I get:
.
.
.

make[1]: Entering directory `/home/myhome/src/XML-Parser-2.34/Expat'
gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64
-DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" -fPIC
"-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" Expat.c
Expat.xs: In function `startElement':
Expat.xs:501: warning: comparison is always false due to limited range of data type
Expat.xs: In function `XS_XML__Parser__Expat_LoadEncoding':
Expat.xs:2043: warning: comparison is always false due to limited range of data type

Expat.xs:2044: warning: comparison is always false due to limited range of data type
Running Mkbootstrap for XML::Parser::Expat ()
.
.
.

I'm not sure if that is bad or a bogus error, but the make does happen without any 'errors'.

When i do make test, all the tests fail, and among them, i get this error:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/astress.........Can't load
'/home/myhome/src/XML-Parser-2.34/blib/arch/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: libexpat.so.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line 230. at /home/myhome/src/XML-Parser-2.34/blib/lib/XML/Parser.pm line 14 Compilation failed in require at /home/myhome/src/XML-Parser-2.34/blib/lib/XML/Parser.pm line 14. BEGIN failed--compilation aborted at /home/myhome/src/XML-Parser-2.34/blib/lib/XML/Parser.pm line 18.
Compilation failed in require at t/astress.t line 11.
BEGIN failed--compilation aborted at t/astress.t line 11.
t/astress.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-27


The thing is Expat.so DOES exist in that directory!

I've tried installing expat-2.0 separately, but no dice. nothing is working. help?

Kid-A
Direct Responses: 2853 | Write a response
Posted on 2006-08-29 04:37:36-07 by szabgab in response to 2852
Re: Cannot get XML::Parser working!
Next time you could use <code></code> tags to wrap your code example. It is easier for you and one day might even look better....
Direct Responses: Write a response
Posted on 2006-08-29 05:33:32-07 by grantm in response to 2851
Re: Cannot get XML::Parser working!
Given that you seem to be running linux, why don't you just install your distribution's pre-compiled version of XML::Parser? Eg: on debian the command would be apt-get install libxml-parser-perl
Direct Responses: 2855 | Write a response
Posted on 2006-08-29 11:44:44-07 by kida in response to 2854
Re: Cannot get XML::Parser working!
installing debian isn't an option that i have. any idea about how to get this working? it seems that a few others have had this problem, i've seen similar posts on the internet, but no solution is posted?
Direct Responses: 2856 | Write a response
Posted on 2006-08-29 14:13:04-07 by kida in response to 2855
Re: Cannot get XML::Parser working!
I installed expat 1.95.8 and it worked. apparently there's somethign wrong with 2.0 with Redhat Linux? Is this something that's known? At any rate, we're back in business, thanks.
Direct Responses: Write a response