On 15 Mar 2007 at 8:20, Tom Phoenix wrote: > On 3/15/07, Beginner <[EMAIL PROTECTED]> wrote: > > > I have hit an error while trying to install Sys::Gamin. I can can run > > make but the `make test` is failing. > > > BEGIN failed--compilation aborted at t/gamin.t line 2. > > t/gamin....dubious > > Test returned status 2 (wstat 512, 0x200) > > FAILED--1 test script could be run, alas--no output ever seen > > make: *** [test_dynamic] Error 2 > > > Does anyone know what I am missing? > > Yes: the output of the test script. :-) > > Frequently, when the test program fails during a BEGIN with no > standard output, that's because a 'use' directive or something similar > was unable to load the requested code. Alas, we don't know why it > failed, because the test harness wasn't kind enough to tell us. > > But you don't have to use the test harness. The trick is to run the > test programs manually. You can probably see in the output of 'make > test' the command line that 'make test' used to invoke the test > program; by using that or a similar invocation you should be able to > see the diagnostic message. (That invocation includes command-line > options to load the module from the build directory, among other > options.) > > Armed with that diagnostic message, you'll have a fighting chance at > fixing the problem. Good luck with it!
I am not entirely sure I have followed your instructions. What I have done is, first edit the t/fam.t and added use diagnostics, then edited the Makefile/test section and made TEST_VERBOSE=1 Then run `make test` and saw: t/fam....Can't locate Test/Helper.pm in @INC... Installed Test::Helper (Should that have been installed already?) make clean;Perl Makefile.PL and got a new error: Ignore "Not a known parameter name" warnings.WARNING: PRCS_PROJECT is not a known parameter. Checking if your kit is complete... Looks good 'PRCS_PROJECT' is not a known MakeMaker parameter name. Note (probably harmless): No library found for -lC Writing Makefile for SGI::FAM The make tests now fail with a more exotic error message (should I post the whole thing?). A snip of which is below: 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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables - DVERSION=\"1.002\" -DXS_VERSION=\"1.002\" -fPIC "- I/usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE" FAM.c FAM.xs: In function âfamerrorâ: FAM.xs:123: warning: return discards qualifiers from pointer target type Running Mkbootstrap for SGI::FAM () chmod 644 FAM.bs ....snip /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/monitor PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/fam....Can't load '/root/.cpan/build/SGI-FAM- 1.002/blib/arch/auto/SGI/FAM/FAM.so' for module SGI::FAM: /root/.cpan/build/SGI-FAM-1.002/blib/arch/auto/SGI/FAM/FAM.so: undefined symbol: FAMDebugLevel at /usr/lib/perl5/5.8.6/i386-linux- thread-multi/DynaLoader.pm line 230. at t/fam.t line 5 Compilation failed in require at t/fam.t line 5. ....snip Uncaught exception from user code: Can't load '/root/.cpan/build/SGI-FAM- 1.002/blib/arch/auto/SGI/FAM/FAM.so' for module SGI::FAM: /root/.cpan/build/SGI-FAM-1.002/blib/arch/auto/SGI/FAM/FAM.so: undefined symbol: FAMDebugLevel at /usr/lib/perl5/5.8.6/i386-linux- thread-multi/DynaLoader.pm line 230. at t/fam.t line 5 Line 5 of t/fam.t reads: use SGI::FAM qw(FAM_DEBUG_ON FAM_DEBUG_OFF); I guess I could ask the maintainer/author. Is there anything from that output that stands out? I can't say that I can see a trail here. Thanx, Dp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/