Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

TinyMake module gives warning

by sam_bakki (Pilgrim)
on Nov 12, 2010 at 10:01 UTC ( #871022=perlquestion: print w/replies, xml ) Need Help??
sam_bakki has asked for the wisdom of the Perl Monks concerning the following question:

Hi ,

I am using ActivePerl v5.10.1 built for MSWin32-x86-multi-thread and TinyMake module

I have enabled warnings in my code,
use strict; use warnings; use TinyMake ':all';

I get this error
TinyMake::show() called too early to check prototype at c:/Perl/site/lib/ line 173.

I contact '' owner of this module but no reply

Any one have idea, how to fix it and make it available in CPAN?

Thanks </code>

Replies are listed 'Best First'.
Re: TinyMake module gives warning
by moritz (Cardinal) on Nov 12, 2010 at 11:14 UTC

    Just a general comment: The "right" way to deal with module bugs is to report them to the CPAN RT. Each CPAN module automatically gets a queue there, for example rt://TinyMake.

    It probably won't help you in this case, since the maintainer seems unavailable, but maybe somebody else find the motivation and time to make a patch for it.

Re: TinyMake module gives warning
by marto (Bishop) on Nov 12, 2010 at 10:46 UTC

    "I contact '' owner of this module but no reply"

    Well this release is from 2005, perhaps the maintainer is no long around, or the email address is no longer active. It could be that this module worked on a previous version of perl (circa 2005), something has changed between then and v5.10.1 which is causing problems. It may If you want to fix this module examine line 173, and work back from there.

    Update: I tried your code as stated above on 5.8.8 and 5.12.2 and didn't get the error.

      Update: I tried your code as stated above on 5.8.8 and 5.12.2 and didn't get the error.

      In order to get the error, you need to enable warnings globally (e.g. #!/usr/bin/perl -w ), so they apply to the module, too.

Re: TinyMake module gives warning
by Anonymous Monk on Nov 12, 2010 at 11:05 UTC
    To work around the issue, modify

    sub show (@_); # <--- add this line sub show (@_){ # line 140, originaly ...
      Actually I don't think the sub prototype has any use at all here, nor did it do ever do anything useful in the past, so I'd just drop it.
      sub show { ... }
      Further down I can also see
      sub sh (@){
      which is similarly useless, so make that:
      sub sh {
      Thank you for all of your replies :) , I have solved the problem by placing  sub show (@_); at line 86. Regrads, Bakkiaraj

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://871022]
Approved by moritz
[stevieb]: choroba my GPS home device is done, at least prototype v1 is. I'm just making sure all of my code does what it says now
[stevieb]: I test/prototype code on my Pi, then I migrate it over to Arduino when it's ready (if that's a better platform for what I'm doing). The whole RPi stuff was for learning at first, then it snowballed. I'm just trying to get my in-house CI...
[stevieb]: ...done, which obviously requires a specific hardware setup.
[stevieb]: I don't write tests for the lower-level distributions (ie. ICs, sensors etc) within those distributions, I have all tests in a master distribution which encompasess all of the sub-modules

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-06-25 22:54 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (572 votes). Check out past polls.