Hi Gerardo,
I strongly doubt that this is a problem of the Tie::Hash::Indexed
module.
I guess the problem is that your perl binary is not compatible
with you freebsd installation.
I'm assuming that you really have the amd64 version of freebsd
installed. You can verify using:
$ uname -m
amd64
I'm also assuming that this is not the "standard" perl binary
that comes with freebsd 6. On my (rather dated) freebsd 6.2, I
already have perl 5.8.8.
$ perl -v
This is perl, v5.8.8 built for amd64-freebsd
(with 1 registered patch, see perl -V for more detail)
And notice the subtle difference: mine is "built for amd64-freebsd",
while yours states "built for i386-freebsd".
I guess you've installed some arbitrary binary perl distribution
that is simply not compatible with your amd64-freebsd installation.
The output of
$ perl -V
would have been much more helpful in this case than the detailed
listing of your CPU/memory/disk configuration (this almost never
has any impact on software bugs).
I don't know where you have this perl binary from. The only thing
I can tell you is that if you have a perl binary that is correctly
built for your platform (i.e. amd64-freebsd), then Tie::Hash::Indexed
will also build without problems:
$ ../perl/bin/perl5.6.1 -v
This is perl, v5.6.1 built for amd64-freebsd
Copyright 1987-2001, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at
http://www.perl.com/, the Perl Home Page.
$ ../perl/bin/perl5.6.1 Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Tie::Hash::Indexed
$ make test
cp lib/Tie/Hash/Indexed.pm blib/lib/Tie/Hash/Indexed.pm
../perl/bin/perl5.6.1 -I/home/mhx/perl/lib/5.6.1/amd64-freebsd -I/home/mhx/perl/lib/5.6.1 /home/mhx/perl/lib/5.6.1/ExtUtils/xsubpp -typemap /home/mhx/perl/lib/5.6.1/ExtUtils/typemap -typemap typemap Indexed.xs > Indexed.xsc && mv Indexed.xsc Indexed.c
cc -c -I. -fno-strict-aliasing -I/usr/local/include -O -DVERSION=\"0.05\" -DXS_VERSION=\"0.05\" -DPIC -fpic -I/home/mhx/perl/lib/5.6.1/amd64-freebsd/CORE -DNDEBUG Indexed.c
Running Mkbootstrap for Tie::Hash::Indexed ()
chmod 644 Indexed.bs
rm -f blib/arch/auto/Tie/Hash/Indexed/Indexed.so
LD_RUN_PATH="" cc -shared -L/usr/local/lib Indexed.o -o blib/arch/auto/Tie/Hash/Indexed/Indexed.so
chmod 755 blib/arch/auto/Tie/Hash/Indexed/Indexed.so
cp Indexed.bs blib/arch/auto/Tie/Hash/Indexed/Indexed.bs
chmod 644 blib/arch/auto/Tie/Hash/Indexed/Indexed.bs
PERL_DL_NONLAZY=1 ../perl/bin/perl5.6.1 -Iblib/arch -Iblib/lib -I/home/mhx/perl/lib/5.6.1/amd64-freebsd -I/home/mhx/perl/lib/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/101_basic.........ok, 5/32 skipped: no scalar context for tied hashes
t/102_storable......ok, 24/25 skipped: Storable not installed
t/103_bugs..........ok
All tests successful, 29 subtests skipped.
Files=3, Tests=69, 1 wallclock secs ( 0.08 cusr + 0.02 csys = 0.10 CPU)
Notice that my perl-5.6.1 is also "built for amd64-freebsd".
So, please either install a compatible perl binary, or build your
perl binary from the source code using Configure && make (but notice
that such old releases will hardly build on a modern system without
manual intervention).
And please don't use such an ancient perl version for anything else
than testing.
Regards,
Marcus
--
If the human brain were so simple that we could understand it,
we would be so simple we couldn't.