in reply to wxPerl: attempting to install Wx::Demo crashes perl.exe

I didn't get a crash, I got the following.
cpan[2]> test Wx::Demo Running test for module 'Wx::Demo' Running make for M/MD/MDOOTSON/Wx-Demo-0.21.tar.gz Has already been unwrapped into directory \.cpan\build\Wx-Demo-0.21- +ltGu3u Has already been made Running make test Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. C:\perl512\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib\lib', 'blib\arch')" t/*.t t/01_load.t .. "stc" is not defined in %Wx::EXPORT_TAGS at C:\.cpan\bu +ild\Wx-Dem o-0.21-ltGu3u\blib\lib/Wx/Demo/Source.pm line 5 # Failed test 'use Wx::Demo;' # at t/01_load.t line 6. # Tried to use 'Wx::Demo'. # Error: Can't continue after import errors at C:/perl512/site/li +b/Wx.pm li ne 76 # BEGIN failed--compilation aborted at C:\.cpan\build\Wx-Demo-0.21-ltG +u3u\blib\l ib/Wx/Demo/Source.pm line 6. t/01_load.t .. 1/50 # Compilation failed in require at C:\.cpan\build\ +Wx-Demo-0. 21-ltGu3u\blib\lib/Wx/Demo.pm line 94. # BEGIN failed--compilation aborted at C:\.cpan\build\Wx-Demo-0.21-ltG +u3u\blib\l ib/Wx/Demo.pm line 94. # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # Looks like you failed 1 test of 50. t/01_load.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/50 subtests t/zz_pod.t ... ok Test Summary Report ------------------- t/01_load.t (Wstat: 256 Tests: 50 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=2, Tests=261, 2 wallclock secs ( 0.14 usr + 0.03 sys = 0.17 C +PU) Result: FAIL Failed 1/2 test programs. 1/261 subtests failed. NMAKE : fatal error U1077: 'C:\perl512\bin\perl.exe' : return code '0x +ff' Stop. MDOOTSON/Wx-Demo-0.21.tar.gz nmake test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports MDOOTSON/Wx-Demo-0.21.tar.gz Failed during this command: MDOOTSON/Wx-Demo-0.21.tar.gz : make_test NO cpan[3]>

Replies are listed 'Best First'.
Re^2: wxPerl: attempting to install Wx::Demo crashes perl.exe
by Anonymous Monk on May 16, 2013 at 04:06 UTC
    Looks like you don't have stc compiled in, what do you get for
    #!/usr/bin/perl -- use Alien::wxWidgets; local $\ = $/; Alien::wxWidgets->show_configurations ; print for Alien::wxWidgets->link_libraries; __END__
      I guess my Wx is too old to help in this thread.
      compilet-1375404032.c Creating library C:\WINDOWS\TEMP\compilet.lib and object C:\WINDOWS +\TEMP\comp ilet.exp wxWidgets 2.008012 for msw; compiler compatibility: cl 7.1; options: n +o debug, n o unicode wxbase28.lib wxmsw28_richtext.lib wxmsw28_core.lib wxmsw28_aui.lib wxbase28_net.lib wxmsw28_html.lib wxbase28_xml.lib wxmsw28_media.lib wxmsw28_qa.lib wxmsw28_xrc.lib wxmsw28_adv.lib
      AM: Thank you for showing us a direction to debug the issue.

      When running your script, I get:

      wxWidgets 2.009004 for msw; compiler compatibility: gcc 3.4; options: no debug, unicode, no ms +lu -lwxbase29u -lwxmsw29u_richtext -lwxmsw29u_core -lwxmsw29u_stc -lwxmsw29u_aui -lwxmsw29u_gl -lwxbase29u_net -lwxmsw29u_html -lwxmsw29u_media -lwxbase29u_xml -lwxmsw29u_webview -lwxmsw29u_propgrid -lwxmsw29u_xrc -lwxmsw29u_adv -lwxmsw29u_ribbon

      What's your opinion?

      Many TIA - Helen

      NB is it right to assume the following: looking at the crash in the OP, it seems that it occurred in 01_load.t . That test script goes:

      Is this pointing us in any direction?
      Is it telling us that the crash has actually occurred inside the use_ok method of Test::More while going:
      use_ok( 'Wx::Demo' ); ?

      Note that in the OP, the test report says: Failed 50/50 subtests, so does this mean that "use" failed loading each and every demo module?

      Update: when going:  perl -e "use Wx::Demo;" I get the same perl.exe crash like in the OP, namely:

      So it seems that the problem is with: wxbase294u_gcc_custom.dll

      Can anyone explain what that dll is about, and better yet, how to find the cause of the problem?