Michael Loßin on Thu, 14 Feb 2002 14:04:39 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: apsfilter bug: Fault logged when printing usning samba and l


On 13-Feb-02 Jon Hargreaves wrote:
> I am having a few problems when attempting to print using samba and the lpd
> daemon and would appreciate some help!
> 
>>Error type: usage
> 
>>How to repeat: By printing a pdf document using lpr
>>Error log:
[... no apparent errors ...]
> 
>>apsfilterrc changes:
> Did not change any. The following are the settings written automatically to
> the /usr/local/etc/apsfilter/apsfilterrc program after running setup
> 
> PRINTER='PS'
> PAPERSIZE='a4'
> METHOD='auto'
> QUALITY='medium'
> COLOR='full'
> RESOLUTION='300x300'
> 
>>Comment:
> 
> I am having problems printing via Samba using lpr to a HP4050PS Postscript
> printer.
> I have followed all instructions, run the setup script and have printed a
> test page
> satisfactorily. Whenever I print using the lpr command, however, I get a
> log file containing the 
> following message (under var/spool/lpd/lp):
> 
> apsfilter warning: unknown option 'dbserver.pfsuk.co.uk'

This is a warning that results in silly options from the lpd
daemon... you can safely ignore it.

> gawk: cmd. line:1: (FILENAME=- FNR=138) fatal: print to "standard output"
> failed (Broken pipe)

A "broken pipe" results in one program producing data with no
other that consumes it (here: gawk -> pdf2ps).

> Unexpected interpreter error -16.
> Error object:

This error is emitted by ghostscript. Although you don't directly
call ghostscript, the "pdf2ps" script is a wrapper for gs.
Error code -16 means "stack overflow" (btw, I wonder which error
can possibly be *expected*, but anyway...).

The source file might have some syntax error or a *very* big object
embedded into it.

> I have installed the acrobat reader, acroread, under
> /usr/local/Acrobat4/bin, the default.

Here we are... That path is not visible to apsfilter (for
security reasons), so you might want to add a useable PATH
setting in /usr/local/etc/apsfilter/apsfilterrc or create
a symlink to acroread in e.g. /usr/local/bin.


HTH
Michael