Hi all,

I wrote:
> I am getting reports of a strage error message when trying to build a
> M::B 0.26 based distro (Mail::SPF, currently 2.000_003) on certain
> systems that have a _higher_ version of M::B:
>
>   http://cpantesters.perl.org/show/Mail-SPF.html
>
> For example, on a system with M::B 0.280500, it says:
> 
> | Global symbol "$VAR1" requires explicit package name at (eval 24)
> | line 1075, <GEN6> line 1.
> |        ...propagated at
> | /usr/local/standard-perl/lib/perl5/site_perl/5.8.8/Module/Build/Base.pm
> | line 1002, <GEN6> line 1.
>
> The 'Global symbol "$VAR1" requires explicit package name' message is
> the recurring pattern.
>
> As the maintainer of the libmodule-build-perl Debian package seems to
> be sleeping, Debian still has only 0.26, so I haven't been able to
> reproduce the issue myself.
>
> A user of my package found out that the problem could be avoided by
> changing _build/build_params to say '$main::VAR1' instead of '$VAR1'.
> Again, I couldn't reproduce it myself.

I just encountered this myself:

| io:~/source/mail-spf-perl/trunk> perl Build.PL
| Creating custom builder _build/lib/MyModuleBuilder.pm in _build/lib
| Checking whether your kit is complete...
| Looks good
| 
| Checking prerequisites...
| Looks good
| 
| Creating new 'Build' script for 'Mail-SPF' version 'v2.005_001'
| io:~/source/mail-spf-perl/trunk> ./Build manifest
| Global symbol "$VAR1" requires explicit package name at (eval 22)
| line 20, <GEN6> line 1.
|         ...propagated at /usr/share/perl5/Module/Build/Base.pm
|         line 1015, <GEN6> line 1. 

I am running Module::Build 0.2808 now, so I am now in a position to 
reproduce the problem and provide whatever information is needed to debug 
it.  I am attaching my _build/build_params.

I have been running M::B 0.28 for quite a while, and today is the first 
time this happened to me.  As indicated above, changing _build/ 
build_params to say '$main::VAR1' instead of '$VAR1' works around it 
temporarily.  Not really a solution, though, obviously.

My versions:
  Perl 5.8.8
  Module::Build 0.2808
  version 0.7203
  Data::Dumper 2.121_08

Julian.

Attachment: build_params.gz
Description: GNU Zip compressed data

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to