From: w_stef@athalia.unibw-hamburg.de (Stefano Ianigro)
Subject: [Q]: Problems with lpr
Organization: University of Federal Armed Forces Hamburg
Distribution: comp.os.linux
Date: Fri, 8 Jan 1993 19:48:51 GMT

Hello linuxers,

I'using linux 0.99pl2 and the tcpip-stuff with a wd8003 card here in
the university. We have a network here with a Convex C3820, 3 Nixdorf
Targon-35 and SUN workstations. On all this machine the PLP printer
system is installed. I installed the plp sources form tsx-11
(BETA/plp-src0.1.tar) on my linux box. Now the problem:

When I define SOCKET_FAMILY AF_UNIX in lp.h, I can print very well (local);
all the plp-stuff is working ok. I know that with this definition of
the sockets it's impossible to print "outside" of this machine to a
printer attached on the Targon's. But when I define SOCKET_FAMILY
AF_INET, everything compiles fine ,but runs with no connection to the other
machines:

Armida:/home/Armida/stef>lpr -D5 -Plp1 lpr.c
Printer 'lp1' (armida.unibw-hamburg.de):
lpq: lp1- pid=569, LOG_DEBUG, printstatus: ST status at Fri Jan  8 19:29:56 1993
lpq: lp1- pid=569, LOG_DEBUG, Set_uid: uid_parm 0, uid 0, euid 1 at Fri Jan  8 19:29:56 1993
  work done at Tue Jan  5 17:50:58 1993
lpq: lp1- pid=569, LOG_DEBUG, Remote_status: rzt01, '4'lp1
 at Fri Jan  8 19:29:56 1993
lpq: lp1- pid=569, LOG_DEBUG, Link_open: retry 3, attempt 1 at Fri Jan  8 19:29:56 1993
lpq: lp1- pid=569, LOG_DEBUG, getport: host rzt01 at Fri Jan  8 19:29:56 1993
lpq: lp1- pid=569, LOG_DEBUG, trying connection to rzt01 at Fri Jan  8 19:29:56 1993
lpq: lp1- pid=569, LOG_DEBUG, reserveport got socket 1024 at Fri Jan  8 19:29:56 1993

and now it hangs   :-(
The same happend using a local printer:

Armida:/home/Armida/stef>lpr -D5 -Pttt .cshrc
lpr: ttt- pid=576, LOG_DEBUG, trying connection to armida.unibw-hamburg.de at Fri Jan  8 19:40:40 1993
lpr: ttt- pid=576, LOG_DEBUG, reserveport bind failed on 1024 - Address already in use at Fri Jan  8 19:40:40 1993
lpr: ttt- pid=576, LOG_DEBUG, reserveport bind failed on 1023 - Address already in use at Fri Jan  8 19:40:40 1993
lpr: ttt- pid=576, LOG_DEBUG, reserveport bind failed on 1022 - Address already in use at Fri Jan  8 19:40:40 1993
lpr: ttt- pid=576, LOG_DEBUG, reserveport bind failed on 1021 - Address already in use at Fri Jan  8 19:40:40 1993
lpr: ttt- pid=576, LOG_DEBUG, reserveport bind failed on 1020 - Address already in use at Fri Jan  8 19:40:40 1993
lpr: ttt- pid=576, LOG_DEBUG, reserveport bind failed on 1019 - Address already in use at Fri Jan  8 19:40:40 1993
lpr: ttt- pid=576, LOG_DEBUG, reserveport bind failed on 1018 - Address already in use at Fri Jan  8 19:40:40 1993
lpr: ttt- pid=576, LOG_DEBUG, reserveport bind failed on 1017 - Address already in use at Fri Jan  8 19:40:40 1993
lpr: ttt- pid=576, LOG_DEBUG, reserveport got socket 1016 at Fri Jan  8 19:40:40 1993


As far as I can trace it, the machine got the connection to the remote
machine and then nothing happens...

What have I done wrong?? 
Perhaps there is other people out there having the same problem? 

My linux box: 
386 16 MHz with 387
10 MB RAM
Linux 0.99pl2
WD8003 ethercard
98 MB HD

Any help is appreciated! Thanx in advance
 
Cheers!

Stef

--
------------------------------------------------------------------------
| Stefano Ianigro                      E-Mail: w_stef@unibw-hamburg.de |
| Institut fuer Informatik                                             |
| Universitaet der Bundeswehr Hamburg     "Ich weiss, dass ich nichts  |
| Holstenhofweg 85                         weiss..." (Sokrates)        |
| D-2000 Hamburg 70, Germany                                           |
| Tel.: 040/6541-2656 oder -3345 (Sekr.)                               |
------------------------------------------------------------------------