Olivier PAGE on Mon, 5 Jun 2000 12:47:16 +0200 (CEST)


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

apsfilter 5.4.2 / no args transmitted


here is the bug report
what's wrong ? lpr ? apsfilter ?
You can see that no args are transmitted to apsfilter  ( APS_CMD ) when
printing to cmi



# $ApsCVS: src/apsfilter/HOWTO-BUGREPORTS,v 1.12 2000/04/30 14:51:48
andreas Exp $

please mail this form to:	andreas@klemm.gtn.com

with the subject:		apsfilter x.y.z [short problem description]

(1) Some simple questions:

	Operating System  : Linux
	if Linux	  : Red Hat Linux release 6.0 (Hedwig)
				Kernel 2.2.13 on an i686


	apsfilter Rel.    : apsfilter-5.4.2
	ghostscript Rel.  : Aladdin Ghostscript 5.50 (1998-9-16)        
	Printer           : Generic Postscript HP laserjet 4050
	serial/parallel   : xxxxxx
	Mono/Color        : mono
	Postscript-Printer: Yes
	Print Resolution  : xxxxxxxxxxxxxxx
	or                : aps3-PS_600dpi-a4-auto-default
	Your Full Name    : Olivier PAGE
	Your e-mail addr  : olivier@esm2.imt-mrs.fr

(2) - Problem description
    - what ghostscript printer driver did you use ?
	No ghostscript printer driver used



(3) Any error messages from your operating system, indicating trouble 
    concerning TCP/IP, lpd ? Browse your systems syslog logfiles, i.e.
    /var/log/messages or /var/log/lpd-errs, ... ?

	NO


(5) Did you enable debugging in the apsfilter shellscript
    to track down simple errors yourself ? More infos on how to do this,
    see doc/TROUBLESHOOTING, section 1.5. Please do so first !!!
    If you can't find the problem, then please send me the debugging
    output of *exactly* one print session.

	YES

+ umask 077
+ TMP=/tmp
++ mktemp /tmp/aps_header.XXXXXX
+ APS_HEADER=/tmp/aps_header.qWwBea
++ mktemp /tmp/aps_tmp.XXXXXX
+ TMP_FILE=/tmp/aps_tmp.A41cV9
++ mktemp /tmp/aps_tmp2.XXXXXX
+ TMP_FILE2=/tmp/aps_tmp2.aW7GD9
++ mktemp /tmp/aps_printout.XXXXXX
+ TMP_PRINTOUT=/tmp/aps_printout.YqAGo9
+ trap echo SIGHUP SIGINT SIGQUIT SIGPIPE
+ [ -n  ]
+ trap rm -f /tmp/aps_header.qWwBea /tmp/aps_tmp.A41cV9
/tmp/aps_tmp2.aW7GD9 /tmp/aps_printout.YqAGo9 EXIT SIGTRAP SIGBUS
SIGKILL SIGUSR1 SIGUSR2 SIGTERM
+ APS_CMD=/usr/local/apsfilter/filter/aps3-PS_600dpi-a4-auto-default
++ grep APS_BASEDIR /etc/printcap
++ cut -d : -f 2
+ APS_BASEDIR=/usr/local/apsfilter
+ export APS_BASEDIR
+ cd /usr/local/apsfilter/lib
+ [ -n  ]
+ [ -z  -o  = 0 ]
+ WIDTH=80
+ [ -z  ]
+ LENGTH=66
+ [ -z  ]
+ INDENT=0
++ grep ^: /etc/passwd
++ cut -d : -f 6
++ uniq
+ HOME_DIR=
++ dirname
dirname: too few arguments
Try `dirname --help' for more information.
+ SPOOL_DIR=
+ [ -z  ]
+ echo Cannot get the spooling directory.
+ echo Fix your lpd or stop printing to remote printers directly.
+ exit 1
+ rm -f /tmp/aps_header.qWwBea /tmp/aps_tmp.A41cV9 /tmp/aps_tmp2.aW7GD9
/tmp/aps_printout.YqAGo9




(6) The printer entry from your /etc/printcap file, that caused trouble,
    i.e. if you have trouble forcing ASCII printing the entry from the
    printer named auto would be fine:
# LABEL apsfilter
# apsfilter setup Wed May 31 16:08:27 CEST 2000
#
# DON'T DELETE THIS:
# APS_BASEDIR:/usr/local/apsfilter
# APS2_BEGIN:printer2:PS_600dpi:a4:default
# - don't delete start label for apsfilter printer2
# - no other printer defines between BEGIN and END LABEL
#
cmi|lp2|aps3-PS_600dpi-a4-auto-default|Printer2 PS_600dpi a4 auto
default:\
    :lp=:\
    :rm=lasercmi:\
    :rp=text:\
    :sd=/var/spool/lpd/printer2-PS_600dpi-a4-auto-default:\
    :lf=/var/spool/lpd/printer2-PS_600dpi-a4-auto-default/log:\
    :af=/var/spool/lpd/printer2-PS_600dpi-a4-auto-default/acct:\
    :if=/usr/local/apsfilter/filter/aps3-PS_600dpi-a4-auto-default:\
    :mx#0:\
    :sh:
raw2|aps4-PS_600dpi-a4-raw|Printer2 PS_600dpi a4 raw:\
    :lp=:\
    :rm=lasercmi:\
    :rp=text:\
    :sd=/var/spool/lpd/printer2-PS_600dpi-a4-raw:\
    :lf=/var/spool/lpd/printer2-PS_600dpi-a4-raw/log:\
    :af=/var/spool/lpd/printer2-PS_600dpi-a4-raw/acct:\
    :if=/usr/local/apsfilter/filter/aps4-PS_600dpi-a4-raw:\
    :mx#0:\
    :sh:
# APS2_END - don't delete this END LABEL for printer2

(7) Did you modify /etc/apsfilterrc or /etc/apsfilterrc.<GS_DRIVERNAME>
? 
    If you modified the file, try printing without the modifications.
    Still problems ?

	NO

(8) Do you have a private and modified copy of /etc/apsfilterrc in 
    your login/home directory ($HOME/.apsfilterrc or 
    $HOME.apsfilterrc.<GS_DRIVERNAME> ?

	NO

(9) Do you use an (old) global /etc/apsfilterrc file ?
    Apsfilter 5.1.5 an newer should have printer specific settings
    only in /etc/apsfilterrc.<gs-drivername>
    /etc/apsfilterrc is global for all printers, so you should avoid
    printer specific settings. Best is to backup and remove the file
    when doing a new installation.

	NO

(10) Is it perhaps a file type recognition problem ?
     The output of your file(1) command on the file that can't be
printed:
     i.e. type:	file file_that_can't_be_printed 
		README: English text

	NO



(12) Mostly true on Linux Distributions:
     Do you use the traditional printer spooler (lpd)
     or the one that is called LPRng (line printer next generation) ?

[root@pytheas apsfilter]$ rpm -qa | grep lpr
lpr-0.48-1




-- 
Olivier PAGE                            Rebooteux Systeme (D) /
Enseignant
Ecole Sup. de Meca. Marseille			http://esm2.imt-mrs.fr 
Tel/Fax : (33) 4.91.05.44.26/45.98      email :
Olivier.Page@esm2.imt-mrs.fr
Addr:ESM2 Technopole Chateau Gombert 	13451 Marseille Cedex 13