Perl-Sensitive Sunglasses | |
PerlMonks |
Problem with AUTOLOAD and Windowsby Brutha (Friar) |
on Nov 23, 2011 at 12:19 UTC ( [id://939645]=perlquestion: print w/replies, xml ) | Need Help?? |
Brutha has asked for the wisdom of the Perl Monks concerning the following question: In an AUTOLOAD routine I get a mysterious 'No such file or directory' error message. I need some help to interpretit. I still have not managed to manually make the DBD::DB2 package as described in Node DBD::DB2 with ActiveState Perl 5.12 on Windows. But this time I am a bit further. The compile seems to be correct and the problem has to do with 'use autoload' and defining a standard AUTOLOAD procedure. So what have I done. First made all fresh from a DBD-DB2-1.82 download from CPAN and debugged into DBD::DB2::Constants::AUTOLOAD (line 1572). This routine is more or less exactly, what the docs gave as an example. Debugging gave me the following:
This looks like the Constants.xs works as expected (I introduced the two additional output lines), it returns the correct value for the constant, but the '$!' makes no sense. That lets the code jump into the 'undefined macro' branch and fail. Where does this come from? As the /Invalid/ condition shows there seem to be similar cases. Did anybody see this before? I work on a German Windows XP machine with Visual C and ActiveState Perl. I tried Perl versions 5.8, 5.10 and 5.12 (5.14 not yet). All selfmade DBD::DB2 modules behave the same under these environments. The premade PPM from one of the repositories for 5.8 and 5.10 returns an empty string for $! and therefore works. But I still have not found a ppm for newer Perl versions containing the DB2 module yet. Any help is appreciated. And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
Back to
Seekers of Perl Wisdom
|
|