Re: Issues on solaris 10 and linux

2007-02-22 Thread JusTiCe8

Roderich Schupp wrote:


That simply means you don't have XML::LibXML::SAX::Parser installed,
try with whatever is the last entry in your XML/SAX/ParserDetails.ini -
should be the same as what the following prints:

perl -MXML::SAX -e 'print ref(XML::SAX::ParserFactory-parser), \n'

Thx to all people who help me to track this issue.
It's works now (either the little iconv test and the real project 
itself), for iconv issue I just change XML encoding in header from ASCII 
to ISO-8859-1.




RE: Issues on solaris 10 and linux

2007-02-20 Thread IvorW


 -Original Message-
 From: Michael HOUZE [mailto:[EMAIL PROTECTED]
 Sent: 20 February 2007 14:40
 To: par@perl.org
 Subject: Issues on solaris 10 and linux
 
 
 
 Hi this is my first post on this list, I still have not found 
 answer for some issues I encouter using perl 5.8.8/PAR 0.970 
 on solaris 10 with a little project I work on.
 On Linux (Ubuntu dapper with perl 5.8.7 PAR 0.90) evrything 
 is ok. I can generate a stand-alone executable which run perfectly.
 On solaris, I build the executable on a developpement host, 
 then run it on a testing host (I'm not responsible of 
 installation of this one but as I know, everything is the 
 same) and it's don't work well on both (yes on both).
 Perl script use XML::Simple and Text::Iconv and it doesn't 
 work in this packaged from. It run's good by using Perl as usual.
 To generate executable, I use these some combination of 
 flags: -f Bleach -c -d -B without success.
 
 I guess PAR isn't really ready yet for use on solaris :(.
 
 Another issue/unanswered question: how to debug PAR'ed script ?
 
 Please note also that using -f something on linux lead to 
 build error (one of my own module not found in path, only 
 with -f flag).
 
I'm using PAR on Solaris, granted it's solaris 8, but that shouldn't make too 
much of a difference. Please give more details of your errors and I'll see if I 
can help.

By the way, what flavour of perl are you using? One built with gcc or one built 
with forte?


RE: Issues on solaris 10 and linux

2007-02-20 Thread Michael HOUZE

 I'm using PAR on Solaris, granted it's solaris 8, but that shouldn't make too 
 much of a difference. Please give more details of your errors and I'll see if 
 I can help.
 
Of course, I can't get really so much information about error cause, as I don't 
know how to debug such released perl program.
A one-line iconv initialization works, but the same in par'ed program not.

 By the way, what flavour of perl are you using? One built with gcc or one 
 built with forte?

mmm gcc I guess (I don't know what's forte).

This is an example of the issue:
use strict;
use Text::Iconv;
use XML::Simple;


my $os_name=`uname`; chomp $os_name;
my $os_version=`uname -r`; chomp $os_version;
my $iconv;

my $config;

eval {
if ($os_name eq SunOS  $os_version eq 5.6) { 
$iconv=Text::Iconv-new (UTF-8, 8859-1); }
else { $iconv=Text::Iconv-new (UTF-8, ISO8859-1); }
#$iconv=Text::Iconv-new (UTF-8, ISO8859-1);
};
if ($@)
{
print STDERR Iconv initialization error: [EMAIL PROTECTED];
$@ = undef;
}

eval
{
$config = XMLin ('.testconf', suppressempty = 1);
};
if ($@)
{
print STDERR Open configuration file: $@;
}

on developpement host it's failed (iconv error 'Couldn't open encmap 
iso8859-1.enc'), but pp works and par packaged executable is built (maybe with 
something wrong inside).
On test host, I got 'Open configuration file: Can't locate object method new 
via package XML::SAX::Expat at XML/SAX/ParserFactory.pm line 43.' and running 
perl script with interpreter works.

I continue to work on it.



RE: Issues on solaris 10 and linux

2007-02-20 Thread IvorW


 -Original Message-
 From: Michael HOUZE [mailto:[EMAIL PROTECTED]
 Sent: 20 February 2007 15:26
 To: par@perl.org
 Subject: RE: Issues on solaris 10 and linux
 
 
  By the way, what flavour of perl are you using? One built 
 with gcc or one built with forte?
 
 mmm gcc I guess (I don't know what's forte).

The output of perl -V includes this information under Compiler:. Forte is 
Sun's proprietary development toolset.

 
 This is an example of the issue:
 use strict;
 use Text::Iconv;
 use XML::Simple;
 
 
 my $os_name=`uname`; chomp $os_name;
 my $os_version=`uname -r`; chomp $os_version;
 my $iconv;
 
 my $config;
 
 eval {
 if ($os_name eq SunOS  $os_version eq 5.6) { 
 $iconv=Text::Iconv-new (UTF-8, 8859-1); }
 else { $iconv=Text::Iconv-new (UTF-8, ISO8859-1); }
 #$iconv=Text::Iconv-new (UTF-8, ISO8859-1);
 };
 if ($@)
 {
 print STDERR Iconv initialization error: [EMAIL PROTECTED];
 $@ = undef;
 }
 
 eval
 {
 $config = XMLin ('.testconf', suppressempty = 1);
 };
 if ($@)
 {
 print STDERR Open configuration file: $@;
 }
 
 on developpement host it's failed (iconv error 'Couldn't open 
 encmap iso8859-1.enc'), but pp works and par packaged 
 executable is built (maybe with something wrong inside).
 On test host, I got 'Open configuration file: Can't locate 
 object method new via package XML::SAX::Expat at 
 XML/SAX/ParserFactory.pm line 43.' and running perl script 
 with interpreter works.

Try -M XML::Sax::Expat on the pp command line. Module::ScanDeps (used 
internally by PAR) sometimes misses modules implicitly required or required at 
run time, though much effort has gone into dealing with these.


Re: Issues on solaris 10 and linux

2007-02-20 Thread Roderich Schupp

 pp -M XML::LibXML::SAX::Parser ...

Thx for this detailled answer, but using -M flag like this don't work with the 
pp I use (version 0.973)
= Cannot open : No such file or directory at 
/path/perl-5.8.8/lib/site_perl/5.8.8/Module/ScanDeps.pm line 477.


That simply means you don't have XML::LibXML::SAX::Parser installed,
try with whatever is the last entry in your XML/SAX/ParserDetails.ini -
should be the same as what the following prints:

perl -MXML::SAX -e 'print ref(XML::SAX::ParserFactory-parser), \n'

Cheers, Roderich