Uh, yeah, these errors are all from duplicate methods...I'm good. There must be some Devel:: module to help me dump some more information to identify the cause of these errors...any suggestions?<div><br clear="all">Regards,<br>
Sean<br><br><br>
<br><br><div class="gmail_quote">On Mon, Feb 7, 2011 at 9:57 AM, Sean Blanton <span dir="ltr"><<a href="mailto:sean@blanton.com">sean@blanton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The errors all come from use and require statements, so they are compile errors, not runtime. Also getting this one:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div>Undefined subroutine &Package::DeprecationManager::_HASH called at /usr/local/share/perl5/Package/DeprecationManager.pm line 18.</div></div><div><div>BEGIN failed--compilation aborted at /usr/local/lib64/perl5/Moose/Deprecated.pm line 22.</div>
</div><div><div>Compilation failed in require at /usr/local/lib64/perl5/Moose.pm line 14.</div></div><div><div>BEGIN failed--compilation aborted at /usr/local/lib64/perl5/Moose.pm line 14.</div></div><div><div>Compilation failed in require at <path>/<class> line 2.</div>
</div></blockquote><div><br></div><div>In this, the line 2 at <path>/<class> is 'use Moose;'</div><div><br clear="all">Regards,<br><font color="#888888">Sean</font><div><div></div><div class="h5"><br>
<br><br>
<br><br><div class="gmail_quote">On Mon, Feb 7, 2011 at 9:52 AM, Sean Blanton <span dir="ltr"><<a href="mailto:sean@blanton.com" target="_blank">sean@blanton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi All,</div><div><br></div><div>I just upgraded from perl 5.10 to v5.12.2 (Fedora 13->14) and am getting the following errors in several classes. I'm hoping someone can give me some high level pointers before I go under the covers to examine the private parts.</div>
<div><br></div><div><div>> Undefined subroutine &Class::MOP::Mixin::HasMethods::wrap called at /usr/local/lib64/perl5/Class/MOP/Mixin/HasMethods.pm line 165.</div></div><div><br></div><div><div>
> Undefined subroutine &Class::MOP::Mixin::HasMethods::body called at /usr/local/lib64/perl5/Class/MOP/Mixin/HasMethods.pm line 165.</div></div><div><br></div><div>which occurs in:</div><div>--------------</div><div>
<div>sub remove_method {</div><div> my ( $self, $method_name ) = @_;</div><div> ( defined $method_name && length $method_name )</div><div> || confess "You must define a method name";</div><div>
<br></div><div>****-> my $removed_method = delete $self->_full_method_map->{$method_name};</div><div><br></div><div> $self->remove_package_symbol(</div><div> { sigil => '&', type => 'CODE', name => $method_name } );</div>
</div><div><br></div><div><div>--------------</div><div></div></div><div><br></div><div>I'm not getting a stack trace, which I feel must somehow be my fault, but I normally do get a stack trace. Eclipse tells me the parent class where the error occurs, but it can only give me the message that Perl produces above.</div>
<div><br></div><div>My Moose et al. versions went from:</div><div><br></div><div>Moose 0.99 -> 1.17</div><div>Moose::Meta::Role 0.99 -> 1.17</div><div>Class::MOP 0.98 -> 1.10</div><div>Class::MOP::Mixin::HasMethods 0.98 -> 1.10</div>
<div><br></div><div>In one case, I found by removing a method in a role that was overriden by it's consuming class cleared the ::body method error, but I haven't found common traits with other classes having the same error.</div>
<div><br></div><br clear="all">Regards,<br><font color="#888888">Sean<br><br><br>
</font></blockquote></div><br></div></div></div>
</blockquote></div><br></div>