Click here to get back home

SOAP::Lite Solaris Perl5.005 'Can't locate warnings.pm'

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
SOAP::Lite Solaris Perl5.005 'Can't locate warnings.pm' dubhead 03-15-2007
Posted by dubhead on March 15, 2007, 11:59 am
Please log in for more thread options


I have installed a shedload of modules to use SOAP::Lite on a Solaris 8
system with Perl 5.00503.

When I start a script using SOAP::Lite I get following error:


Can't locate warnings.pm in @INC (@INC contains:
/home/marcr/perllibs/sun4-solaris /home/marcr/perllibs
/usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
/usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at
/home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
BEGIN failed--compilation aborted at
/home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
...propagated at /home/marcr/perllibs/SOAP/Lite.pm line 527.


That's a reasonable error, because the warnings pragma exists only from
perl 5.6.0.
But the SOAP-Lite-0.69 README says:

"SUPPORTED PLATFORMS

This library has been tested by the author with Perl versions 5.005
and 5.6.0 on different platforms: Windows 98/2K, Solaris 2.6, Linux 2.2.
Should run everywhere where Perl 5.004 or later runs."

So what's going on. I am using perl 5.005 which is later than 5.004 and
I get an error due to a pragma missing from the perl version I am using.
And more importantly, how do I solve this problem without upgrading
perl?

Marc





Posted by Sisyphus on March 15, 2007, 7:04 pm
Please log in for more thread options



>I have installed a shedload of modules to use SOAP::Lite on a Solaris 8
> system with Perl 5.00503.
>
> When I start a script using SOAP::Lite I get following error:
>
>
> Can't locate warnings.pm in @INC (@INC contains:
> /home/marcr/perllibs/sun4-solaris /home/marcr/perllibs
> /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
> /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at
> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
> BEGIN failed--compilation aborted at
> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
> ...propagated at /home/marcr/perllibs/SOAP/Lite.pm line 527.
>
>
> That's a reasonable error, because the warnings pragma exists only from
> perl 5.6.0.
> But the SOAP-Lite-0.69 README says:
>
> "SUPPORTED PLATFORMS
>
> This library has been tested by the author with Perl versions 5.005
> and 5.6.0 on different platforms: Windows 98/2K, Solaris 2.6, Linux 2.2.
> Should run everywhere where Perl 5.004 or later runs."
>
> So what's going on. I am using perl 5.005 which is later than 5.004 and
> I get an error due to a pragma missing from the perl version I am using.
> And more importantly, how do I solve this problem without upgrading
> perl?
>

Just find the offending 'use warnings;' and change it to '#use warnings;'
:-)

And complain to the module's author, if you're so disposed. (There's a line
of thought that module authors should not be forcing you to see warnings
generated by their modules.)

If you then run your scripts with global warnings turned on (-w) you'll get
to see any warnings from that module, anyway.

Cheers,
Rob


Posted by dubhead on March 16, 2007, 2:24 pm
Please log in for more thread options


Sisyphus wrote:
>
>
>> I have installed a shedload of modules to use SOAP::Lite on a Solaris 8
>> system with Perl 5.00503.
>>
>> When I start a script using SOAP::Lite I get following error:
>>
>>
>> Can't locate warnings.pm in @INC (@INC contains:
>> /home/marcr/perllibs/sun4-solaris /home/marcr/perllibs
>> /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
>> /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at
>> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
>> BEGIN failed--compilation aborted at
>> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
>> ...propagated at /home/marcr/perllibs/SOAP/Lite.pm line 527.
>>
>>
>> That's a reasonable error, because the warnings pragma exists only from
>> perl 5.6.0.
>> But the SOAP-Lite-0.69 README says:
>>
>> "SUPPORTED PLATFORMS
>>
>> This library has been tested by the author with Perl versions 5.005
>> and 5.6.0 on different platforms: Windows 98/2K, Solaris 2.6, Linux 2.2.
>> Should run everywhere where Perl 5.004 or later runs."
>>
>> So what's going on. I am using perl 5.005 which is later than 5.004 and
>> I get an error due to a pragma missing from the perl version I am using.
>> And more importantly, how do I solve this problem without upgrading
>> perl?
>>
>
> Just find the offending 'use warnings;' and change it to '#use
> warnings;' :-)
>
> And complain to the module's author, if you're so disposed. (There's a
> line of thought that module authors should not be forcing you to see
> warnings generated by their modules.)
>
> If you then run your scripts with global warnings turned on (-w) you'll
> get to see any warnings from that module, anyway.
>
> Cheers,
> Rob
Actually it is a line saying "no warnings 'redefine'". Switching it of
will probably result in more warnings.


Posted by Sisyphus on March 16, 2007, 6:33 pm
Please log in for more thread options



.
.
>> Just find the offending 'use warnings;' and change it to '#use
>> warnings;' :-)
>>
>> And complain to the module's author, if you're so disposed. (There's a
>> line of thought that module authors should not be forcing you to see
>> warnings generated by their modules.)
>>
>> If you then run your scripts with global warnings turned on (-w) you'll
>> get to see any warnings from that module, anyway.
>>
>> Cheers,
>> Rob
> Actually it is a line saying "no warnings 'redefine'". Switching it of
> will probably result in more warnings.
>

I would still remove it - and any 'use warnings;' entries - and any other
'no warnings ....;' entries.

Cheers,
Rob


Similar ThreadsPosted
SOAP::Lite : Problem of # sign added by SOAP::Lite in the sent SOAPActionstring November 5, 2004, 8:45 pm
prebuilt DBI/DBD Oracle for solaris 8, perl5.00503 February 27, 2005, 10:22 am
SOAP::Lite WSDL method with multiple soap:body parts February 16, 2005, 3:32 pm
Writing a HTML/ASP SOAP client for a SOAP::Lite destination March 16, 2005, 5:19 pm
Help with SOAP::Lite January 19, 2005, 11:35 pm
SOAP::Lite March 3, 2005, 6:13 am
Using SOAP::Lite and .NET November 16, 2005, 2:12 pm
SOAP::Lite March 5, 2007, 4:26 am
use SOAP::Lite +autodispatch ??? November 23, 2004, 3:12 am
SOAP::Lite weirdness April 6, 2006, 8:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap