Printer(lp) problem

Anthony DeStefano (destefano@usa.net)
Tue, 24 Mar 1998 22:28:01 -0500 (EST)


I have a problem printing with kernel 2.1.90 and just found out today when
I went to print out a paper.

I have the parallel port, pc hardware, and printer drivers compiled as
modules and have the appropriate changes made in /etc/conf.modules (the
alias parport_lowlevel parport_pc). The same setup has worked flawlessly
since I began using the 2.1 kernels with 2.1.76.

I got the following in my logs when I would go to print "lp:
driver loaded but no devices found" and a lsmod revealed that parport.o
and lp.o was loaded but parport_pc.o was not loaded. What I suspected
(and this was digging deep into what I *think* is suppose to happen) is
that the lp module was being loaded before the parport_pc module. So I
removed both modules and loaded them all by hand. Parport.o first, then
parport_pc.o and finally lp.o. And it worked!

I began to dig deeper. I tried looking through the source but didn't find
anything (actually I didn't understand most of it) but then I found a fix
(an ugly one I might add). I edited /lib/modules/2.1.90/modules.dep and
changed lp.o to depend on parport_pc.o instead of parport.o. It works but
I believe it isn't the correct fix since it's going to be overwritten by
depmod.

Now finally my question(s), is this an actual bug in the lp code or is
this because of kmod? Is my "fix" a legitimate way of fixing this or is
it just a bad hack?

-= Anthony DeStefano =- PGP key avalible from destefano@usa.net
<destefano@usa.net> with subject "get pgp key"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu