Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Time-HiRes CPAN distribution.

Report information
The Basics

Nobody in particular
Paul.Boutros [...]

(no value)
Broken in:
(no value)
Fixed in:
(no value)

Subject: Time-HiRes 1.95 Fails make on AIX 5.2 with Perl 5.8.8
Date: Thu, 30 Nov 2006 00:24:26 -0500
From: Paul Boutros <>
Hello, I was just trying to update to the latest Time::HiRes, and was unable to make successfully, getting the error: HiRes.xs: In function 'XS_Time__HiRes_stat': HiRes.xs:1221: error: too few arguments to function 'Perl_pp_stat' Here are my system details: AIX Perl 5.8.8 built for aix-thread-multi gcc 4.1.1 And here are the details of perl Makefile.PL: pcboutro@ccb690[449] >> perl Makefile.PL Configuring Time::HiRes... Using hints hints/ No syscall()... 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...found. Trying struct stat st_atim.tv_nsec...NOT 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/ Writing Makefile for Time::HiRes Now you may issue 'make'. Do not forget also 'make test'. And the error I get with make: pcboutro@ccb690[450] >> make cp blib/lib/Time/ /db2blast/perl/bin/perl -e 'use ExtUtils::Mksymlists; \ Mksymlists("NAME" => "Time::HiRes", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);' /db2blast/perl/bin/perl /db2blast/perl/lib/5.8.8/ExtUtils/xsubpp -typemap /db2blast/perl/lib/5.8.8/ExtUtils/typemap -typemap typemap HiRes.xs > HiRes.xsc && mv HiRes.xsc HiRes.c gcc -c -D_THREAD_SAFE -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGE_FILES -O -DVERSION=\"1.95\" -DXS_VERSION=\"1.95\" "-I/db2blast/perl/lib/5.8.8/aix-thread-multi/CORE" -DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCK_GETTIME -DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK -DTIME_HIRES_STAT=3 -DATLEASTFIVEOHOHFIVE HiRes.c HiRes.xs: In function 'XS_Time__HiRes_stat': HiRes.xs:1221: error: too few arguments to function 'Perl_pp_stat' make: *** [HiRes.o] Error 1 And finally the details of my perl & gcc builds: pcboutro@ccb690[464] >> perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=aix, osvers=, archname=aix-thread-multi uname='aix ccb690 2 5 00251b3f4c00 ' config_args='-Dcc=gcc -Dprefix=/db2blast/perl/ -Dusethreads' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_THREAD_SAFE -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGE_FILES', optimize='-O', cppflags='-D_THREAD_SAFE -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='4.0.1', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' -Wl,-brtl -Wl,-bdynamic -Wl,-bmaxdata:0x80000000 -L/usr/local/lib -Wl,-b32' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker -bE:/db2blast/perl/lib/5.8.8/aix-thread-multi/CORE/perl.exp' cccdlflags=' ', lddlflags=' -Wl,-bhalt:4 -Wl,-bexpall -Wl,-G -Wl,-bnoentry -lpthreads -lc -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under aix Compiled at Aug 21 2006 04:11:05 @INC: /db2blast/perl/lib/5.8.8/aix-thread-multi /db2blast/perl/lib/5.8.8 /db2blast/perl/lib/site_perl/5.8.8/aix-thread-multi /db2blast/perl/lib/site_perl/5.8.8 /db2blast/perl/lib/site_perl . pcboutro@ccb690[465] >> gcc -v Using built-in specs. Target: powerpc-ibm-aix5.2.0.0 Configured with: ../gcc-4.1.1/configure --disable-aix64 --disable-nls Thread model: aix gcc version 4.1.1
I have the same error on Win2K with ActiveState 5.6.1 build 633: M:\build\Time-HiRes-1.95>perl Makefile.PL Configuring Time::HiRes... System is MSWin32, skipping full configure... Checking if your kit is complete... Looks good Writing Makefile for Time::HiRes Now you may issue 'nmake'. Do not forget also 'nmake test'. M:\build\Time-HiRes-1.95>nmake Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cp blib\lib\Time\ C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib C:\Perl\lib\ExtUtils/xs ubpp -typemap C:\Perl\lib\ExtUtils\typemap -typemap typemap HiRes.xs
Show quoted text
> HiRes.xs
c && C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib - MExtUtils::Command -e mv HiRes.xsc HiRes.c cl -c -nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE - DNO_STRICT -DHAVE_DE S_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS - DPERL_MSVCRT_READFIX -O1 - MD -DNDEBUG -DVERSION=\"1.95\" -DXS_VERSION=\"1.95\" - IC:\Perl\lib\CORE -DS ELECT_IS_BROKEN -DATLEASTFIVEOHOHFIVE HiRes.c HiRes.c HiRes.xs(1221) : error C2198: 'Perl_pp_stat' : too few actual parameters NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. M:\build\Time-HiRes-1.95>perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 633 provided by ActiveState Corp. Built 21:33:05 Jun 17 2002 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at, the Perl Home Page. M:\build\Time-HiRes-1.95>
Same problem under Cygwin Perl 5.8.8: HiRes.xs: In function `XS_Time__HiRes_stat': HiRes.xs:1221: error: too few arguments to function `Perl_pp_stat'
Subject: Re: [ #23712] Time-HiRes 1.95 Fails make on AIX 5.2 with Perl 5.8.8
Date: Thu, 30 Nov 2006 14:58:53 -0500
From: Jarkko Hietaniemi <>
Thanks. Fixed but PAUSE doesn't let me upload Time-HiRes 1.96.
Fixed in 1.9701.

This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with to