Subject: | Invalid integer size for some 32bits perl build |
Perl distributed with 32bits Ubuntu 12.04 is based upon 64bits integers.
Functions in PDL::NetCDF (like nc_get_vara_double) using size_t need 32
bits integer.
Integer size is determined with $Config{'ivsize'} which is not accurate
for these builds of perl. perl -V shows:
Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
Platform:
...
use64bitint=define,
...
So $Config{'ivsize'} is 8 and it should be 4.
Using $Config{'sizesize'} gives 4 on 32bits platforms and 8 on 64bits
platforms ('sizesize' is the size of size_t).
Joined is a patch which corrects this.
Subject: | processor-architecture |
Message body not shown because it is not plain text.