View previous topic :: View next topic |
Author |
Message |
feint n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Jun 2004 Posts: 51
|
Posted: Mon Oct 25, 2004 11:46 pm Post subject: kernel mm-sources 2.6.9 ndiswrapper error |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
DarwinianCoeus Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/13526606864027ead492ac0.gif)
Joined: 29 Sep 2003 Posts: 98 Location: Potsdam, NY
|
Posted: Tue Oct 26, 2004 1:16 am Post subject: |
|
|
not mm specific, new to 2.6.9 though _________________ karma++; |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
feint n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Jun 2004 Posts: 51
|
Posted: Tue Oct 26, 2004 3:01 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
DarwinianCoeus Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/13526606864027ead492ac0.gif)
Joined: 29 Sep 2003 Posts: 98 Location: Potsdam, NY
|
Posted: Tue Oct 26, 2004 3:35 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fallow Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/14033995244ba2b670a9323.gif)
Joined: 08 Jan 2004 Posts: 2208 Location: Poland
|
Posted: Tue Oct 26, 2004 7:07 am Post subject: Re: kernel mm-sources 2.6.9 ndiswrapper error |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
DarwinianCoeus Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/13526606864027ead492ac0.gif)
Joined: 29 Sep 2003 Posts: 98 Location: Potsdam, NY
|
Posted: Tue Oct 26, 2004 4:38 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
yamakawa Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/simpsons_bart.gif)
Joined: 28 Jul 2003 Posts: 340
|
Posted: Tue Oct 26, 2004 6:45 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
SPY_jmr1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Jan 2004 Posts: 62
|
Posted: Wed Oct 27, 2004 1:02 am Post subject: |
|
|
doesn't really apply to ndiswrapper, but the same error is also fixed in ipw2100 package, thanks guys! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
aja l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/c0c5800a3dd48f9248a61.jpg)
Joined: 26 Aug 2002 Posts: 705 Location: Edmonton, Canada
|
Posted: Sun Oct 31, 2004 5:53 pm Post subject: Re: kernel mm-sources 2.6.9 ndiswrapper error |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
yamakawa Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/simpsons_bart.gif)
Joined: 28 Jul 2003 Posts: 340
|
Posted: Mon Nov 01, 2004 6:48 pm Post subject: |
|
|
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. ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Legoguy Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/56257404841a8ce8356fa8.png)
Joined: 22 Dec 2003 Posts: 166 Location: Edmonton, Alberta, Canada
|
Posted: Mon Nov 01, 2004 7:28 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
aja l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/c0c5800a3dd48f9248a61.jpg)
Joined: 26 Aug 2002 Posts: 705 Location: Edmonton, Canada
|
Posted: Mon Nov 01, 2004 7:47 pm Post subject: |
|
|
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. ![Smile :)](images/smiles/icon_smile.gif) |
Shame on you for lying to portage. That's what an overlay is for. ![Smile :-)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
feint n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Jun 2004 Posts: 51
|
Posted: Tue Nov 02, 2004 1:11 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
yamakawa Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/simpsons_bart.gif)
Joined: 28 Jul 2003 Posts: 340
|
Posted: Wed Nov 10, 2004 4:55 pm Post subject: |
|
|
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. ![Smile :)](images/smiles/icon_smile.gif) |
Shame on you for lying to portage. That's what an overlay is for. ![Smile :-)](images/smiles/icon_smile.gif) |
Of course I did so in overlay tree....FYI. ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|