develooper Front page | perl.perl5.porters | Postings from July 2001

HiRes on AIX 4.2 in threaded mode

Thread Next
From:
H.Merijn Brand
Date:
July 11, 2001 11:21
Subject:
HiRes on AIX 4.2 in threaded mode
Message ID:
20010711195207.78A5.H.M.BRAND@hccnet.nl
3152487 135421 (0)
ok 1
3152487 254033 (0)
ok 2
3: (3152487 254033)[0] >? 850000000)
not ok 3
# 3152487 254033 too small
3152488 255019 (0)
ok 4
3152488 255543 (0)
not ok 5
# 3152488.255543 too small
ok 6
ok 7
3152488 276759 (0)
3152488 776993 (0)
ok 8
ok 9
3152488 777889 (0)
3152488 778075 (0)
ok 10
ibm:/pro/3gl/CPAN/perl-5.7.1/t 131 > ../try
994873899 342798 (0)
ibm:/pro/3gl/CPAN/perl-5.7.1/t 132 > 
Cc'd to p5p hoping there's more people to pick this up.

No time left.

The problem is that the Makefile on Time/HiRes uses -lC_r, which returns those
short values. If I change the -lC_r to -lc_r -lC_r and I leave in those
printf's then only test 14 fails, where it compares the value against a short
values again. HTH.

ibm:/pro/3gl/CPAN/perl-5.7.1 182 > perl -Ilib ext/Time/HiRes/HiRes.t
1..19
myNV 994875183 845766 (0)
myU2 994875183 845984 (0)
ok 1
GTOD 994875183 963154 (0)
ok 2
3: (994875183 963154)[0] >? 850000000)
ok 3
GTOD 994875184 964048 (0)
ok 4
TIME 994875184 964566 (0)
ok 5
ok 6
ok 7
TIME 994875184 985746 (0)
TIME 994875185 485985 (0)
ok 8
ok 9
GTOD 994875185 486854 (0)
GTOD 994875185 487063 (0)
ok 10
GTOD 994875185 487461 (0)
GTOD 994875185 987779 (0)
ok 11
ok 12
ok 13
TIME 994875186 39851 (0)
not ok 14
# time 3153856 differs from Time::HiRes::time 994875186.039851
# time...TIME 994875186 40483 (0)
994875186.040483
ok 15
# sleep...GTOD 994875186 40735 (0)
GTOD 994875186 541035 (0)
0.5003
ok 16
GTOD 994875186 541505 (0)
GTOD 994875186 842162 (0)
# Tick! 4 0.300657
GTOD 994875186 842748 (0)
# Select returned! 4 0.301243
GTOD 994875187 144370 (0)
# Tick! 3 0.602865
GTOD 994875187 144898 (0)
# Select returned! 3 0.603393
GTOD 994875187 445522 (0)
# Tick! 2 0.904017
GTOD 994875187 446042 (0)
# Select returned! 2 0.904537
GTOD 994875187 746902 (0)
# Tick! 1 1.205397
GTOD 994875187 747667 (0)
# Select returned! 1 1.206162
GTOD 994875188 48506 (0)
# Tick! 0 1.507001
GTOD 994875188 49290 (0)
# Select returned! 0 1.507785
ok 17
GTOD 994875188 50750 (0)
# setitimer: 0 0
ok 18
# getitimer: 0.5 0.4
GTOD 994875188 553623 (0)
# Tick! 2 0.502873
GTOD 994875188 953562 (0)
# Tick! 1 0.902812
GTOD 994875189 353558 (0)
# Tick! 0 1.302808
GTOD 994875189 753621 (0)
# Tick! 0 1.702871
# getitimer: 0 0
ok 19
ibm:/pro/3gl/CPAN/perl-5.7.1 183 > grep -- -lc Makefile
LDDLFLAGS = -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lC_r -lc -L/pro/local/lib
libs = -lnsl -ldl -lld -lm -lpthreads -lC_r -lc -lbind -lbsd -lPW -liconv 
LIBS                    = -lnsl -ldl -lld -lm -lpthreads -lC_r -lc -lbind -lbsd -lPW -liconv
ibm:/pro/3gl/CPAN/perl-5.7.1 184 > cd ext/Time/Hires
ext/Time/Hires: No such file or directory.
ibm:/pro/3gl/CPAN/perl-5.7.1 185 > cd ext/Time/HiRes
ibm:/pro/3gl/CPAN/perl-5.7.1/ext/Time/HiRes 186 > grep -- -lc Makefile
LDDLFLAGS = -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc_r -lC_r -lc -L/pro/local/lib
ibm:/pro/3gl/CPAN/perl-5.7.1/ext/Time/HiRes 187 > 

-- 
H.Merijn Brand    Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl-5.6.1, 5.7.1 & 623 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
     WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.022 &/| DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About