On Tue Apr 24 00:26:58 2012, zefram@fysh.org wrote:
Show quoted text> Would you please show me a full trace for configuring ("perl
> Makefile.PL") and building ("make") the module?
$ perl Makefile.PL
Configuring Time::HiRes...
Using hints hints/linux.pl...
Extra libraries: -lrt...
Have syscall()... looking for syscall.h... found <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()... found.
Looking for clock()... found.
Looking for stat() subsecond timestamps...
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/linux.pl
Note (probably harmless): No library found for -lrt
Writing Makefile for Time::HiRes
Writing MYMETA.yml and MYMETA.json
Now you may issue 'make'. Do not forget also 'make test'.
$ make
cp HiRes.pm blib/lib/Time/HiRes.pm
/home/lx/perl5/perlbrew/perls/perl-5.12.3/bin/perl
/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/ExtUtils/xsubpp
-typemap
/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/ExtUtils/typemap
-typemap typemap HiRes.xs > HiRes.xsc && mv HiRes.xsc HiRes.c
cc -c -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.9725\" -DXS_VERSION=\"1.9725\" -fPIC
"-I/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/x86_64-linux/CORE"
-DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCK_GETTIME
-DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK_NANOSLEEP
-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
cc -shared -O2 -L/usr/local/lib -fstack-protector HiRes.o -o
blib/arch/auto/Time/HiRes/HiRes.so \
\
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