This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XML::LibXSLT on Cygwin


marcos rebelo wrote:

Ok, to clarify this:

Which module do you try to install:
1. XML::LibXSLT    (M/MS/MSERGEANT/XML-LibXSLT-1.57.tar.gz)
2. XML::XSLT       (J/JS/JSTOWE/XML-XSLT-0.48.tar.gz)
3. XSLT            (J/JO/JOSTEN/XML-XSLT-0.20.tar.gz)

I guess the 1st.

This email has already sent but is about the XML::XSLT

It is possible to install this Perl module in the Cygwin.
When I do 'perl Makefile.pl' the script blows up and creats the file
'perl.exe.stackdump'


I changed the code of the Makefile.pl inside the 'sub backtick' from
open(STDOUT, ">$DEVNULL");
open(STDERR, ">$DEVNULL");
my $results = `$command`;
to:
191 warn $DEVNULL;
192 warn $command;
193
194 # open(STDOUT, ">$DEVNULL");
195 # open(STDERR, ">$DEVNULL");
196
197 my $results = `$command`;
198 warn $results;
and I get this output
running xslt-config... /dev/null at Makefile.PL line 191.
xslt-config --version at Makefile.PL line 192.
C:\cygwin\bin\perl.exe (2672): *** unable to remap
C:\cygwin\bin\cygiconv-2.dll to same address as parent0xD70000) != 0xD80000 3 [main] perl 2416 fork_parent: child 2672 died waiting for dll loading
How can I fix this?

The require:


require XML::LibXML;
if ($XML::LibXML::VERSION < 1.57) {
    die "XML::LibXML 1.57 or higher required\n";
}

at the beginning and this line in WriteMakefile():
    'PREREQ_PM' => { 'XML::LibXML' => "1.57", },

are the problem.

After removing this from Makefile.PL it works ok (iff you have
XML::LibXML already installed;)

$ make test
/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basic........ok


t/02dromeds......ok

t/03input........ok

t/04params.......Bad free() ignored (PERL_CORE) at /usr/lib/perl5/5.8/Test.pm line 375.
t/04params.......ok


t/05quick........ok 4/7Bad free() ignored (PERL_CORE).

t/05quick........ok

t/06output.......Bad free() ignored (PERL_CORE) at t/06output.t line 153.
t/06output.......ok


t/07blankdoc.....ok

t/08literal......ok

t/09exslt........ok

t/10functions....Use of uninitialized value in concatenation (.) or string at t/10functions.t line 9.
Use of uninitialized value in concatenation (.) or string at t/10functions.t line 9.
t/10functions....ok


All tests successful.
Files=10, Tests=94, 31 wallclock secs (15.42 cusr + 13.10 csys = 28.52 CPU)


Perl forks a process and tries to load the module in this child process which doesn't work without running rebase on ALL shared libraries and shared perl modules.

See the rebase package for details about the command rebaseall (don't
run it without reading the docs!).


Gerrit -- =^..^=

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]