Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Net::SAML2 Compilation Error

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


nageshgurram12 at gmail

May 27, 2013, 2:09 AM

Post #1 of 4 (219 views)
Permalink
Net::SAML2 Compilation Error

Hi,
I Installed new Module Net::SAML2 and all its dependencies. But
when I try to use it, I am getting Compilation error.
I put 'use Net::SAML2' in my other module which causes the error, and
also I verified it INC path too, it exists.
More Info on error:

[Mon May 27 11:36:34 2013] [error] [16474]ERR: 24: Error in Perl
code: Attempt to reload ftd_indices.pm aborted.\nCompilation failed in
require at /usr/local/perl-5.14/lib/site_perl/5.14.2/x86_64-linux/Apache2/porting.pm
line 90.\nBEGIN failed--compilation aborted
Please help, I am trying from past two days.

Thanks,
Nageswara Rao G.


nageshgurram12 at gmail

May 27, 2013, 5:37 AM

Post #2 of 4 (214 views)
Permalink
Re: Net::SAML2 Compilation Error [In reply to]

By digging further, I found these details:

My mod_perl simply can't load XML::Generator. As soon as I put "use
XML::Generator;" in a perl startup file and include in httpd.conf,
Apache won't start, complaining that it can't locate
XML/Generator/overload.pm in @INC.

But the package XML::Generator::overload is in the same file as
XML/Generator.pm. Furthermore, when I go through the commandline (say
"perl -d -MXML::Generator -e 1"), all is fine.

And when I delete Apache2::porting.pm module from conf file, apache
starting fine.


On Mon, May 27, 2013 at 2:39 PM, Nageswara rao Gurram
<nageshgurram12 [at] gmail> wrote:
> Hi,
> I Installed new Module Net::SAML2 and all its dependencies. But
> when I try to use it, I am getting Compilation error.
> I put 'use Net::SAML2' in my other module which causes the error, and
> also I verified it INC path too, it exists.
> More Info on error:
>
> [Mon May 27 11:36:34 2013] [error] [16474]ERR: 24: Error in Perl
> code: Attempt to reload ftd_indices.pm aborted.\nCompilation failed in
> require at /usr/local/perl-5.14/lib/site_perl/5.14.2/x86_64-linux/Apache2/porting.pm
> line 90.\nBEGIN failed--compilation aborted
> Please help, I am trying from past two days.
>
> Thanks,
> Nageswara Rao G.


torsten.foertsch at gmx

May 27, 2013, 7:45 AM

Post #3 of 4 (214 views)
Permalink
Re: Net::SAML2 Compilation Error [In reply to]

On 27/05/13 14:37, Nageswara rao Gurram wrote:
> My mod_perl simply can't load XML::Generator. As soon as I put "use
> XML::Generator;" in a perl startup file and include in httpd.conf,
> Apache won't start, complaining that it can't locate
> XML/Generator/overload.pm in @INC.
>
> But the package XML::Generator::overload is in the same file as
> XML/Generator.pm. Furthermore, when I go through the commandline (say
> "perl -d -MXML::Generator -e 1"), all is fine.
>
> And when I delete Apache2::porting.pm module from conf file, apache
> starting fine.

Modperl does nothing special with C<use> or C<require>.

The only reason I can think of is that something tampers with %INC or
@INC or perhaps %XML::Generator::.

Do you use Apache2::Reload?

Do you use PerlOptions +Autoload?

Do you have perhaps relative path names in $PER5LIB or similar?

Torsten


torsten.foertsch at gmx

May 28, 2013, 1:26 AM

Post #4 of 4 (198 views)
Permalink
Re: Net::SAML2 Compilation Error [In reply to]

On 28/05/13 09:06, Nageswara rao Gurram wrote:
> I am using PerlModule Apache2::porting for debugging purpose.

Oh my goodness! I have never had a look at this module before. This
thing tries to be really clever. It installs an &UNIVERSAL::AUTOLOAD and
overwrites CORE::GLOBAL::require.

The module is short. I think if you litter it with debugging statements
you may find the culprit.

Torsten

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.