Re: 2.1.33 compile error will parport

A Guy called Tyketto (tyketto@corona.unomaha.edu)
Fri, 11 Apr 1997 02:07:22 -0500 (CDT)


> init/main.o(.data+0xd8): undefined reference to `parport_setup'
> drivers/block/block.a(genhd.o): In function `device_setup':
> genhd.o(.text+0x8e2): undefined reference to `pnp_parport_init'
> drivers/char/char.a(lp.o): In function `lp_write':
> lp.o(.text+0xc6): undefined reference to `parport_claim'
> lp.o(.text+0x889): undefined reference to `parport_release'
> drivers/char/char.a(lp.o): In function `lp_wakeup':
> lp.o(.text+0xe94): undefined reference to `parport_claim'
> drivers/char/char.a(lp.o): In function `lp_init':
> lp.o(.text+0xf11): undefined reference to `parport_enumerate'
> lp.o(.text+0xf77): undefined reference to `parport_register_device'
> make: *** [vmlinux] Error 1

I received the same problem when compiling paralell printer support as
a module, and parport as a module. as a fix, I also included PNP support, and
made the following patch. Someone else also made the same patch, and it works
the same for us. give it a shot, and tell what you get (BTW, as with him, this
is my first patch posted to the list, even though it's a small one, so I feel
happy about finally helping out! :) )!

BL.
--snip--

--- linux/drivers/pnp/parport_share.c.orig Fri Apr 11 01:27:29 1997
+++ linux/drivers/pnp/parport_share.c Fri Apr 11 01:27:45 1997
@@ -64,7 +64,7 @@
if (new.dma >= 0) {
if (request_dma(new.dma, new.name)) {
printk(KERN_INFO "%s: unable to claim DMA %d\n",
- new.name, new..dma);
+ new.name, new.dma);
release_region(new.base, new.size);
if( new.modes & PARPORT_MODE_ECR )
release_region(new.base+0x400, 3);

-- 
Brad Littlejohn                         | Email:        tyketto@unomaha.edu
Unix Systems Administrator,             |         bradl@otto.bf.rmit.edu.au
WebMaster, NewsMaster.. Smeghead! :)    |   http://www.unomaha.edu/~tyketto
    PGP: 1024/E9DF4D85 67 6B 33 D0 B9 95 F4 37  4B D1 CE BD 48 B0 06 93