----- Original Message ----- From: "Bruno Picard" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, June 27, 2007 10:18 PM
Subject: [Perldl] Makefile and use PDL


Hi all,

I have a makefile that apply a "perl -c" on all my package in order to
check the syntaxe.
(hmm, but, actually, is this the good way??)

I don't know of any problem with that - given that it should just run any
code that's within a BEGIN{} block (yes, it will *run* that code), and check
the syntax of any remaining code.


It seems that the perl -c fails on the "use PDL;" with the following
error:

Can't locate object method "new_tmpfile" via package "IO::File" at
/data/SUPPORT/PRODUITS/lib/LXI/CPAN/perl5/site_perl/5.8.5/i386-linux-thread-multi/PDL/IO/Pic.pm
line 186, <DATA> line 206.
Compilation failed in require at (eval 21) line 21, <DATA> line 206.
BEGIN failed--compilation aborted at (eval 21) line 21, <DATA> line 206.
BEGIN failed--compilation aborted at IO.pm line 111, <DATA> line 206.
Compilation failed in require at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/IO/Handle.pm line 260, <DATA>
line 206.
BEGIN failed--compilation aborted at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/IO/Handle.pm line 260, <DATA>
line 206.
Compilation failed in require at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/IO/Seekable.pm line 101,
<DATA> line 206.
BEGIN failed--compilation aborted at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/IO/Seekable.pm line 101,
<DATA> line 206.
Compilation failed in require at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/IO/File.pm line 117, <DATA>
line 206.
BEGIN failed--compilation aborted at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/IO/File.pm line 117, <DATA>
line 206.
Compilation failed in require at
/data/SUPPORT/PRODUITS/lib/LXI/CPAN/perl5/site_perl/5.8.5/i386-linux-thread-multi/PDL/IO/Misc.pm
line 1009, <DATA> line 206.
BEGIN failed--compilation aborted at
/data/SUPPORT/PRODUITS/lib/LXI/CPAN/perl5/site_perl/5.8.5/i386-linux-thread-multi/PDL/IO/Misc.pm
line 1009, <DATA> line 206.
Compilation failed in require at (eval 2) line 19, <DATA> line 206.
BEGIN failed--compilation aborted at (eval 2) line 19, <DATA> line 206.
BEGIN failed--compilation aborted at MyPrint.pm line 111, <DATA> line 206.

Is this a known issue?

It's certainly unknown to me :-)

It seems that you may be running an older version of IO::File that doesn't
have a "new_tmpfile" method ... but that the version of PDL that you're
running (2.4.3 ?) expects that the version of IO::File *does* have a
"new_tmpfile" method. Did you get any warnings regarding "prerequisite" when
you ran 'perl Makefile.PL' for PDL ? Did 'make test' for PDL produce any
errors ?

Seems a bit strange. If you get that error, then I would expect the
following to produce a similar (if not identical) error:
perl -MPDL -e 'print $PDL::VERSION'

What does that output ?

Other than that, I've a vague notion that I've recently (today or yesterday)
read of problems with IO::File on perlmonks ... though I now can't find
anything that validates that notion.

Is there anything at http://rt.cpan.org/Public/Dist/Display.html?Name=IO
that throws light on the matter ?

Cheers,
Rob


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to