-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse fails under ModPerl::Registry #60
Comments
I cannot reproduce this issue on Debian stable with Perl 5.20.2(libapache2-mod-perl2 2.0.9). |
It works with Debian stable and Ubuntu 15.10 but fails with Debian testing (mod_perl 2.0.9 and Perl 5.22.1). My Apache config is very simple:
|
Hmm, I cannot reproduce on Debian testing(Perl 5.22.2, Apache 2.4.18-2, mod_perl, 2.0.9-4+b1). |
Hello, it's a bit more complex (some Perl code was loaded). Here is an example that reproduce the problem: Apache.conf:
test. pl:
My.pm:
My2.pm:
|
Hi, |
No. Could you give us |
Hi, |
I can reproduce this issue with your Dockerfile. However is this Mouse issue ? I suppose this is |
But it works with Moose... This error is generated by XS part of Mouse (xs-src/Mouse.xs, line 507). I don't understand why it doesn't find the Perl namespace here (My2) since it is well found by Moose. I found this problem during Debian packaging of Lemonldap::NG. |
Bug confirmed by Debian Perl Group |
Hi,
I'm using Mouse (2.4.5) under Debian testing (mod_perl 2.0.9, Perl 5.22.1). This simple test fails:
CGI:
package main;
use CGI;
require '/tmp/test.pm';
my $q = CGI->new();
print $q->header( -type => 'text/html' );
print 'OK';
Mouse package (/tmp/test.pm):
package My;
use strict;
use Mouse;
has a => ( is => 'rw' );
1;
Result in Apache logs when trying to load CGI:
No package name defined at /usr/lib/x86_64-linux-gnu/perl5/5.22/Mouse.pm line 137.\nBEGIN failed--compilation aborted at /tmp/test.pm line 4
The text was updated successfully, but these errors were encountered: