>>Hi, here is a short test case.
>>
>>Test.pl
>>
>>--cut---
>>
>>use Net::OSCAR qw(:standard :loglevels);
>>
>>print "foo\n";
>>
>>--cut-
>>
>>
>>
>>It fails with this reason:
>>
>>
>>
>>Couldn't find Net/OSCAR/XML/Protocol.xml in search path: CODE(0xab6844)
>>CODE(0xc6f970) . at C:/Perl/site/lib/Net/OSCAR.pm line 142
>>
>>
>>
>>Checking the offending line reveals
>>
>>
>>
>>Net::OSCAR::XML::load_xml();
>>
>>
>>
>>Which does some wacky stuff:
>>
>> foreach (@INC) {
>>
>> next unless -f
>>"$_/Net/OSCAR/XML/Protocol.xml";
>>
>> $xmlfile =
>>"$_/Net/OSCAR/XML/Protocol.xml";
>>
>> last;
>>
>> }
>>
>> croak "Couldn't find Net/OSCAR/XML/Protocol.xml in
>>search path: " . join(" ", @INC) unless $xmlfile;
>>
>>
>>It appears the library is keeping some non .pm files in my
>>lib/Net/OSCAR/XML/ directory: Protocol.dtd, Protocol.xml, and
>>Protocol.parsed-xml (it appears this file is not required, but used as a
>>cache to speed up some stuffs)
>>
>>Anyway, I'm positive that this is the fault of Net::OSCAR. But is there
>>anything I can do to make pp works with this crazy module?
>>
>>Matt
>
>Please post the pp command line you used to create the resultant executable.
>
>Also, (this is ignorance on my part) did you try
> use Net::OSCAR::XML;
>in your script? Would the line "Net::OSCAR::XML::load_xml()" need it?
>Thanks
================================
I concurr. I installed Net::OSCAR, which automatically installed Net::OSCAR::XML. I also tried adding "use Net::OSCAR::XML"
On the pp command line, I tried
>pp -o test.exe test.pl
and also
>pp -o test.exe -M Net::OSCAR test.pl
and also
>pp -o test.exe -M Net::OSCAR -M Net::OSCAR::XML test.pl
Other than here verifying the symptoms, my help is at an end.
Anyone else? ================================ >type test.pl # File: test.pl
use Net::OSCAR qw(:standard :loglevels); use Net::OSCAR::XML; print "foo\n";
>pp -o test.exe -M Net::OSCAR -M Net::OSCAR::XML test.pl
>test.exe
Couldn't find Net/OSCAR/XML/Protocol.xml in search path: CODE(0xeea82c) C:\DOCUME~1\malcolm\LOCALS~1\Temp\par-malcolm\cache-9cf48e469344e7dff0e8c74f46f77c6216ba0836/inc/lib C:\DOCUME~1\malcolm\LOCALS~1\Temp\par-malcolm\cache-9cf48e469344e7dff0e8c74f46f77c6216ba0836/inc CODE(0xd344a4) . at Net/OSCAR.pm line 142
Compilation failed in require at script/test.pl line 3.
BEGIN failed--compilation aborted at script/test.pl line 3.