Subject: | Time::HiRes fails tests on Solaris and Perl 5.6.1 |
williami@otcdv2:/home/williami/Time-HiRes$ perl Makefile.PL
Configuring Time::HiRes...
Using hints hints/solaris.pl...
Extra libraries: -lrt...
Have syscall()... looking for syscall.h... found <sys/syscall.h>.
Looking for gettimeofday()... found.
Looking for setitimer()... found.
Looking for getitimer()... found.
You have interval timers (both setitimer and getitimer).
Looking for ualarm()... found.
Looking for usleep()... found.
Looking for nanosleep()... testing... found.
You can mix subsecond sleeps with signals, if you want to.
(It's still not portable, though.)
Looking for clock_gettime()... found.
Looking for clock_getres()... found.
Looking for clock_nanosleep()... NOT found.
Looking for clock()... found.
Trying struct stat st_atimespec.tv_nsec...NOT found.
Trying struct stat st_atimensec...NOT found.
Trying struct stat st_atime_n...NOT found.
Trying struct stat st_atim.tv_nsec...found.
Trying struct stat st_uatime...NOT found.
You seem to have stat subsecond timestamps.
(Your struct stat has them, but the filesystems must help.)
Checking if your kit is complete...
Looks good
Processing hints file hints/solaris.pl
Writing Makefile for Time::HiRes
Now you may issue 'make'. Do not forget also 'make test'.
williami@otcdv2:/home/williami/Time-HiRes$ make
cp HiRes.pm blib/lib/Time/HiRes.pm
/usr/local/bin/perl /vobs/tools/3rd-
party/CPAN/release/lib/ExtUtils/xsubpp -
typemap /usr/local/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap
HiRes.xs > HiRes.xsc && mv HiRes.xsc HiRes.c
gcc -c -fno-strict-aliasing -I/usr/local/include -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.94\" -
DXS_VERSION=\"1.94\" -fPIC "-I/usr/local/lib/perl5/5.6.1/sun4-
solaris/CORE" -DHAS_SETITIMER -DHAS_GETITIMER -DHAS_UALARM -
DHAS_USLEEP -DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCK_GETTIME -
DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK -DTIME_HIRES_STAT=4 -
DATLEASTFIVEOHOHFIVE HiRes.c
Running Mkbootstrap for Time::HiRes ()
chmod 644 HiRes.bs
rm -f blib/arch/auto/Time/HiRes/HiRes.so
LD_RUN_PATH="/usr/lib" gcc -G -L/usr/local/lib HiRes.o -o
blib/arch/auto/Time/HiRes/HiRes.so \
-lrt \
chmod 755 blib/arch/auto/Time/HiRes/HiRes.so
cp HiRes.bs blib/arch/auto/Time/HiRes/HiRes.bs
chmod 644 blib/arch/auto/Time/HiRes/HiRes.bs
Manifying blib/man3/Time::HiRes.3
williami@otcdv2:/home/williami/Time-HiRes$ make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-
e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/HiRes....d_hires_stat is not a valid Time::HiRes macro at t/HiRes.t
line 36.
t/HiRes....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-38
Failed 37/38 tests, 2.63% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-----------------------------------------------------------------------
--------
t/HiRes.t 255 65280 38 74 194.74% 2-38
Failed 1/1 test scripts, 0.00% okay. 37/38 subtests failed, 2.63% okay.
*** Error code 11
make: Fatal error: Command failed for target `test_dynamic'
williami@otcdv2:/home/williami/Time-HiRes$