plustek: Thread: Don't know how to build te module


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Don't know how to build te module
From: Georg E Schneider ####@####.####
Date: 23 Apr 2005 17:35:55 +0100
Message-Id: <426A6A6A.60208@georgs.org>

I'm using sane-backends-1.0.15 and I want to run my primax 4800 direct 
(parport) scanner on FC3
when I use the script (MakeModule.sh) to build the modules I get the errors:

make: Entering directory `/lib/modules/2.6.11-1.14_FC3/build'
  CC [M]  /usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.o
/usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.c: In function 
`dacP98ReadShadingScanLine':
/usr/doc/sane-1.0.15/plustek/build/plustek-pp_procs.h:92: nicht 
implementiert: »inline« beim Aufruf von »MiscStartTimer« gescheitert: 
function body not available
/usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.c:526: nicht 
implementiert: von hier aufgerufen
/usr/doc/sane-1.0.15/plustek/build/plustek-pp_procs.h:93: nicht 
implementiert: »inline« beim Aufruf von »MiscCheckTimer« gescheitert: 
function body not available
/usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.c:530: nicht 
implementiert: von hier aufgerufen
make[1]: *** [/usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.o] Fehler 1
make: *** [_module_/usr/doc/sane-1.0.15/plustek/build] Fehler 2
make: Leaving directory `/lib/modules/2.6.11-1.14_FC3/build

greetings from Austria
Georg E Schneider

-- 


pub  1024D/7A47E091 2005-02-16 Georg E Schneider  ####@####.####
  Schl.-Fingerabdruck = 2C44 D66F B122 D141 1A35  96E7 2FF3 CBA8 7A47 E091


Subject: Re: Don't know how to build te module
From: Gerhard Jaeger ####@####.####
Date: 24 Apr 2005 10:19:44 +0100
Message-Id: <200504241131.44642.gerhard@gjaeger.de>

On Saturday 23 April 2005 17:31, Georg E Schneider wrote:
> I'm using sane-backends-1.0.15 and I want to run my primax 4800 direct
> (parport) scanner on FC3
> when I use the script (MakeModule.sh) to build the modules I get the
> errors:
>
> make: Entering directory `/lib/modules/2.6.11-1.14_FC3/build'
>   CC [M]  /usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.o
> /usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.c: In function
> `dacP98ReadShadingScanLine':
> /usr/doc/sane-1.0.15/plustek/build/plustek-pp_procs.h:92: nicht
> implementiert: »inline« beim Aufruf von »MiscStartTimer« gescheitert:
> function body not available
> /usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.c:526: nicht
> implementiert: von hier aufgerufen
> /usr/doc/sane-1.0.15/plustek/build/plustek-pp_procs.h:93: nicht
> implementiert: »inline« beim Aufruf von »MiscCheckTimer« gescheitert:
> function body not available
> /usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.c:530: nicht
> implementiert: von hier aufgerufen
> make[1]: *** [/usr/doc/sane-1.0.15/plustek/build/plustek-pp_dac.o] Fehler 1
> make: *** [_module_/usr/doc/sane-1.0.15/plustek/build] Fehler 2
> make: Leaving directory `/lib/modules/2.6.11-1.14_FC3/build
>
> greetings from Austria
> Georg E Schneider

Hi,

this is unusual! I think it's a compiler issue. Could you please
send the output of:
gcc --version

Thanks
Gerhard
Subject: Re: Don't know how to build te module
From: Gerhard Jaeger ####@####.####
Date: 25 Apr 2005 08:20:34 +0100
Message-Id: <200504250919.56517.gerhard@gjaeger.de>

On Sunday 24 April 2005 13:40, Georg E Schneider wrote:
> Gerhard Jaeger schrieb:
> 
> >On Saturday 23 April 2005 17:31, Georg E Schneider wrote:
> >  
> >
> >Hi,
> >
> >this is unusual! I think it's a compiler issue. Could you please
> >send the output of:
> >gcc --version
> >
> >Thanks
> >Gerhard
> >  
> >
> Here is the output
> gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
> Copyright (C) 2004 Free Software Foundation, Inc.
> Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
> gibt KEINE Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE 
> ZWECKE.
> 
> but I've seen I could try with gcc4.
> But I think it will not reslove the problem.
> 
> I tried it,  it's the same.
> and the version:
> gcc4 (GCC) 4.0.0 20050406 (Red Hat 4.0.0-0.41.fc3)
> Copyright (C) 2005 Free Software Foundation, Inc.
> Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
> gibt KEINE Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE ZWECKE
> 
> greetings and thanks
> Georg

That's what I've expected. The 3.4 series seem to have problems with inlines
or in the end the way the are defined.
Please try the following:
Open the file sane/backend/plustek-pp_procs.h
and replace the line (should be line number 81)
# define _INL	inline
by
# define _INL

And try again, tell us please the result!
Thanx
Gerhard







Subject: Re: Don't know how to build te module
From: Georg E Schneider ####@####.####
Date: 25 Apr 2005 19:56:10 +0100
Message-Id: <426D2CB5.6080602@georgs.org>

Gerhard Jaeger schrieb:

> ...
>
># define _INL	inline
>by
># define _INL
>
>And try again, tell us please the result!
>Thanx
>Gerhard
>
>  
>
So done compiles clean, but  see the demsg:

snip
--
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]
pt_drv : driver version 0.43-5
pt_drv : no device(s) detected, (-9020)
*********************************************
pt_drv: init_module()
pt_drv : driver version 0.43-5
ProcFsInitialize()
ptdrvInit(0)
Init settings done
ScanData = 0xde198000
Using slow I/O
Requested port at 0x378
misc_attach
Requested port (0x378) found
Port mode reported: (0x0043)
Port for device 0 registered
ptdrvOpen(port=0x378)
Try to claim the parport
parport-modi: SPP PS/2 PS/2(ECP)
Using SPP-mode
Trying faster mode...
Attempting to set PS2 mode.
Port is set to PS2 bidirectional mode.
Starting Scanner-Autodetection
************ DETECTP48xx ************
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
P48xxInitAsic()
DacInitialize()
ImageInitialize()
IOFuncInitialize()
IOInitialize()
* using readfunction >fnBiDirRead<
MotorInitialize()
Dataport = 0x0378
Ctrlport = 0x037a
ResetPort()
Test 0x55
Test 0xAA
Compare data=0x78 and status=0x8, port=0x378
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
detectScannerConnection() returns -9020.
************* ASIC9800x *************
ResetPort()
IOInitialize()
* using readfunction >fnBiDirRead<
ASIC = 0xF0
Unknown ASIC-ID
*** DETECTION DONE, result: -9020 ***
ptdrvClose()
MiscRestorePort()
Releasing parport
ptdrvShutdown()
cleanup device 0
Port unregistered
misc_detach
ProcFsShutdown()
pt_drv: proc del 'info' root='pt_drv'
pt_drv: proc del 'pt_drv' root='/proc'
pt_drv : no device(s) detected, (-9020)
---------------------------------------------
*********************************************
pt_drv: init_module()
pt_drv : driver version 0.43-5
ProcFsInitialize()
ptdrvInit(0)
Init settings done
ScanData = 0xde830000
Using slow I/O
Requested port at 0x378
misc_attach
Requested port (0x378) found
Port mode reported: (0x0043)
Port for device 0 registered
ptdrvOpen(port=0x378)
Try to claim the parport
parport-modi: SPP PS/2 PS/2(ECP)
Using SPP-mode
Trying faster mode...
Attempting to set PS2 mode.
Port is set to PS2 bidirectional mode.
Starting Scanner-Autodetection
************ DETECTP48xx ************
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
P48xxInitAsic()
DacInitialize()
ImageInitialize()
IOFuncInitialize()
IOInitialize()
* using readfunction >fnBiDirRead<
MotorInitialize()
Dataport = 0x0378
Ctrlport = 0x037a
ResetPort()
Test 0x55
Test 0xAA
Compare data=0x78 and status=0x8, port=0x378
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
p48xxReadWriteTest()
Found a 96001 ASIC at Reg 0x13
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
p48xxCheck4800Memory()
Error in memory test at pos 256 (0 != 255)
detectScannerConnection() returns -9020.
************* ASIC9800x *************
ResetPort()
IOInitialize()
* using readfunction >fnBiDirRead<
ASIC = 0xF0
Unknown ASIC-ID
*** DETECTION DONE, result: -9020 ***
ptdrvClose()
MiscRestorePort()
Releasing parport
ptdrvShutdown()
cleanup device 0
Port unregistered
misc_detach
ProcFsShutdown()
pt_drv: proc del 'info' root='pt_drv'
pt_drv: proc del 'pt_drv' root='/proc'
pt_drv : no device(s) detected, (-9020)
---------------------------------------------

end of debug

pt_drv exists:
ls -al /dev/pt_drv
crw-r--r--  1 root root 40, 0 25. Apr 2005  /dev/pt_drv

I tried with different pp-bios-modi it was always the same.
Scanner is a primax 4800 direct (only parallel-port)

if you want to know more about the scanner see at the picture:
http://www.georgs.org/00029.jpg

-- 

pub  1024D/7A47E091 2005-02-16 Georg E Schneider ####@####.####
Schl.-Fingerabdruck = 2C44 D66F B122 D141 1A35  96E7 2FF3 CBA8 7A47 E091



[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.