lpr and netstat problem with 1.3.75 kernel

Hsin-Yu Sidney Li LIH at cliffy.polaroid.com
Thu Mar 28 01:21:28 EST 1996


Hi,

I have recently upgraded to kernel version 1.3.75, libc-5.2.18 (ELF)
and libc-4.7.5.  I also upgraded the psproc package to fix the problem
with top, w, and friends.  It now appears, however, that netstat and
lpr/lpd are also having problems.  With lpr, when I try to print
larger files to a network printer (via a 10Base-T ethernet connect),
the printer hangs, and lpr never finishes.  The printer (an Apple
LaserWriter) keeps blinking, while lpq shows the file still in the
queue.  At this point, I kill the print job with lprm, but the printer
is stuck, and I have to go turn off the power to reset it.  I tried to
print the same files from another linux box (to the same printer), and
it printed without a glitch.  The other linux box runs kernel version
1.2.13, with libc-5.2.18 and libc-4.5.26.  

Another problem is netstat.  When I run netstat, I get something like

Active Internet connections
Proto Recv-Q Send-Q Local Address          Foreign Address	  (State)       User
tcp       -1      0 optik.polaroid.com:22  meliorate.polaroi:1023 ESTABLISHED   root       
Active UNIX domain sockets
Proto RefCnt Flags      Type            State           Path

(sorry for the long line) without the usual

unix  2      [ ]        SOCK_STREAM     CONNECTED       /dev/log
unix  2      [ ]        SOCK_STREAM     CONNECTED       
unix  1      [ ACC ]    SOCK_STREAM     LISTENING       /dev/printer
unix  1      [ ACC ]    SOCK_STREAM     LISTENING       /dev/log

...


stuff that follows.  I suspect that the two problems are related.

The netstat binary on both systems are a.out, by the way, and they are
linked to the libc-4 library.  I tried changing back to libc-4.5.26,
but this didn't make any difference.

I tried to get the source file for the netstat (in the
net-tools-1.1.79 package), but I could not get it to compile
correctly.  It took me a while to figure out 

	Configure.sh < config.in

(didn't seem to be mentioned in the documents).  When I try to compile
(gcc 2.7.2), it bombs on arp.c, with warnings about struct arpreq.  I
can force netstat to compile (by typing "make netstat"), but I end up
with the same behavior as before (namely, that the active UNIX domain
sockets part does not show up).  The Slackware netstat binary
distribution is even worse.

I have had even less luck with compiling lpr and lpd.

Any suggestions?  I notice that 1.3.75 is not the latest kernel
version.  Would upgrading to the latest one help?

Sidney Li
lih at polaroid.com








More information about the Discuss mailing list