Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel mm-sources 2.6.9 ndiswrapper error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
feint
n00b
n00b


Joined: 09 Jun 2004
Posts: 51

PostPosted: Mon Oct 25, 2004 11:46 pm    Post subject: kernel mm-sources 2.6.9 ndiswrapper error Reply with quote

Code:
/root/ndiswrapper-0.11/driver/wrapper.c: In function `ndis_suspend_pci':
/root/ndiswrapper-0.11/driver/wrapper.c:930: error: too many arguments to function `pci_save_state'
/root/ndiswrapper-0.11/driver/wrapper.c: In function `ndis_resume_pci':
/root/ndiswrapper-0.11/driver/wrapper.c:957: error: too many arguments to function `pci_restore_state'
/root/ndiswrapper-0.11/driver/wrapper.c: In function `ndis_init_one_pci':
/root/ndiswrapper-0.11/driver/wrapper.c:1525: error: too many arguments to function`pci_restore_state'
make[3]: *** [/root/ndiswrapper-0.11/driver/wrapper.o] Error 1
make[2]: *** [_module_/root/ndiswrapper-0.11/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.9-mm1'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/ndiswrapper-0.11/driver'
make: *** [all] Error 2


It looks like wrapper.c is trying to pass 2 arguments to function pci_restore_state in i think pci.h in the include for the kernel source. How is this fixed or do I need to wait for the people of ndiswrapper to fix it?
Back to top
View user's profile Send private message
DarwinianCoeus
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 98
Location: Potsdam, NY

PostPosted: Tue Oct 26, 2004 1:16 am    Post subject: Reply with quote

not mm specific, new to 2.6.9 though
_________________
karma++;
Back to top
View user's profile Send private message
feint
n00b
n00b


Joined: 09 Jun 2004
Posts: 51

PostPosted: Tue Oct 26, 2004 3:01 am    Post subject: Reply with quote

not much help. i tried deleting the extra arguments being sent to that function, this allows it to be compiled but then the drivers won't create the device.
Back to top
View user's profile Send private message
DarwinianCoeus
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 98
Location: Potsdam, NY

PostPosted: Tue Oct 26, 2004 3:35 am    Post subject: Reply with quote

probably going to have to wait till new ndiswrapper comes out. that, or instead of removing the new args, figure out what they're supposed to be now and fill them in
_________________
karma++;
Back to top
View user's profile Send private message
fallow
Bodhisattva
Bodhisattva


Joined: 08 Jan 2004
Posts: 2208
Location: Poland

PostPosted: Tue Oct 26, 2004 7:07 am    Post subject: Re: kernel mm-sources 2.6.9 ndiswrapper error Reply with quote

feint wrote:
Code:
/root/ndiswrapper-0.11/driver/wrapper.c: In function `ndis_suspend_pci':
/root/ndiswrapper-0.11/driver/wrapper.c:930: error: too many arguments to function `pci_save_state'
/root/ndiswrapper-0.11/driver/wrapper.c: In function `ndis_resume_pci':
/root/ndiswrapper-0.11/driver/wrapper.c:957: error: too many arguments to function `pci_restore_state'
/root/ndiswrapper-0.11/driver/wrapper.c: In function `ndis_init_one_pci':
/root/ndiswrapper-0.11/driver/wrapper.c:1525: error: too many arguments to function`pci_restore_state'
make[3]: *** [/root/ndiswrapper-0.11/driver/wrapper.o] Error 1
make[2]: *** [_module_/root/ndiswrapper-0.11/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.9-mm1'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/ndiswrapper-0.11/driver'
make: *** [all] Error 2


It looks like wrapper.c is trying to pass 2 arguments to function pci_restore_state in i think pci.h in the include for the kernel source. How is this fixed or do I need to wait for the people of ndiswrapper to fix it?


there are /include/linux/pci.h changes

in ndiswrapper-0.11/driver/wrapper.c try to change
Code:

pci_save_state(pdev,handle->pci_state);
to
pci_save_state(pdev);

and
Code:
 
pci_restore_state(pdev,handle->pci_state); or  pci_restore_state(pdev,NULL);
to:
pci_restore_state(pdev);

and install by hand
greetings
_________________
"Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived" J-L. Picard ;)
Back to top
View user's profile Send private message
DarwinianCoeus
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 98
Location: Potsdam, NY

PostPosted: Tue Oct 26, 2004 4:38 pm    Post subject: Reply with quote

my error is actually different

Code:
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692:63: macro "kthread_run" requires 5 arguments, but only 3 given
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c: In function `PsCreateSystemThread':
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692: error: `kthread_run' undeclared (first use in this function)
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692: error: (Each undeclared identifier is reported only once
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692: error: for each function it appears in.)
make[3]: *** [/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.o] Error 1
make[2]: *** [_module_/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.9-nitro1'

_________________
karma++;
Back to top
View user's profile Send private message
yamakawa
Guru
Guru


Joined: 28 Jul 2003
Posts: 340

PostPosted: Tue Oct 26, 2004 6:45 pm    Post subject: Reply with quote

DarwinianCoeus wrote:
my error is actually different

Code:
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692:63: macro "kthread_run" requires 5 arguments, but only 3 given
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c: In function `PsCreateSystemThread':
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692: error: `kthread_run' undeclared (first use in this function)
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692: error: (Each undeclared identifier is reported only once
/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692: error: for each function it appears in.)
make[3]: *** [/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.o] Error 1
make[2]: *** [_module_/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.9-nitro1'

same here with plain 2.6.9
Back to top
View user's profile Send private message
SPY_jmr1
n00b
n00b


Joined: 02 Jan 2004
Posts: 62

PostPosted: Wed Oct 27, 2004 1:02 am    Post subject: Reply with quote

doesn't really apply to ndiswrapper, but the same error is also fixed in ipw2100 package, thanks guys!
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Sun Oct 31, 2004 5:53 pm    Post subject: Re: kernel mm-sources 2.6.9 ndiswrapper error Reply with quote

fallow wrote:

and install by hand


Fallow's advice is good, those line changes seem to fix the compile error. However, you can get around the install by hand requirement with a little trick:

(1) emerge ndiswrapper, but hit ctrl-z (backgrounding the process) once the unpack stage is complete
(2) make the changes to the source file
(3) type fg to foreground the emerge process again. It should continue, using the edited sources, and carry on with the install
Back to top
View user's profile Send private message
yamakawa
Guru
Guru


Joined: 28 Jul 2003
Posts: 340

PostPosted: Mon Nov 01, 2004 6:48 pm    Post subject: Reply with quote

I ended up with using CVS version. It compiled w/o trouble.
I made a tar ball of it, replacing the tar ball in the portage/distfiles and made appropriate changes in the digest file.
Then emerged the CVS version as the newest. :)
Back to top
View user's profile Send private message
Legoguy
Apprentice
Apprentice


Joined: 22 Dec 2003
Posts: 166
Location: Edmonton, Alberta, Canada

PostPosted: Mon Nov 01, 2004 7:28 pm    Post subject: Reply with quote

Yes, use the CVS version. It works. Glad I found that it did too... otherwise i would be stuck w/o internet on this laptop...
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Mon Nov 01, 2004 7:47 pm    Post subject: Reply with quote

yamakawa wrote:
I ended up with using CVS version. It compiled w/o trouble.
I made a tar ball of it, replacing the tar ball in the portage/distfiles and made appropriate changes in the digest file.
Then emerged the CVS version as the newest. :)


Shame on you for lying to portage. That's what an overlay is for. :-)
Back to top
View user's profile Send private message
feint
n00b
n00b


Joined: 09 Jun 2004
Posts: 51

PostPosted: Tue Nov 02, 2004 1:11 am    Post subject: Reply with quote

Ndiswrapper works with the gentoo-dev-sources. I just wanted the mm-sources for Reiser4 support, but I just patched the gentoo-dev-sources. Thanks for the help though.
Back to top
View user's profile Send private message
yamakawa
Guru
Guru


Joined: 28 Jul 2003
Posts: 340

PostPosted: Wed Nov 10, 2004 4:55 pm    Post subject: Reply with quote

aja wrote:
yamakawa wrote:
I ended up with using CVS version. It compiled w/o trouble.
I made a tar ball of it, replacing the tar ball in the portage/distfiles and made appropriate changes in the digest file.
Then emerged the CVS version as the newest. :)


Shame on you for lying to portage. That's what an overlay is for. :-)


Of course I did so in overlay tree....FYI. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum