For want of perl 5.6.1, I appear to have hosed my system...

During an upgrade, Debian upgraded some other packages for me as well, a
few of which I have had to put in effort to get working again. Hopefully,
lprng will be the last on the list. Configuring printing has always been a
problem spot for me, I'd like to think it is my printer, not me. Getting
this setup to work previously was a bit of a chore, so it may have
something to do with my setup, but I can't imagine it is not a common one.

I have just upgraded to lprng 3.8.10-1.2, and ifhp 3.5.7-2 on Debian 2.2.
I have an old HP LaserJet 4m with an old JetDirect card (only supports one
protocol at a time). Previously, I had both of and if using ifhp, with a
commented out magicfilter, which makes me believe I had tried it, and it
didn't work.

With the new lprng, I had to change printcap to point to ifhp in a new
location. That didn't work, so I tried configuring with lprngtool
(1.1.1-6). This also did not work. I am back to trying a hand crafted
printcap.

The problem is, when I print, the printer blinks away for a bit, and then
stops. No output, and the job is still in the queue:
files:~> lpq
Printer: [EMAIL PROTECTED] 'HP Printer'
 Queue: 1 printable job
 Server: pid 31446 active
 Unspooler: pid 31449 active
 Status: processing 'dfA445files', size 366, format 'f', IF filter 'ifhp'
at 15:17:24.509
 Filter_status: sync done at 15:17:25.990
 Rank   Owner/ID                  Class Job Files                 Size
Time
active [EMAIL PROTECTED]           A   445 /etc/motd              366
15:17:24

I have worked through the debugging guide in the IFHP-HOWTO. Using the
'send' script, I am able to send /etc/motd, and have it print, but when I
send a postscript file that I frequently print (at debug level 3), the
printer displays "ERROR 40". I saw no errors in the trace file, so I
bumped up debugging to level 4. Now the printer blinks, doesn't produce
the error, but also produces no output, and the send script doesn't exit.
Digging in the trace file, I do see that it is getting the pagecount, so
there is communication going on. Going back to debug level 3, the behavior
is the same as level 4 (no error, no output, /tmp/send does not exit, log
says it is repeating messages such as :
ifhp 15:52:19.402 [31907] Current_pagecounter: write/read result 0
ifhp 15:52:19.402 [31907] Current_pagecounter: starting, use_pjl 0, use_ps
1, ti
meout 0
ifhp 15:52:19.403 [31907] Current_pagecounter: using '[EMAIL PROTECTED]
@PJL ENTER LANGUAGE = POSTSCRIPT
^D%!PS-Adobe-2.0
/p{print}def ( %%[ pagecount: ) p
statusdict begin pagecount end 20 string cvs p
( ]%% ) p () = flush
^D^[%-12345X'
ifhp 15:52:19.403 [31907] Current_pagecounter: writing 175
ifhp 15:52:19.403 [31907] Current_pagecounter: write/read result 0
ifhp 15:52:20.982 [31907] Read_status_timeout: timeout 20, count 1
ifhp 15:52:20.994 [31907] Read_status_timeout: read count 1, '^D'
ifhp 15:52:21.001 [31907] Current_pagecounter: write/read result 0
ifhp 15:52:21.930 [31907] Read_status_timeout: timeout 20, count 27
ifhp 15:52:21.930 [31907] Read_status_timeout: read count 27, ' %%[
pagecount: 6
480 ]%% ^M
'
ifhp 15:52:21.930 [31907] Current_pagecounter: write/read result 0
ifhp 15:52:21.932 [31907] Read_status_timeout: timeout 20, count 1
ifhp 15:52:21.932 [31907] Read_status_timeout: read count 1, '^D'
ifhp 15:52:21.932 [31907] Current_pagecounter: write/read result 0
ifhp 15:52:28.972 [31907] Read_status_timeout: timeout 20, count 59
ifhp 15:52:28.972 [31907] Read_status_timeout: read count 59, '@PJL
USTATUS TIME
D^M
CODE=10001^M
DISPLAY=":"^M

My printcap is as follows:

lp|LaserJet4|macprint|HP Printer
:sh
:sf
:mx=0
:lp=laserjet4%9100
:sd=/var/spool/lpq
:lf=/var/log/lp-errs
#:fx=flpv#filters
:ifhp=model=hp4m
:filter=/usr/lib/ifhp/ifhp
#:if=/usr/lib/ifhp/ifhp
#:of=/usr/lib/ifhp/ifhp
#:if=/etc/magicfilter/ljet4m-filter

Anyone have any suggestions?

Thanks,

-Michael


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to