FAQ
Hi all,

I have recently switched to perl 5.14.1 and recompiled all my Catalyst
modules. All went fine, except Catalyst::Engine::HTTP::Prefork. It turns
out that this module brings HTTP::HeaderParser::XS as a dependency, and
'make test' for this last module fails (see below).

Reading DynaLoader.pm line 213 it says that very often programs fail
saying that there's an error in there, but it's really the XS
initialization code for the module which is really failing. Since my XS
skills are, well, close to zero, I can't trace anything there. How can I
trace the loading of an XS module? I have tried even with strace, but I
didn't see anything...

Has anyone stepped on this problem before? I have googled for it for an
hour, with no success...

Regards
J.

P.S. I'm copying the module author...

---- HTTP::HeaderParser::XS test log ----

[jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-TnpClr]$ make test
PERL_DL_NONLAZY=1
/home/jorgegv/perl5/perlbrew/perls/perl-5.14.1/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/10-basic.t .. 1/39
# Failed test 'use HTTP::HeaderParser::XS;'
# at t/10-basic.t line 10.
# Tried to use 'HTTP::HeaderParser::XS'.
# Error: Not a CODE reference at
/home/jorgegv/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/i686-linux-thread-multi/DynaLoader.pm
line 213.
# END failed--call queue aborted at
/home/jorgegv/.cpan/build/HTTP-HeaderParser-XS-0.20-TnpClr/blib/lib/HTTP/HeaderParser/XS.pm
line 213.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Bizarre copy of UNKNOWN in list assignment at
/home/jorgegv/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/Test/Builder.pm line
942.
Attempt to free unreferenced scalar: SV 0x935f500, Perl interpreter:
0x935f008 at
/home/jorgegv/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/Test/Builder.pm line
942.
# Looks like you planned 39 tests but ran 6.
# Looks like you failed 1 test of 6 run.
# Looks like your test exited with 255 just after 6.
t/10-basic.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 34/39 subtests

Test Summary Report
-------------------
t/10-basic.t (Wstat: 65280 Tests: 6 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 39 tests but ran 6.
Files=1, Tests=6, 0 wallclock secs ( 0.07 usr 0.02 sys + 0.06 cusr
0.04 csys = 0.19 CPU)
Result: FAIL
Failed 1/1 test programs. 1/6 subtests failed.
make: *** [test_dynamic] Error 255

----

--

*/Jorge González Villalonga/*
Director Técnico

*/DAIKON Integración y Desarrollo S.L./*
Telf: (+34) 91 188 08 28
Fax: (+34) 91 632 65 42
*www.daikon.es*

-------------- next part --------------
Skipped content of type multipart/related

Search Discussions

  • Len Jaffe at Jun 20, 2011 at 3:37 pm



    Reading DynaLoader.pm line 213 it says that very often programs fail saying
    that there's an error in there, but it's really the XS initialization code
    for the module which is really failing. Since my XS skills are, well, close
    to zero, I can't trace anything there. How can I trace the loading of an XS
    module? I have tried even with strace, but I didn't see anything...
    I just worked through an XS loader issue last week. It typically has to do
    with unsatisfied dependencies in the web of shared libs that you're trying
    to load.

    so find the .so in question, and run ldd on it. ldd will list all of that
    library's dependencies, and tell you if it can find them or not. If it can't
    then you probably need to add a few libs to your LD_LIBRARY_PATH variable.

    Len.
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110620/076e6c12/attachment.htm
  • Jorge Gonzalez at Jun 20, 2011 at 7:04 pm
    Thaks Len.

    I already had done that before posting, no success. It looks like all
    LD dependencies are satisfied:

    (after 'make test'):
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-TnpClr]$ find . -name "*.so"
    ./blib/arch/auto/HTTP/HeaderParser/XS/XS.so
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-TnpClr]$ ldd
    ./blib/arch/auto/HTTP/HeaderParser/XS/XS.so
    linux-gate.so.1 => (0x0040c000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00110000)
    libm.so.6 => /lib/libm.so.6 (0x00d5f000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0061b000)
    libc.so.6 => /lib/libc.so.6 (0x001fb000)
    /lib/ld-linux.so.2 (0x00682000)

    Any more ideas?
    Thanks
    J.


    El 20/06/11, Len Jaffe <lenjaffe@jaffesystems.com> escribi?:


    Reading DynaLoader.pm line 213 it says that very often programs fail saying
    that there's an error in there, but it's really the XS initialization code
    for the module which is really failing. Since my XS skills are, well, close
    to zero, I can't trace anything there. How can I trace the loading of an XS
    module? I have tried even with strace, but I didn't see anything...
    I just worked through an XS loader issue last week. It typically has to do
    with unsatisfied dependencies in the web of shared libs that you're trying
    to load.

    so find the .so in question, and run ldd on it. ldd will list all of that
    library's dependencies, and tell you if it can find them or not. If it can't
    then you probably need to add a few libs to your LD_LIBRARY_PATH variable.

    Len.
  • Len Jaffe at Jun 20, 2011 at 8:06 pm

    On Mon, Jun 20, 2011 at 3:04 PM, Jorge Gonzalez wrote:

    Thaks Len.

    I already had done that before posting, no success. It looks like all LD
    dependencies are satisfied:

    (after 'make test'):
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-**TnpClr]$ find . -name
    "*.so"
    ./blib/arch/auto/HTTP/**HeaderParser/XS/XS.so
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-**TnpClr]$ ldd
    ./blib/arch/auto/HTTP/**HeaderParser/XS/XS.so
    linux-gate.so.1 => (0x0040c000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00110000)
    libm.so.6 => /lib/libm.so.6 (0x00d5f000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0061b000)
    libc.so.6 => /lib/libc.so.6 (0x001fb000)
    /lib/ld-linux.so.2 (0x00682000)

    Any more ideas?


    Hmm...
    make sure all those libraries are readable.
    make sure you can resolve all the dependencies in those 6 libraries too.

    Len.



    --
    lenjaffe@jaffesystems.com 614-404-4214
    Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
    Asst. Scoutmaster Troop 156 - www.bsatroop156.org -
    webmaster@bsatroop156.org
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110620/bfdaf154/attachment.htm
  • Jorge Gonzalez at Jun 21, 2011 at 10:29 am
    El 20/06/11 22:06, Len Jaffe escribi?:
    Hmm...
    make sure all those libraries are readable.
    make sure you can resolve all the dependencies in those 6 libraries too.
    Len.
    All are readable and resolvable, I think all of them are pretty standard
    system libraries. I'm resolving them as a normal user, so the very fact
    that ldd can open and check them indicates that permissions are OK.

    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-TnpClr]$ ldd
    ./blib/arch/auto/HTTP/HeaderParser/XS/XS.so
    linux-gate.so.1 => (0x00b80000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00c88000)
    libm.so.6 => /lib/libm.so.6 (0x0072e000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00766000)
    libc.so.6 => /lib/libc.so.6 (0x009b3000)
    /lib/ld-linux.so.2 (0x00682000)
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-TnpClr]$ ldd
    /usr/lib/libstdc++.so.6
    linux-gate.so.1 => (0x00203000)
    libm.so.6 => /lib/libm.so.6 (0x00837000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00925000)
    libc.so.6 => /lib/libc.so.6 (0x006a6000)
    /lib/ld-linux.so.2 (0x00682000)
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-TnpClr]$ ldd /lib/libm.so.6
    /lib/ld-linux.so.2 (0x00682000)
    linux-gate.so.1 => (0x00e82000)
    libc.so.6 => /lib/libc.so.6 (0x006a6000)
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-TnpClr]$ ldd
    /lib/libgcc_s.so.1
    linux-gate.so.1 => (0x00cab000)
    libc.so.6 => /lib/libc.so.6 (0x006a6000)
    /lib/ld-linux.so.2 (0x00682000)
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-TnpClr]$ ldd /lib/libc.so.6
    /lib/ld-linux.so.2 (0x00682000)
    linux-gate.so.1 => (0x00f45000)

    How can I trace the loading and errors of
    blib/arch/auto/HTTP/HeaderParser/XS/XS.so?

    Regards
    Jorge
  • Len Jaffe at Jun 21, 2011 at 1:33 pm
    We're nearing the outer limits of my experience.
    I'd try strace, it might tell you which shared lib is failing to load.

    Len.
    On Tue, Jun 21, 2011 at 6:29 AM, Jorge Gonzalez wrote:

    El 20/06/11 22:06, Len Jaffe escribi�:

    Hmm...
    make sure all those libraries are readable.
    make sure you can resolve all the dependencies in those 6 libraries too.
    Len.

    All are readable and resolvable, I think all of them are pretty standard
    system libraries. I'm resolving them as a normal user, so the very fact that
    ldd can open and check them indicates that permissions are OK.


    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-**TnpClr]$ ldd
    ./blib/arch/auto/HTTP/**HeaderParser/XS/XS.so
    linux-gate.so.1 => (0x00b80000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00c88000)
    libm.so.6 => /lib/libm.so.6 (0x0072e000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00766000)
    libc.so.6 => /lib/libc.so.6 (0x009b3000)

    /lib/ld-linux.so.2 (0x00682000)
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-**TnpClr]$ ldd
    /usr/lib/libstdc++.so.6
    linux-gate.so.1 => (0x00203000)
    libm.so.6 => /lib/libm.so.6 (0x00837000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00925000)
    libc.so.6 => /lib/libc.so.6 (0x006a6000)

    /lib/ld-linux.so.2 (0x00682000)
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-**TnpClr]$ ldd
    /lib/libm.so.6

    /lib/ld-linux.so.2 (0x00682000)
    linux-gate.so.1 => (0x00e82000)
    libc.so.6 => /lib/libc.so.6 (0x006a6000)
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-**TnpClr]$ ldd
    /lib/libgcc_s.so.1
    linux-gate.so.1 => (0x00cab000)
    libc.so.6 => /lib/libc.so.6 (0x006a6000)

    /lib/ld-linux.so.2 (0x00682000)
    [jorgegv@desarrollo3 HTTP-HeaderParser-XS-0.20-**TnpClr]$ ldd
    /lib/libc.so.6

    /lib/ld-linux.so.2 (0x00682000)
    linux-gate.so.1 => (0x00f45000)

    How can I trace the loading and errors of blib/arch/auto/HTTP/**
    HeaderParser/XS/XS.so?

    Regards
    Jorge



    ______________________________**_________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-**bin/mailman/listinfo/catalyst<http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst>
    Searchable archive: http://www.mail-archive.com/**
    catalyst@lists.scsys.co.uk/<http://www.mail-archive.com/catalyst@lists.scsys.co.uk/>
    Dev site: http://dev.catalyst.perl.org/


    --
    lenjaffe@jaffesystems.com 614-404-4214
    Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
    Asst. Scoutmaster Troop 156 - www.bsatroop156.org -
    webmaster@bsatroop156.org
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110621/764edeeb/attachment.htm
  • Jorge Gonzalez at Jun 21, 2011 at 2:32 pm

    El 21/06/11 15:33, Len Jaffe escribi?:
    We're nearing the outer limits of my experience.
    I'd try strace, it might tell you which shared lib is failing to load.

    Len.
    Been there, done that. In fact it was almost the first thing I tried. No
    news. It mmaps correctly all needed libraries and seems to jump to
    execute it, then returns with an error.

    It would be great to know the library function that the perl code jumps
    into when loading an XS shared object. This would allow us to follow the
    control flow inside the XS source and try to spot the offender.

    It seems that this function might be boot_HTTP__HeaderParse__XS (you can
    check symbols in the .so with 'nm'), but I can't find its definition
    anywhere but in HTTPHeaders.c, which is autogenerated from HTTPHeaders.xs.

    I set PERL_DL_DEBUG=1 before executing again 'make test', which gives a
    bit more info, but not nearly enough.

    I'm stuck. I'll explore some other ways, like disabling
    Catalyst::Engine::HTTP::Prefork's use of this module.

    I'll keep you informed.
    (desperate) Regards :-)
    J.
  • Jorge Gonzalez at Jun 21, 2011 at 2:46 pm
    It seems this one was caught some 10 days ago:

    http://www.cpantesters.org/cpan/report/e78f810a-9422-11e0-b1d0-9dea81bb81c4

    The error which appears in the report is _exactly_ the one I'm stepping on.

    J.

    El 21/06/11 16:32, Jorge Gonzalez escribi?:
    El 21/06/11 15:33, Len Jaffe escribi?:
    We're nearing the outer limits of my experience.
    I'd try strace, it might tell you which shared lib is failing to load.

    Len.
    Been there, done that. In fact it was almost the first thing I tried.
    No news. It mmaps correctly all needed libraries and seems to jump to
    execute it, then returns with an error.

    It would be great to know the library function that the perl code
    jumps into when loading an XS shared object. This would allow us to
    follow the control flow inside the XS source and try to spot the
    offender.

    It seems that this function might be boot_HTTP__HeaderParse__XS (you
    can check symbols in the .so with 'nm'), but I can't find its
    definition anywhere but in HTTPHeaders.c, which is autogenerated from
    HTTPHeaders.xs.

    I set PERL_DL_DEBUG=1 before executing again 'make test', which gives
    a bit more info, but not nearly enough.

    I'm stuck. I'll explore some other ways, like disabling
    Catalyst::Engine::HTTP::Prefork's use of this module.

    I'll keep you informed.
    (desperate) Regards :-)
    J.


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
  • Len Jaffe at Jun 21, 2011 at 3:46 pm
    well, that's something at least.

    On Tue, Jun 21, 2011 at 10:46 AM, Jorge Gonzalez
    wrote:
    It seems this one was caught some 10 days ago:

    http://www.cpantesters.org/**cpan/report/e78f810a-9422-**
    11e0-b1d0-9dea81bb81c4<http://www.cpantesters.org/cpan/report/e78f810a-9422-11e0-b1d0-9dea81bb81c4>

    The error which appears in the report is _exactly_ the one I'm stepping on.

    J.

    El 21/06/11 16:32, Jorge Gonzalez escribi�:

    El 21/06/11 15:33, Len Jaffe escribi�:
    We're nearing the outer limits of my experience.
    I'd try strace, it might tell you which shared lib is failing to load.

    Len.
    Been there, done that. In fact it was almost the first thing I tried. No
    news. It mmaps correctly all needed libraries and seems to jump to execute
    it, then returns with an error.

    It would be great to know the library function that the perl code jumps
    into when loading an XS shared object. This would allow us to follow the
    control flow inside the XS source and try to spot the offender.

    It seems that this function might be boot_HTTP__HeaderParse__XS (you can
    check symbols in the .so with 'nm'), but I can't find its definition
    anywhere but in HTTPHeaders.c, which is autogenerated from HTTPHeaders.xs.

    I set PERL_DL_DEBUG=1 before executing again 'make test', which gives a
    bit more info, but not nearly enough.

    I'm stuck. I'll explore some other ways, like disabling
    Catalyst::Engine::HTTP::**Prefork's use of this module.

    I'll keep you informed.
    (desperate) Regards :-)
    J.


    ______________________________**_________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-**bin/mailman/listinfo/catalyst<http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst>
    Searchable archive: http://www.mail-archive.com/**
    catalyst@lists.scsys.co.uk/<http://www.mail-archive.com/catalyst@lists.scsys.co.uk/>
    Dev site: http://dev.catalyst.perl.org/

    ______________________________**_________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-**bin/mailman/listinfo/catalyst<http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst>
    Searchable archive: http://www.mail-archive.com/**
    catalyst@lists.scsys.co.uk/<http://www.mail-archive.com/catalyst@lists.scsys.co.uk/>
    Dev site: http://dev.catalyst.perl.org/


    --
    lenjaffe@jaffesystems.com 614-404-4214
    Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
    Asst. Scoutmaster Troop 156 - www.bsatroop156.org -
    webmaster@bsatroop156.org
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110621/aa63ce09/attachment.htm
  • Jorge Gonzalez at Jun 21, 2011 at 3:51 pm
    Well, it looks like the Catalyst::Engine::HTTP::Prefork module will be
    abandoned in the near future, so some guru on #catalyst advised me to
    move on to Starman/PSGI for a real high performance preforking server
    for Catalyst.

    Which I did. My application is now running full tilt. It took me less
    than 10 minutes to convert (:-) my app to Starman.

    Thanks, Len, for your time.

    Regards
    Jorge

    El 21/06/11 16:46, Jorge Gonzalez escribi?:
    It seems this one was caught some 10 days ago:

    http://www.cpantesters.org/cpan/report/e78f810a-9422-11e0-b1d0-9dea81bb81c4


    The error which appears in the report is _exactly_ the one I'm
    stepping on.

    J.

    El 21/06/11 16:32, Jorge Gonzalez escribi?:
    El 21/06/11 15:33, Len Jaffe escribi?:
    We're nearing the outer limits of my experience.
    I'd try strace, it might tell you which shared lib is failing to load.

    Len.
    Been there, done that. In fact it was almost the first thing I tried.
    No news. It mmaps correctly all needed libraries and seems to jump to
    execute it, then returns with an error.

    It would be great to know the library function that the perl code
    jumps into when loading an XS shared object. This would allow us to
    follow the control flow inside the XS source and try to spot the
    offender.

    It seems that this function might be boot_HTTP__HeaderParse__XS (you
    can check symbols in the .so with 'nm'), but I can't find its
    definition anywhere but in HTTPHeaders.c, which is autogenerated from
    HTTPHeaders.xs.

    I set PERL_DL_DEBUG=1 before executing again 'make test', which gives
    a bit more info, but not nearly enough.

    I'm stuck. I'll explore some other ways, like disabling
    Catalyst::Engine::HTTP::Prefork's use of this module.

    I'll keep you informed.
    (desperate) Regards :-)
    J.


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
  • Len Jaffe at Jun 21, 2011 at 3:56 pm

    On Tue, Jun 21, 2011 at 11:51 AM, Jorge Gonzalez wrote:

    Well, it looks like the Catalyst::Engine::HTTP::**Prefork module will be
    abandoned in the near future, so some guru on #catalyst advised me to move
    on to Starman/PSGI for a real high performance preforking server for
    Catalyst.

    Which I did. My application is now running full tilt. It took me less than
    10 minutes to convert (:-) my app to Starman.

    Thanks, Len, for your time.
    You're very welcome.
    You're also on the hook if I ever need Starman help.

    Len.

    --
    lenjaffe@jaffesystems.com 614-404-4214
    Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
    Asst. Scoutmaster Troop 156 - www.bsatroop156.org -
    webmaster@bsatroop156.org
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110621/39cfd1cc/attachment.htm
  • Moens, Karl at Aug 26, 2011 at 1:21 pm
    Mmmm, it seems Starman does not compile on Windows.

    The docs say: "UNIX only This server does not support Win32."

    Now that Starman is included in Catalyst::Devel, installing that module also fails utterly. :(

    Does anyone have a solution for this?

    Karl


    Karl Moens, Claims Liability Manager
    Marsh | Marine Practice
    Uitbreidingstraat 180, B-2600 Antwerpen-Berchem
    +32 3 286 64 82 | Mobile +32 486 43 02 01 | Fax +32 3 286 64 57 | karl.moens@marsh.com
    www.marsh.com | Marsh N.V.


    -----Original Message-----
    From: Jorge Gonzalez
    Sent: mardi 21 juin 2011 17:51
    To: catalyst@lists.scsys.co.uk
    Subject: Re: [Catalyst] Problem in compiling Catalyst::Engine::HTTP::Prefork due to HTTP::HeaderParser::XS

    Well, it looks like the Catalyst::Engine::HTTP::Prefork module will be abandoned in the near future, so some guru on #catalyst advised me to move on to Starman/PSGI for a real high performance preforking server for Catalyst.

    Which I did. My application is now running full tilt. It took me less than 10 minutes to convert (:-) my app to Starman.

    Thanks, Len, for your time.

    Regards
    Jorge
    Marsh (S.A.-N.V.) - VAT BE 0403.276.906 RPR-RPM Brussels Registered CBFA
    014192 A - Boulevard du Souverain / Vorstlaan 2, B-1170 Brussels,BELGIUM

    This message and any attachments are confidential. If you have received this
    message in error please delete it from your system. If you require any
    assistance please notify the sender. Thank you.
  • Tomas Doran at Aug 30, 2011 at 7:49 am

    On 26 Aug 2011, at 14:21, Moens, Karl wrote:

    Mmmm, it seems Starman does not compile on Windows.

    The docs say: "UNIX only This server does not support Win32."

    Now that Starman is included in Catalyst::Devel, installing that
    module also fails utterly. :(

    Does anyone have a solution for this?
    Not awesome. We need a server with forking & keepalive for the -k and -
    f options in Catalyst::Script::Server

    Does Starlet work in Windows, as this is lighter, could alternatively
    fit the bill?

    Cheers
    t0m
  • Christiaan Kras at Aug 30, 2011 at 10:51 am
    Op 30-8-2011 9:49, Tomas Doran schreef:
    On 26 Aug 2011, at 14:21, Moens, Karl wrote:

    Mmmm, it seems Starman does not compile on Windows.

    The docs say: "UNIX only This server does not support Win32."

    Now that Starman is included in Catalyst::Devel, installing that
    module also fails utterly. :(

    Does anyone have a solution for this?
    Not awesome. We need a server with forking & keepalive for the -k and
    -f options in Catalyst::Script::Server

    Does Starlet work in Windows, as this is lighter, could alternatively
    fit the bill?

    Cheers
    t0m


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    Starlet won't build on Windows for me.

    Plackup however, works fine for me though. But doesn't seem to support
    keep-alive and forking.

    --
    Christiaan Kras
    http://blog.htbaa.com
  • Tomas Doran at Aug 30, 2011 at 11:29 am

    On 30 Aug 2011, at 11:51, Christiaan Kras wrote:
    Starlet won't build on Windows for me.
    Can you give us some more info?
    Plackup however, works fine for me though. But doesn't seem to
    support keep-alive and forking.
    erm? plackup is orthogonal to what server you use? Ergo if you use a
    forking server, then the server you start will be forking... If you
    don't, it won't..

    Cheers
    t0m
  • Christiaan Kras at Aug 30, 2011 at 2:32 pm
    Op 30-8-2011 13:29, Tomas Doran schreef:
    On 30 Aug 2011, at 11:51, Christiaan Kras wrote:
    Starlet won't build on Windows for me.
    Can you give us some more info?
    Looks like some of its dependencies won't install. I attached the build
    log. Proc::Wait3 is the one that won't install due to missing headers.
    But perhaps my Perl is too outdated? Still use Strawberry Perl 5.010001
    (built for MSWin32-x86-multi-thread) on this machine. My laptop has a
    more recent version of 5.12. Could test it later.
    Plackup however, works fine for me though. But doesn't seem to
    support keep-alive and forking.
    erm? plackup is orthogonal to what server you use? Ergo if you use a
    forking server, then the server you start will be forking... If you
    don't, it won't..
    I meant calling plackup without specifying a server, and thus using the
    default.

    --

    Christiaan Kras
    http://blog.htbaa.com

    -------------- next part --------------
    cpanm (App::cpanminus) 1.1 on perl 5.010001 built for MSWin32-x86-multi-thread
    Work directory is /.cpanm/work/1314714658.3176
    You have make C:\strawberry\c\bin\dmake.exe
    You have LWP 5.837
    Falling back to Archive::Tar 1.72
    Searching Proc::Wait3 on cpanmetadb ...
    --> Working on Proc::Wait3
    Fetching http://search.cpan.org/CPAN/authors/id/C/CT/CTILMES/Proc-Wait3-0.04.tar.gz
    -> OK
    Unpacking Proc-Wait3-0.04.tar.gz
    Entering Proc-Wait3-0.04
    Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.56)
    Configuring Proc-Wait3-0.04
    Running Makefile.PL
    -> OK
    Finding PREREQ from Makefile ...
    Building and testing Proc-Wait3-0.04
    -> FAIL Installing Proc::Wait3 failed. See \.cpanm\build.log for details.
  • Christiaan Kras at Aug 30, 2011 at 2:57 pm
    Skipped content of type multipart/alternative-------------- next part --------------
    cpanm (App::cpanminus) 1.1 on perl 5.010001 built for MSWin32-x86-multi-thread
    Work directory is /.cpanm/work/1314716189.7552
    You have make C:\strawberry\c\bin\dmake.exe
    You have LWP 5.837
    Falling back to Archive::Tar 1.72
    Searching Starlet on cpanmetadb ...
    --> Working on Starlet
    Fetching http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/Starlet-0.13.tar.gz
    -> OK
    Unpacking Starlet-0.13.tar.gz
    Entering Starlet-0.13
    Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
    Configuring Starlet-0.13
    Running Makefile.PL
    Warning: prerequisite Parallel::Prefork 0.07 not found.
    Warning: prerequisite Server::Starter 0.06 not found.
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Starlet
    Writing MYMETA.yml
    -> OK
    Checking dependencies from MYMETA.yml ...
    Finding PREREQ from Makefile ...
    Checking if you have Server::Starter 0.06 ... No
    Checking if you have Plack 0.992 ... Yes (0.9974)
    Checking if you have Parallel::Prefork 0.07 ... No
    Checking if you have Test::More 0.88 ... Yes (0.96)
    Checking if you have Test::TCP 0.15 ... Yes (0.16)
    Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
    Checking if you have Test::More 0.88 ... Yes (0.96)
    Checking if you have Test::TCP 0.15 ... Yes (0.16)
    Checking if you have Plack 0.992 ... Yes (0.9974)
    Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
    ==> Found dependencies: Server::Starter, Parallel::Prefork
    Searching Server::Starter on cpanmetadb ...
    --> Working on Server::Starter
    Fetching http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/Server-Starter-0.11.tar.gz
    -> OK
    Unpacking Server-Starter-0.11.tar.gz
    Entering Server-Starter-0.11
    Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
    Configuring Server-Starter-0.11
    Running Makefile.PL
    *** Module::AutoInstall version 1.03
    *** Checking for Perl dependencies...
    *** Since we're running under CPAN, I'll just let it take care
    of the dependency's installation later.
    [Core Features]
    - Test::TCP ...missing. (would need 0.11)
    - Getopt::Long ...loaded. (2.38)
    - List::MoreUtils ...loaded. (0.26)
    - Proc::Wait3 ...missing.
    - Scope::Guard ...loaded. (0.20)
    *** Module::AutoInstall configuration finished.
    Checking if your kit is complete...
    Looks good
    Warning: prerequisite Proc::Wait3 0 not found.
    Writing Makefile for Server::Starter
    Writing MYMETA.yml
    -> OK
    Checking dependencies from MYMETA.yml ...
    Finding PREREQ from Makefile ...
    Checking if you have Proc::Wait3 0 ... No
    Checking if you have Getopt::Long 0 ... Yes (2.38)
    Checking if you have Scope::Guard 0 ... Yes (0.20)
    Checking if you have List::MoreUtils 0 ... Yes (0.26)
    Checking if you have Test::TCP 0.11 ... Yes (0.16)
    Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
    Checking if you have Getopt::Long 0 ... Yes (2.38)
    Checking if you have Test::TCP 0.11 ... Yes (0.16)
    Checking if you have Scope::Guard 0 ... Yes (0.20)
    Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
    Checking if you have List::MoreUtils 0 ... Yes (0.26)
    ==> Found dependencies: Proc::Wait3
    Searching Proc::Wait3 on cpanmetadb ...
    --> Working on Proc::Wait3
    Fetching http://search.cpan.org/CPAN/authors/id/C/CT/CTILMES/Proc-Wait3-0.04.tar.gz
    -> OK
    Unpacking Proc-Wait3-0.04.tar.gz
    Entering Proc-Wait3-0.04
    Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.56)
    Configuring Proc-Wait3-0.04
    Running Makefile.PL
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Proc::Wait3
    -> OK
    Finding PREREQ from Makefile ...
    Building and testing Proc-Wait3-0.04
    cp Wait3.pm blib\lib\Proc\Wait3.pm
    C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap Wait3.xs > Wait3.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "mv" -- Wait3.xsc Wait3.c
    gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" "-IC:\strawberry\perl\lib\CORE" Wait3.c
    Wait3.xs:5:22: sys/wait.h: No such file or directory
    Wait3.xs:6:26: sys/resource.h: No such file or directory
    Wait3.xs: In function `XS_Proc__Wait3_wait3':
    Wait3.xs:17: error: storage size of 'r' isn't known
    dmake.exe: Error code 129, while making 'Wait3.o'
    -> FAIL Installing Proc::Wait3 failed. See \.cpanm\build.log for details.
    -> FAIL Bailing out the installation for Server-Starter-0.11. Retry with --prompt or --force.
    Searching Parallel::Prefork on cpanmetadb ...
    --> Working on Parallel::Prefork
    Fetching http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/Parallel-Prefork-0.11.tar.gz
    -> OK
    Unpacking Parallel-Prefork-0.11.tar.gz
    Entering Parallel-Prefork-0.11
    Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
    Configuring Parallel-Prefork-0.11
    Running Makefile.PL
    Warning: prerequisite Proc::Wait3 0.03 not found.
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Parallel::Prefork
    Writing MYMETA.yml
    -> OK
    Checking dependencies from MYMETA.yml ...
    Finding PREREQ from Makefile ...
    Checking if you have Proc::Wait3 0.03 ... No
    Checking if you have Scope::Guard 0 ... Yes (0.20)
    Checking if you have List::MoreUtils 0 ... Yes (0.26)
    Checking if you have Class::Accessor::Lite 0.04 ... Yes (0.05)
    Checking if you have Test::Requires 0 ... Yes (0.05)
    Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
    Checking if you have Test::Requires 0 ... Yes (0.05)
    Checking if you have Scope::Guard 0 ... Yes (0.20)
    Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
    Checking if you have List::MoreUtils 0 ... Yes (0.26)
    Checking if you have Class::Accessor::Lite 0.04 ... Yes (0.05)
    ==> Found dependencies: Proc::Wait3
    Already tried Proc::Wait3. Skipping.
    Building and testing Parallel-Prefork-0.11
    cp lib/Parallel/Prefork.pm blib\lib\Parallel\Prefork.pm
    cp lib/Parallel/Prefork/SpareWorkers/Scoreboard.pm blib\lib\Parallel\Prefork\SpareWorkers\Scoreboard.pm
    cp lib/Parallel/Prefork/SpareWorkers.pm blib\lib\Parallel\Prefork\SpareWorkers.pm
    C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t

    # Failed test 'use Parallel::Prefork;'
    # at t/01-base.t line 10.
    # Tried to use 'Parallel::Prefork'.
    # Error: Can't locate Proc/Wait3.pm in @INC (@INC contains: C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\inc C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\arch C:/strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib/Parallel/Prefork.pm line 10.
    # BEGIN failed--compilation aborted at C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib/Parallel/Prefork.pm line 10.
    # Compilation failed in require at (eval 13) line 2.
    # BEGIN failed--compilation aborted at (eval 13) line 2.

    # Failed test at t/01-base.t line 23.
    Can't call method "signal_received" on an undefined value at t/01-base.t line 33.
    # Looks like you planned 5 tests but ran 2.
    # Looks like you failed 2 tests of 2 run.
    # Looks like your test exited with 255 just after 2.
    t/01-base.t ..........
    Dubious, test returned 255 (wstat 65280, 0xff00)
    Failed 5/5 subtests

    # Failed test 'use Parallel::Prefork;'
    # at t/02-reconfigure.t line 8.
    # Tried to use 'Parallel::Prefork'.
    # Error: Can't locate Proc/Wait3.pm in @INC (@INC contains: C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\inc C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\arch C:/strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib/Parallel/Prefork.pm line 10.
    # BEGIN failed--compilation aborted at C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib/Parallel/Prefork.pm line 10.
    # Compilation failed in require at (eval 4) line 2.
    # BEGIN failed--compilation aborted at (eval 4) line 2.

    # Failed test at t/02-reconfigure.t line 20.
    Can't call method "signal_received" on an undefined value at t/02-reconfigure.t line 24.
    # Looks like you planned 3 tests but ran 2.
    # Looks like you failed 2 tests of 2 run.
    # Looks like your test exited with 255 just after 2.
    t/02-reconfigure.t ...
    Dubious, test returned 255 (wstat 65280, 0xff00)
    Failed 3/3 subtests

    # Failed test 'use Parallel::Prefork::SpareWorkers;'
    # at t/03-spareworkers.t line 8.
    # Tried to use 'Parallel::Prefork::SpareWorkers'.
    # Error: Can't locate Proc/Wait3.pm in @INC (@INC contains: C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\inc C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\arch C:/strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib/Parallel/Prefork.pm line 10.
    # BEGIN failed--compilation aborted at C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib/Parallel/Prefork.pm line 10.
    # Compilation failed in require at (eval 15) line 3.
    # ...propagated at C:/strawberry/perl/lib/base.pm line 94.
    # BEGIN failed--compilation aborted at C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib/Parallel/Prefork/SpareWorkers.pm line 10.
    # Compilation failed in require at (eval 14) line 2.
    # BEGIN failed--compilation aborted at (eval 14) line 2.
    Can't locate object method "new" via package "Parallel::Prefork::SpareWorkers" at t/03-spareworkers.t line 12.
    # Looks like you planned 8 tests but ran 1.
    # Looks like you failed 1 test of 1 run.
    # Looks like your test exited with 255 just after 1.
    t/03-spareworkers.t ..
    Dubious, test returned 255 (wstat 65280, 0xff00)
    Failed 8/8 subtests
    Can't locate Proc/Wait3.pm in @INC (@INC contains: C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\inc C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\arch C:/strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib/Parallel/Prefork.pm line 10.
    BEGIN failed--compilation aborted at C:\.cpanm\work\1314716189.7552\Parallel-Prefork-0.11\blib\lib/Parallel/Prefork.pm line 10.
    Compilation failed in require at t/04-interval.t line 5.
    BEGIN failed--compilation aborted at t/04-interval.t line 5.
    t/04-interval.t ......
    Dubious, test returned 2 (wstat 512, 0x200)
    No subtests run

    Test Summary Report
    -------------------
    t/01-base.t (Wstat: 65280 Tests: 2 Failed: 2)
    Failed tests: 1-2
    Non-zero exit status: 255
    Parse errors: Bad plan. You planned 5 tests but ran 2.
    t/02-reconfigure.t (Wstat: 65280 Tests: 2 Failed: 2)
    Failed tests: 1-2
    Non-zero exit status: 255
    Parse errors: Bad plan. You planned 3 tests but ran 2.
    t/03-spareworkers.t (Wstat: 65280 Tests: 1 Failed: 1)
    Failed test: 1
    Non-zero exit status: 255
    Parse errors: Bad plan. You planned 8 tests but ran 1.
    t/04-interval.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    Files=4, Tests=5, 1 wallclock secs ( 0.09 usr + 0.08 sys = 0.17 CPU)
    Result: FAIL
    Failed 4/4 test programs. 5/5 subtests failed.
    dmake.exe: Error code 130, while making 'test_dynamic'
    -> FAIL Installing Parallel::Prefork failed. See \.cpanm\build.log for details.
    -> FAIL Bailing out the installation for Starlet-0.13. Retry with --prompt or --force.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJun 20, '11 at 11:52a
activeAug 30, '11 at 2:57p
posts17
users5
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase