lr_xml2chart err can't open EPS input file

Edward Quick edwardquick at hotmail.com
Tue Dec 24 00:05:48 CET 2002




>
>>On dim, 2002-12-22 at 09:02, Edward Quick wrote:
>> > Hi,
>> >
>> > I'm trying to create a report with graphs but keep getting the error 
>>below
>> > saying can't open EPS input file.
>> >
>> > smpd9$ lr_run lr_log2report -o xhtml -i postfix < little.log > 
>>postfix.tar
>> > all postfix lr_tag-20021222133237-23041 lr_xml2chart err can't open EPS
>> > input file at
>> > /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/Parser/Expat.pm 
>>line
>> > 469
>> > all postfix lr_tag-20021222133237-23041 lr_xml2chart err at line 35
>> > all postfix lr_tag-20021222133237-23041 lr_xml2report err lr_xml2xhtml
>> > failed
>> > all postfix lr_tag-20021222133237-23041 lr_log2report err lr_xml2report
>> > failed
>> > all postfix lr_tag-20021222133237-23041 lr_log2report notice keeping
>> > 
>>/home/u752359/tmp/lr_log2report.postfix.lr_tag-20021222133237-23041.report.xml
>> > for debugging.
>> >
>> >
>>
>>What version of ploticus are you using? You need the latest 2.10
>>version, there were problems with the previous version.
>>
>>If you have the 2.10 version installed, you can get more information
>>on what is going on by removing the redirection to /dev/nul of the
>>ploticus messages by modifying PloticusChartWriter. Near line 133,
>>you'll find
>>
>>	my $ploterrs = '2>/dev/null';
>>
>>Replace it by my $ploterrs = "";
>>
>>You'll see the ploticus messages which might give some information
>>on what is going on.
>>
>>Another thing you might want to fix, is remove the line near 113 which
>>says:
>>
>>$hq = 1;
>>
>>This is a bug in 1.2.1 which always force the use of gs for
>>anti-aliasing purpose. (It is supposes to use gs only when
>>LR_IMAGE_STYLE is set to 'hq'). By not using gs, we'll know if the
>>problem is related to ploticus or gs.
>>
>>Kind regards
>>
>>
>>Francis J. Lacoste
>>
>>--
>>Francis J. Lacoste              . .           http://www.logreport.org
>>/^LogReport$/               . .               flacoste at logreport.org
>><< signature.asc >>
>
>Thanks Francis,
>
>That helped me fix the problem. All I had to do was set the 
>PLOTICUS_PREFABS environment variable.
>
>Cheers,
>
>Ed.
>
>mpd9$ lr_run lr_log2report -o xhtml -i postfix < little.log > postfix.tar
>bogus message: pl error 4899: PLOTICUS_PREFABS environment var not found 
>(pathname of dir where prefab files reside)
>bogus message:
>bogus message: Usage: pl -prefab prefabname [parameters] ..or.. pl 
>scriptfile [options]
>bogus message: Available output formats: ps eps svg svgz x11 png jpeg wbmp 
>FreeType2
>bogus message:
>bogus message: ploticus 2.10 (unix) Copyright 1998-2002 Steve Grubb, 
>ploticus.sourceforge.net
>bogus message: pl error 4899: PLOTICUS_PREFABS environment var not found 
>(pathname of dir where prefab files reside)
>bogus message:
>bogus message: Usage: pl -prefab prefabname [parameters] ..or.. pl 
>scriptfile [options]
>bogus message: Available output formats: ps eps svg svgz x11 png jpeg wbmp 
>FreeType2
>bogus message:
>bogus message: ploticus 2.10 (unix) Copyright 1998-2002 Steve Grubb, 
>ploticus.sourceforge.net
>all postfix lr_tag-20021222201037-11450 lr_xml2report err lr_xml2xhtml 
>failed
>all postfix lr_tag-20021222201037-11450 lr_log2report err lr_xml2report 
>failed
>all postfix lr_tag-20021222201037-11450 lr_log2report notice keeping 
>/home/ftp/src/tmp/lr_log2report.postfix.lr_tag-20021222201037-11450.report.xml 
>for debugging.
>
>

Francis,

Sorry, this problem has cropped up again even with the fixes you recommended 
above. Although it all ran smoothly on a cut down version of the mail log, 
when I ran it on the real log I got:

all postfix lr_tag-20021223220729-5934 postfix2dlf_pre warning no 
(resent-)message-id= field found for queueid '155ED114E', using default
all postfix lr_tag-20021223220729-5934 postfix2dlf_pre warning no 
(resent-)message-id= field found for queueid '78E72114F', using default
all postfix lr_tag-20021223220729-5934 postfix2dlf_pre notice 
Lire::Email::parse: skipping PIX workaround line: we do not use this info 
(yet)
all postfix lr_tag-20021223220729-5934 postfix2dlf_pre notice 
Lire::Email::parse: skipping PIX workaround line: we do not use this info 
(yet)
bogus message: Got 4 records, 3 fields per record.
bogus message: Got 10 records, 3 fields per record.
bogus message: Got 2 records, 3 fields per record.
bogus message: Got 2 records, 3 fields per record.
bogus message: Got 10 records, 3 fields per record.
bogus message: Got 10 records, 3 fields per record.
bogus message: Got 10 records, 3 fields per record.
bogus message: Got 10 records, 3 fields per record.
all postfix lr_tag-20021223220729-5934 lr_xml2report err lr_xml2html failed
all postfix lr_tag-20021223220729-5934 lr_log2report err lr_xml2report 
failed
all postfix lr_tag-20021223220729-5934 lr_log2report notice keeping 
/home/ftp/src/rsl59/tmp/lr_log2report.postfix.lr_tag-20021223220729-5934.report.xml 
for debugging.
smpd9$ ls -l
total 132226
-rw-r-----   1 u752359  staff    4708264 Dec 23 22:43 core
-rw-r--r--   1 u752359  staff      67099 Dec 22 10:35 little.log
-rwxr-xr-x   1 u752359  staff        664 Dec 23 22:07 mail-check
-rw-r--r--   1 u752359  staff    62864866 Dec 16 10:16 mail.log
-rw-r--r--   1 u752359  staff          0 Dec 23 22:07 postfix.tar
drwxr-xr-x   2 u752359  staff       1024 Dec 23 22:06 report
drwxr-x---   5 u752359  staff       3072 Dec 23 22:42 tmp
smpd9$
smpd9$ df -k .
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/vx/dsk/d9dg02/ebizftp
                     10485760 2769064 7234431    28%    /home/ftp

Here's my program to generate the reports:

smpd9$ cat mail-check
#PATH=$PATH:/home/ftp/src/ghostscript/bin:/opt/local/gnu/bin:/home/ftp/src/lire/bin:/home/ftp/src/rsl59:/home/ftp/src/ploticus/bin
PATH=$PATH:/opt/local/gnu/bin:/home/ftp/src/lire/bin:/home/ftp/src/rsl59:/home/ftp/src/ploticus/bin
PLOTICUS_PREFABS=/home/ftp/src/ploticus/prefabs
PATH=$PATH:/home/ftp/src/rsl59/:/home/ftp/src/lire/bin
HOME=/home/ftp/src/rsl59
LR_IMAGE_FORMAT=png
export PATH LR_IMAGE_FORMAT HOME PLOTICUS_PREFABS
perl -pe 's/Message forwarded from rsl[0-9]*: //' mail.log | lr_run 
lr_log2report -o html -i postfix > postfix.tar

Not sure whether you really want me to send this but just incase it helps, 
here's the output from gdb:

smpd9$ gdb /usr/bin/perl /home/ftp/src/rsl59/core
GNU gdb 5.1.1
This GDB was configured as "sparc-sun-solaris2.6"...
(no debugging symbols found)...

warning: core file may not match specified executable file.
Core was generated by `/usr/bin/perl -w 
/home/ftp/src/lire/libexec/lire/lr_xml2chart -o /home/ftp/src/'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.1...(no debugging symbols 
found)...
done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libdl.so.1...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libc.so.1...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from 
/usr/platform/SUNW,Ultra-Enterprise-10000/lib/libc_psr.so.1...(no debugging 
symbols found)...done.
Loaded symbols for 
/usr/platform/SUNW,Ultra-Enterprise-10000/lib/libc_psr.so.1
Reading symbols from /usr/lib/locale/en_UK/en_UK.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/locale/en_UK/en_UK.so.1
Reading symbols from 
/usr/local/lib/perl5/5.00503/sun4-solaris/auto/Fcntl/Fcntl
so...(no debugging symbols found)...done.
Loaded symbols for 
/usr/local/lib/perl5/5.00503/sun4-solaris/auto/Fcntl/Fcntl.so
Reading symbols from 
/usr/local/lib/perl5/5.00503/sun4-solaris/auto/IO/IO.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/perl5/5.00503/sun4-solaris/auto/IO/IO.so
Reading symbols from 
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/XML/Parser/Expat/Expat.so...(no 
debugging symbols found)...done.
Loaded symbols for 
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/XML/Parser/Expat/Expat.so
Reading symbols from /home/ftp/src/expat/lib/libexpat.so.0...
(no debugging symbols found)...done.
Loaded symbols for /home/ftp/src/expat/lib/libexpat.so.0
Reading symbols from 
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBI/DBI.so...(no 
debugging symbols found)...done.
Loaded symbols for 
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBI/DBI.so
Reading symbols from 
/usr/local/lib/perl5/5.00503/sun4-solaris/auto/POSIX/POSIX.so...(no 
debugging symbols found)...done.
Loaded symbols for 
/usr/local/lib/perl5/5.00503/sun4-solaris/auto/POSIX/POSIX.so
#0  0x0002b28c in malloc ()

(gdb) where
#0  0x0002b28c in malloc ()
#1  0x000704fc in Perl_sv_grow ()
#2  0x00073e04 in Perl_sv_setpvn ()
#3  0x000773b0 in Perl_newSVpvn ()
#4  0xef54d78c in XS_XML__Parser__Expat_OriginalString ()
   from 
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/XML/Parser/Expat/Expat.so
#5  0x0006e358 in Perl_pp_entersub ()
#6  0x000b1150 in Perl_runops_standard ()
#7  0x00095894 in docatch ()
#8  0x000b1150 in Perl_runops_standard ()
#9  0x00027820 in perl_call_sv ()
#10 0xef543e8c in startElement ()
   from 
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/XML/Parser/Expat/Expat.so
#11 0xef4e89ac in doContent () from /home/ftp/src/expat/lib/libexpat.so.0
#12 0xef4e7414 in contentProcessor ()
   from /home/ftp/src/expat/lib/libexpat.so.0
#13 0xef4e6420 in XML_ParseBuffer () from 
/home/ftp/src/expat/lib/libexpat.so.0
#14 0xef543760 in parse_stream ()
   from 
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/XML/Parser/Expat/Expat.so
#15 0xef54906c in XS_XML__Parser__Expat_ParseStream ()
  from 
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/XML/Parser/Expat/Expat.so
#16 0x0006e358 in Perl_pp_entersub ()
#17 0x000b1150 in Perl_runops_standard ()
#18 0x00026e1c in perl_run ()
#19 0x00024558 in main ()
(gdb)

I am using ploticus 2.10, expat-1.95.5 and my Operating System is solaris 
2.6. Sorry for sending so much info. I'm looking at tools for analysing 
Postfix logs, and from what I've seen so far, this one seems to be the most 
comprehensive, so I'd really like to get it working.

Thanks for your help.

Ed.


_________________________________________________________________
MSN 8 with e-mail virus protection service: 3 months FREE*. 
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_eliminateviruses_3mf

-- 
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
questions-request at logreport.org



More information about the Questions mailing list