Subject: | Some Config variables corrupted when using this module |
Distribution name and version: Convert-Binary-C-0.58
Perl version: 5.8.0 built for i386-linux-thread-multi
Operating System vendor and version: Linux nc1lx2132b 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux
Symptom:
My 'make test' failed on 132_native.t. Here's the relevant output:
t/132_native.........ok 7/59# Test 11 got: '4'
issymlink='/usr/bin/t' (t/132_native.t at line 56)
# Expected: '4'
# t/132_native.t line 56 is: ok($Config{lc $_}, $c->native($_));
# Test 17 got: '4'
lp=''
lpr=''
ls='ls'
lseeksize' (t/132_native.t at line 56 fail #4)
# Expected: '4'
# Test 19 got: '' (t/132_native.t at line 56 fail #5)
# Expected: '8'
t/132_native.........FAILED tests 11, 17, 19
Failed 3/59 tests, 94.92% okay
I tried running t/132_native.t directly:
ok 10
# native(IntSize) = 4
# found $Config{intsize}
not ok 11
# Test 11 got: '4'
issymlink='/usr/bin/t' (t/132_native.t at line 56)
# Expected: '4'
# t/132_native.t line 56 is: ok($Config{lc $_}, $c->native($_));
ok 12
# native(CharSize) = 1
# found $Config{charsize}
ok 13
ok 14
# native(ShortSize) = 2
# found $Config{shortsize}
ok 15
ok 16
# native(LongSize) = 4
# found $Config{longsize}
not ok 17
# Test 17 got: '4'
lp=''
lpr=''
ls='ls'
lseeksize' (t/132_native.t at line 56 fail #4)
# Expected: '4'
ok 18
# native(LongLongSize) = 8
# found $Config{longlongsize}
not ok 19
# Test 19 got: '' (t/132_native.t at line 56 fail #5)
# Expected: '8'
ok 20
To narrow it down, I wrote the following:
use Test;
use Config;
use Convert::Binary::C;
BEGIN { plan tests => 1 }
ok($Config{'intsize'}, '4');
Here are the results:
# perl -Iblib/arch -Iblib/lib t/config.t
1..1
# Running under perl version 5.008 for linux
# Current time local: Tue May 3 17:57:43 2005
# Current time GMT: Tue May 3 21:57:43 2005
# Using Test.pm version 1.23
not ok 1
# Test 1 got: '4'
issymlin' (t/config.t at line 7)
# Expected: '4'
# t/config.t line 7 is: ok($Config{'intsize'}, '4');
If I comment out the 'use Convert::Binary::C;' line, I get the following:
# perl -Iblib/arch -Iblib/lib t/config.t
1..1
# Running under perl version 5.008 for linux
# Current time local: Tue May 3 17:58:55 2005
# Current time GMT: Tue May 3 21:58:55 2005
# Using Test.pm version 1.23
ok 1
I'd really like to use the module, but this strangeness scares me. I'm hoping there's a fairly simple answer.
Thanks,
Rob West