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 |
To: | bug-Time-HiRes [...] rt.cpan.org |
From: | Paul Boutros <paul.boutros [...] utoronto.ca> |
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 5.2.0.0
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/aix.pl...
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/aix.pl
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 HiRes.pm blib/lib/Time/HiRes.pm
/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=5.2.0.0, 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