Subject: perl 5.6.1 and large files
To: None <tech-pkg@netbsd.org>
From: Klaus Heinz <k.heinz.nov.zwei@onlinehome.de>
List: tech-pkg
Date: 11/17/2002 03:11:50
Hi,

perl 5.6.1 is configured to know about large files (perl -V says
'uselargefiles=define') but the test suite (t/op/lfs.t) fails to create
a file of length 5000000003. The 'seek' operation does _not_ fail, but
the test detects, that the resulting length of the test file is
705032707 (5000000003 - 2^32) and not 5000000003.
FFS can handle files > 4GB so this must be perl's fault.

Is this a known problem? I haven't found anything in the list archive.

I do not know enough about the inner workings of perl to decide whether
some of the output of 'perl -V' is conflicting or not (and I haven't
used other values, yet):
  uselargefiles=define
  use64bitint=undef
  use64bitall=undef
  intsize=4
  longsize=4
  d_longlong=define
  longlongsize=8
  Off_t='off_t'
  lseeksize=8

This happens on NetBSD/i386 1.5.4_ALPHA and on NetBSD/amiga 1.5.3 and
1.6.


ciao
     Klaus