plustek@linuxhacker.org

plustek@linuxhacker.org


Subject: Re: Trouble making and installing driver with Mandrake 8.0
From: Dave Croal
Date: Fri, 08 Jun 2001 20:14:49 GMT

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<



On 6/8/01, 11:13:55 AM, kevin <kjsisson@bellsouth.net> wrote regarding Re: 
Trouble making and installing driver with Mandrake 8.0:


> Dave Croal wrote:
> >
> > I have been using my OpticPro 4800 with your Plustek driver under various
> > 2.2.x kernels with no problems at all for over a year.
> >
> > Recently, having upgraded to Mandrake 8.0, kernel 2.4.3, I tried to
> > install the Plustek driver but am now getting problems.
> >
> > While making the driver I get the following repeated many times:
> >
> > h/plustek types.h:214:79: warning: no newline at end of file
> > In file included from h/plustek scan.h:169,
> >                  from ./src/p9636.c:53:
> > h/plustek procs.h:228:79: warning: no newline at end of file
> > In file included from h/plustek scan.h:166,
> >                  from ./src/procfs.c:35:
> > h/plustek types.h:212:8: warning: extra tokens at end of #endif directive
> >
> > When I have installed and then try to load the driver I get:
> >
> > /sbin/modprobe pt drv || exit 1
> > /lib/modules/2.4.3-20mdk/misc/pt drv.o: unresolved symbol
> > proc root Rac3cc84f
> > /lib/modules/2.4.3-20mdk/misc/pt drv.o: unresolved symbol
> > create proc entry R0282f4a0
> > /lib/modules/2.4.3-20mdk/misc/pt drv.o: unresolved symbol
> > remove proc entry R2327c514
> > /lib/modules/2.4.3-20mdk/misc/pt drv.o: unresolved symbol
> > register chrdev R52ce47ef
> > /lib/modules/2.4.3-20mdk/misc/pt drv.o: unresolved symbol
> > proc mkdir R593a2541
> > /lib/modules/2.4.3-20mdk/misc/pt drv.o: insmod
> > /lib/modules/2.4.3-20mdk/misc/pt drv.o failed
> > /lib/modules/2.4.3-20mdk/misc/pt drv.o: insmod pt drv failed
> > make: *** [load] Error 1
> >
> > I have tried all of plustek-module-0 36 38.tar.gz,
> > plustek-module-0 37 23.tar.gz and plustek-module-0 39 3.tar.gz with the
> > appropriate Sane versions but the result is always the same.
> >

> I am using Mandrake 8.0 also, with the 0.37-25 driver. I also get
> the warnings during compile (Mandrake 8.0 uses 2.96-0.48 gcc) but
> the module loads OK and I can scan. Do you have the parport
> modules loaded? ( modprobe parport pc)

>       Kevin


I checked that parport pc is loaded. 
Proc fs is enabled and mounted too.

I don't get unresolved symbols today, now I get:

[root@croalnotebook plustek driver]# make load
/sbin/modprobe pt drv || exit 1
/lib/modules/2.4.3-20mdk-win4lin/misc/pt drv.o: init module: Success
Hint: insmod errors can be caused by incorrect module parameters, 
including invalid IO or IRQ parameters
/lib/modules/2.4.3-20mdk-win4lin/misc/pt drv.o: insmod 
/lib/modules/2.4.3-20mdk-win4lin/misc/pt drv.o failed
/lib/modules/2.4.3-20mdk-win4lin/misc/pt drv.o: insmod pt drv failed
make: *** [load] Error 1

IIRC it is after a reboot that the  unresolved symbols happen. BTW I did 
update my modules.conf and did run depmod.

I also noticed that make load fails to create the /dev/pt drv* nodes, 
guess it doesn't make it that far.

Are you willing to send me a copy of your pt drv.o to try? I am running 
gcc 2.96,  kernel 2.4.3mdk stock on an AMD K6-450 (i586).

Am willing to try any and all legal suggestions. Thanks for your help.

Dave Croal

plustek@linuxhacker.org