| robin@cosby.demon.co.uk on Mon, 15 May 2000 18:51:00 +0200 (CEST)(envelope-from robin@cosby.demon.co.uk) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Apsfilter-5.4.2 - Installation problem |
Hello Andreas,
I'll be grateful for any help that you can give me in resolving the
following installation problem. It's something that I've never
encountered before when using other versions of apsfilter with the
same printer and the same setup criteria.
Many thanks in advance!
--
Robin Cosby
********** BUG-REPORT **********
(1) Some simple questions:
Operating System : Linux SuSE-6.3, kernel 2.2.14
apsfilter Rel. : apsfilter-5.4.2
ghostscript Rel. : gs 6.01
Printer : HP 520 DeskJet
serial/parallel : parallel printer
Mono/Color : Mono printer
Postscript-Printer: no
Print Resolution : gs driver default ?
or : GS_RESOL set by apsfilterrc file ?
or : set by filterscript name ?
x600 x y300
Your Full Name : Robin Cosby
Your e-mail addr : robin@cosby.demon.co.uk
(2) - Problem description
a) When attempting to print the Test Page, my monitor screen fills with
a continuous loop of the following messages:
Unexecutable error: execstackoverflow in Unrecoverable error:
typecheck in Unrecoverable error: .... and so on.
b) If I bypass the test page printing process and continue to (C), to
eomplete the installation process, my printer does not react to a
print command, e.g. lpr -Praw /opt/apsfilter/README.
- what ghostscript printer driver did you use ? cdjmono
(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
(4) Did you read all help-files ? Yes
(5) Did you enable debugging in the apsfilter shellscript? Yes.
If you can't find the problem, then please send me the debugging
output of *exactly* one print session.
(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 Thu May 11 14:27:03 GMT 2000
#
# DON'T DELETE THIS:
# APS_BASEDIR:/opt/apsfilter
#
# APS1_BEGIN:printer1:cdjmono:a4:600x300
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
#
lp|aps1-cdjmono-a4-auto-600x300|Printer1 cdjmono a4 auto 600x300:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/printer1-cdjmono-a4-auto-600x300:\
:lf=/var/spool/lpd/printer1-cdjmono-a4-auto-600x300/log:\
:af=/var/spool/lpd/printer1-cdjmono-a4-auto-600x300/acct:\
:if=/opt/apsfilter/filter/aps1-cdjmono-a4-auto-600x300:\
:mx#0:\
:sh:
raw|aps2-cdjmono-a4-raw|Printer1 cdjmono a4 raw:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/printer1-cdjmono-a4-raw:\
:lf=/var/spool/lpd/printer1-cdjmono-a4-raw/log:\
:af=/var/spool/lpd/printer1-cdjmono-a4-raw/acct:\
:if=/opt/apsfilter/filter/aps2-cdjmono-a4-raw:\
:mx#0:\
:sh:
(7) Did you modify /etc/apsfilterrc or /etc/apsfilterrc.<GS_DRIVERNAME>?
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 ? No
Apsfilter 5.1.5 an newer should have printer specific settings
only in /etc/apsfilterrc.<gs-drivername>
I have no file called /etc/apsfilterrc. These appear only in:
/var/spool/lpd/printer1-cdjmono-a4-raw and
/var/spool/lpd/printer1-cdjmono-a4-auto-600x300
/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.
I removed the previous installation (apsfilter-5.1.5)
(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
file /opt/apsfilter/README gives: "English text".
(11) The part of your printers logfile, that logged the commands of
your failed print session, see lf= in /etc/printcap, i.e.:
lp|aps1-stcolor-a4-auto-default|Printer1 stcolor a4 auto default:\
:lf=/var/spool/lpd/printer1-stcolor-a4-auto-default/log:\
:af=/var/spool/lpd/printer1-stcolor-a4-auto-default/acct:\
So you find debugging output in the file
/var/spool/lpd/printer1-stcolor-a4-auto-default/log
This logfile contains debugging data, if you enabled debugging as
described in TROUBLESHOOTING, section 1.5.
file /var/spool/lpd/printer1-cdjmono-a4-raw/log
-----------------------------------------------
cat: write error: Broken pipe
cat: write error: Broken pipe
cat: write error: Broken pipe
+ umask 077
+ TMP=/tmp
++ mktemp /tmp/aps_header.XXXXXX
+ APS_HEADER=/tmp/aps_header.WGP5x3
++ mktemp /tmp/aps_tmp.XXXXXX
+ TMP_FILE=/tmp/aps_tmp.2CLY25
++ mktemp /tmp/aps_tmp2.XXXXXX
+ TMP_FILE2=/tmp/aps_tmp2.ITEqC8
++ mktemp /tmp/aps_printout.XXXXXX
+ TMP_PRINTOUT=/tmp/aps_printout.cufV5a
+ trap echo SIGHUP SIGINT SIGQUIT SIGPIPE
+ '[' -n '' ']'
+ trap 'rm -f /tmp/aps_header.WGP5x3 /tmp/aps_tmp.2CLY25
/tmp/aps_tmp2.ITEqC8 /tmp/aps_printout.cufV5a' EXIT SIGTRAP SIGBUS
SIGKILL SIGUSR1 SIGUSR2 SIGTERM
+ APS_CMD=/opt/apsfilter/filter/aps2-cdjmono-a4-raw -Praw -w80 -l66
-x0 -y0 -N/opt/apsfilter/README -SPrinter1 cdjmono a4 raw -Y1
-DThu May 11 15:17:38 2000 -nroot -hcosby.demon.co.uk
-J/opt/apsfilter/README -Lroot -Ff -CX -q8
-J/opt/apsfilter/README -CX -nroot -hcosby.demon.co.uk
-Ff /var/spool/lpd/printer1-cdjmono-a4-raw/acct
++ grep APS_BASEDIR /etc/printcap
++ cut -d : -f 2
+ APS_BASEDIR=/opt/apsfilter
+ export APS_BASEDIR
+ cd /opt/apsfilter/lib
+ '[' -n -Praw ']'
++ echo dummy -Praw
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -Praw
++ awk '{ print substr($2,2,1) }'
+ opt=P
++ echo dummy -Praw
++ awk '{ print substr($2,3) }'
+ val=raw
+ '[' -z raw ']'
+ shift
+ '[' -n -w80 ']'
++ echo dummy -w80
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -w80
++ awk '{ print substr($2,2,1) }'
+ opt=w
++ echo dummy -w80
++ awk '{ print substr($2,3) }'
+ val=80
+ '[' -z 80 ']'
+ WIDTH=80
+ shift
+ '[' -n -l66 ']'
++ echo dummy -l66
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -l66
++ awk '{ print substr($2,2,1) }'
+ opt=l
++ echo dummy -l66
++ awk '{ print substr($2,3) }'
+ val=66
+ '[' -z 66 ']'
+ LENGTH=66
+ shift
+ '[' -n -x0 ']'
++ echo dummy -x0
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -x0
++ awk '{ print substr($2,2,1) }'
+ opt=x
++ echo dummy -x0
++ awk '{ print substr($2,3) }'
+ val=0
+ '[' -z 0 ']'
+ shift
+ '[' -n -y0 ']'
++ echo dummy -y0
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -y0
++ awk '{ print substr($2,2,1) }'
+ opt=y
++ echo dummy -y0
++ awk '{ print substr($2,3) }'
+ val=0
+ '[' -z 0 ']'
+ shift
+ '[' -n -N/opt/apsfilter/README ']'
++ echo dummy -N/opt/apsfilter/README
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -N/opt/apsfilter/README
++ awk '{ print substr($2,2,1) }'
+ opt=N
++ echo dummy -N/opt/apsfilter/README
++ awk '{ print substr($2,3) }'
+ val=/opt/apsfilter/README
+ '[' -z /opt/apsfilter/README ']'
+ shift
+ '[' -n '-SPrinter1 cdjmono a4 raw' ']'
++ echo dummy -SPrinter1 cdjmono a4 raw
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -SPrinter1 cdjmono a4 raw
++ awk '{ print substr($2,2,1) }'
+ opt=S
++ echo dummy -SPrinter1 cdjmono a4 raw
++ awk '{ print substr($2,3) }'
+ val=Printer1
+ '[' -z Printer1 ']'
+ shift
+ '[' -n -Y1 ']'
++ echo dummy -Y1
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -Y1
++ awk '{ print substr($2,2,1) }'
+ opt=Y
++ echo dummy -Y1
++ awk '{ print substr($2,3) }'
+ val=1
+ '[' -z 1 ']'
+ shift
+ '[' -n '-DThu May 11 15:17:38 2000' ']'
++ echo dummy -DThu May 11 15:17:38 2000
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -DThu May 11 15:17:38 2000
++ awk '{ print substr($2,2,1) }'
+ opt=D
++ echo dummy -DThu May 11 15:17:38 2000
++ awk '{ print substr($2,3) }'
+ val=Thu
+ '[' -z Thu ']'
+ shift
+ '[' -n -nroot ']'
++ echo dummy -nroot
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -nroot
++ awk '{ print substr($2,2,1) }'
+ opt=n
++ echo dummy -nroot
++ awk '{ print substr($2,3) }'
+ val=root
+ '[' -z root ']'
+ LOGINNAME=root
+ shift
+ '[' -n -hcosby.demon.co.uk ']'
++ echo dummy -hcosby.demon.co.uk
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -hcosby.demon.co.uk
++ awk '{ print substr($2,2,1) }'
+ opt=h
++ echo dummy -hcosby.demon.co.uk
++ awk '{ print substr($2,3) }'
+ val=cosby.demon.co.uk
+ '[' -z cosby.demon.co.uk ']'
+ HOST=cosby.demon.co.uk
+ shift
+ '[' -n '-J/opt/apsfilter/README ' ']'
++ echo dummy -J/opt/apsfilter/README
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -J/opt/apsfilter/README
++ awk '{ print substr($2,2,1) }'
+ opt=J
++ echo dummy -J/opt/apsfilter/README
++ awk '{ print substr($2,3) }'
+ val=/opt/apsfilter/README
+ '[' -z /opt/apsfilter/README ']'
+ shift
+ '[' -n -Lroot ']'
++ echo dummy -Lroot
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -Lroot
++ awk '{ print substr($2,2,1) }'
+ opt=L
++ echo dummy -Lroot
++ awk '{ print substr($2,3) }'
+ val=root
+ '[' -z root ']'
+ shift
+ '[' -n -Ff ']'
++ echo dummy -Ff
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -Ff
++ awk '{ print substr($2,2,1) }'
+ opt=F
++ echo dummy -Ff
++ awk '{ print substr($2,3) }'
+ val=f
+ '[' -z f ']'
+ shift
+ '[' -n -CX ']'
++ echo dummy -CX
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -CX
++ awk '{ print substr($2,2,1) }'
+ opt=C
++ echo dummy -CX
++ awk '{ print substr($2,3) }'
+ val=X
+ '[' -z X ']'
+ shift
+ '[' -n '-q8 ' ']'
++ echo dummy -q8
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -q8
++ awk '{ print substr($2,2,1) }'
+ opt=q
++ echo dummy -q8
++ awk '{ print substr($2,3) }'
+ val=8
+ '[' -z 8 ']'
+ shift
+ '[' -n '-J/opt/apsfilter/README ' ']'
++ echo dummy -J/opt/apsfilter/README
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -J/opt/apsfilter/README
++ awk '{ print substr($2,2,1) }'
+ opt=J
++ echo dummy -J/opt/apsfilter/README
++ awk '{ print substr($2,3) }'
+ val=/opt/apsfilter/README
+ '[' -z /opt/apsfilter/README ']'
+ shift
+ '[' -n -CX ']'
++ echo dummy -CX
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -CX
++ awk '{ print substr($2,2,1) }'
+ opt=C
++ echo dummy -CX
++ awk '{ print substr($2,3) }'
+ val=X
+ '[' -z X ']'
+ shift
+ '[' -n -nroot ']'
++ echo dummy -nroot
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -nroot
++ awk '{ print substr($2,2,1) }'
+ opt=n
++ echo dummy -nroot
++ awk '{ print substr($2,3) }'
+ val=root
+ '[' -z root ']'
+ LOGINNAME=root
+ shift
+ '[' -n -hcosby.demon.co.uk ']'
++ echo dummy -hcosby.demon.co.uk
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -hcosby.demon.co.uk
++ awk '{ print substr($2,2,1) }'
+ opt=h
++ echo dummy -hcosby.demon.co.uk
++ awk '{ print substr($2,3) }'
+ val=cosby.demon.co.uk
+ '[' -z cosby.demon.co.uk ']'
+ HOST=cosby.demon.co.uk
+ shift
+ '[' -n -Ff ']'
++ echo dummy -Ff
++ awk '{ print substr($2,1,1) }'
+ '[' - = - ']'
++ echo dummy -Ff
++ awk '{ print substr($2,2,1) }'
+ opt=F
++ echo dummy -Ff
++ awk '{ print substr($2,3) }'
+ val=f
+ '[' -z f ']'
+ shift
+ '[' -n /var/spool/lpd/printer1-cdjmono-a4-raw/acct ']'
++ echo dummy /var/spool/lpd/printer1-cdjmono-a4-raw/acct
++ awk '{ print substr($2,1,1) }'
+ '[' / = - ']'
+ ACCTFILE=/var/spool/lpd/printer1-cdjmono-a4-raw/acct
+ shift
+ '[' -n '' ']'
+ '[' -z 80 -o 80 = 0 ']'
+ '[' -z 66 ']'
+ '[' -z '' ']'
+ INDENT=0
++ grep '^root:' /etc/passwd
++ cut -d : -f 6
++ uniq
+ HOME_DIR=/root
++ dirname /var/spool/lpd/printer1-cdjmono-a4-raw/acct
+ SPOOL_DIR=/var/spool/lpd/printer1-cdjmono-a4-raw
+ '[' -z /var/spool/lpd/printer1-cdjmono-a4-raw ']'
+ . /opt/apsfilter/global/GLOBAL.sh
++ VERSION=542
++ NOTIFY=root
++ APS_PATH=/opt/apsfilter/setup:/opt/apsfilter/global
++ STD_PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/contrib/bin
++ TEX_PATH_U=/usr/TeX/bin:/usr/local/TeX/bin:/TeX/bin:
/usr/local/teTeX/bin
++ TEX_PATH_L=/usr/tex/bin:/usr/local/lib/{tex,mf}/bin:/tex/bin
++ SUN_PATH=/usr/ucb:/usr/openwin/bin:/usr/etc:/etc
++ GNU_PATH=/usr/gnu/bin:/gnu/bin:/usr/gnu
++ X11_PATH=/usr/bin/X11:/usr/X386/bin:/usr/X11/bin:/usr/X11R6/bin
++ COMMON_PATH=/usr/local/bin:/local/bin
++ LOCAL_PATH=/home/local/bin:/foo/bar
++ PATH=/opt/apsfilter/setup:/opt/apsfilter/global:/sbin:/bin:
/usr/sbin:/usr/bin:/usr/contrib/bin:/usr/TeX/bin:
/usr/local/TeX/bin:/TeX/bin:/usr/local/teTeX/bin:/usr/tex/bin:
/usr/local/lib/{tex,mf}/bin:/tex/bin:/usr/ucb:/usr/openwin/bin:
/usr/etc:/etc:/usr/gnu/bin:/gnu/bin:/usr/gnu:/usr/bin/X11:
/usr/X386/bin:/usr/X11/bin:/usr/X11R6/bin:/usr/local/bin:
/local/bin:/home/local/bin:/foo/bar:.
++ export PATH
++ OLDCAP=/etc/printcap.old
++ FILTERS_FOUND=/opt/apsfilter/global/filters_found
++ '[' -d /var/spool/lpd ']'
++ SPOOL=/var/spool/lpd
+++ ls -ld /var/spool/lpd
++ set -- drwxr-xr-x 9 lp lp 1024 May 11 13:03 /var/spool/lpd
++ LP_OWNER=lp
++ LP_GROUP=lp
+++ uname -s
++ SYSTEM=Linux
++ MAGIC=/etc/magic
++ echo 'hi there\c'
++ echo ' '
++ grep -q c
++ n=-n
++ c=
++ gs -h
++ head -1
++ awk '{ print $3 }'
+ GS_VERSION=6.01
++ uname -s
+ SYSTEM=Linux
++ basename /opt/apsfilter/filter/aps2-cdjmono-a4-raw
++ cut '-d ' -f1 -
++ sed -e 's/-/ /g'
+ set -- aps2 cdjmono a4 raw
+ LABEL=aps2
+ PRINTER=cdjmono
+ PAPERSIZE=a4
+ METHOD=raw
+ DPI=
+ '[' -n '' ']'
+ APSFILTERRC=/var/spool/lpd/printer1-cdjmono-a4-raw/apsfilterrc
+ '[' -f /var/spool/lpd/printer1-cdjmono-a4-raw/apsfilterrc ']'
++ awk -F '!' '/^GS_FEATURES/ { print $2 }'
+ GS_FEATURES=
++ awk -F '!' '/^GS_RESOL/ { print $2 }'
+ GS_RESOL=600x300
++ awk -F '!' '/^GS_FONTPATH/ { print $2 }'
+ GS_FONTPATH=
++ awk -F '!' '/^PS_INIT/ { print $2 }'
+ PS_INIT=
++ awk -F '!' '/^PS_UTILS/ { print $2 }'
+ PS_UTILS=
++ awk -F '!' '/^COLOR/ { print $2 }'
+ COLOR=
++ awk -F '!' '/^RAW_SETUP/ { print $2 }'
+ RAW_SETUP=
++ awk -F '!' '/^RAW_SUPPRESS_FF/ { print $2 }'
+ RAW_SUPPRESS_FF=
++ awk -F '!' '/^A2PS_OPTS/ { print $2 }'
+ A2PS_OPTS=
++ awk -F '!' '/^A2PS_BASIC/ { print $2 }'
+ A2PS_BASIC=
++ awk -F '!' '/^A2PS_STYLE/ { print $2 }'
+ A2PS_STYLE=
++ awk -F '!' '/^A2PS_PAPERSIZE/ { print $2 }'
+ A2PS_PAPERSIZE=
++ awk -F '!' '/^A2PS_HEADER/ { print $2 }'
+ A2PS_HEADER=
++ awk -F '!' '/^A2PS_BORDER/ { print $2 }'
+ A2PS_BORDER=
++ awk -F '!' '/^USE_RECODE/ { print $2 }'
+ USE_RECODE=
++ awk -F '!' '/^RECODE_OPTS/ { print $2 }'
+ RECODE_OPTS=-q latin1:ibmpc
++ awk -F '!' '/^PRINT_DVI/ { print $2 }'
+ PRINT_DVI=
++ awk -F '!' '/^DVIPS_RES_DorP/ { print $2 }'
+ DVIPS_RES_DorP=-D
++ awk -F '!' '/^DVIPS_REVERSE/ { print $2 }'
+ DVIPS_REVERSE=
++ awk -F '!' '/^TEXINPUTS/ { print $2 }'
+ TEXINPUTS=
++ awk -F '!' '/^HAVE_MAKETEXPK/ { print $2 }'
+ HAVE_MAKETEXPK=
++ awk -F '!' '/^HTML2PS_OPTS/ { print $2 }'
+ HTML2PS_OPTS=-e ISO-8859-1 -u -H
+ '[' -z '' ']'
+ '[' -d /usr/X11R6/lib/X11/fonts/Type1 ']'
+ GS_FONTPATH=/usr/X11R6/lib/X11/fonts/Type1
+ GS_LIB=/usr/X11R6/lib/X11/fonts/Type1
+ export GS_FONTPATH GS_LIB
+ '[' -z '' ']'
+ A2PS_BASIC=-X iso1 -q -o -
+ '[' -z '' ']'
+ A2PS_STYLE=1
+ '[' -z '-q latin1:ibmpc' ']'
+ '[' -z '-e ISO-8859-1 -u -H' ']'
+ '[' -z '' ']'
+ COLOR=color
+ PNMTOPS=pnmtops
+ RAS2PS_OPTS=-C
+ DJPEG_OPTS=-colors 256
+ HTML2PS_OPTS=-e ISO-8859-1 -u -H -U
+ '[' '' = default ']'
+ RESOLUTION=
+ '[' -n '' ']'
+ LOCK=/var/spool/lpd/printer1-cdjmono-a4-raw/lock
++ tail -1 /var/spool/lpd/printer1-cdjmono-a4-raw/lock
+ CF=/var/spool/lpd/printer1-cdjmono-a4-raw/cfX008cosby.demon.co.uk
++ egrep '^J' /var/spool/lpd/printer1-cdjmono-a4-raw/cfX008cosby.demon.co.uk
++ tail +2c
+ JOB=/opt/apsfilter/README
++ egrep '^P' /var/spool/lpd/printer1-cdjmono-a4-raw/cfX008cosby.demon.co.uk
++ tail +2c
+ USER=root
++ egrep '^H' /var/spool/lpd/printer1-cdjmono-a4-raw/cfX008cosby.demon.co.uk
++ tail +2c
+ HOST=cosby.demon.co.uk
+ HPDJ_MODEL=
++ egrep '^C' /var/spool/lpd/printer1-cdjmono-a4-raw/cfX008cosby.demon.co.uk
++ tail +2c
+ CLASS=X
+ '[' -n X ']'
++ echo X
++ tr A-Z a-z
++ sed -e 's/:/\ /g'
+ set -- x
+ MAILX=mailx
+ '[' -n '' ']'
+ GS_CMD_RESOL=
+ PRINT_PS=gs -sDEVICE=cdjmono -sPAPERSIZE=a4 -dNOPAUSE -dSAFER
-sO