Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19
Hi, I downloaded the ndiswrapper tarball from one of the mirrors provided by sourceforge. When trying to make the app, I get the error ntoskernel.c: In function `wakeup_event': ntoskernel.c:826: error: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    99

    Error compiling ndiswrapper


    Hi,

    I downloaded the ndiswrapper tarball from one of the mirrors provided by sourceforge.

    When trying to make the app, I get the error

    ntoskernel.c: In function `wakeup_event':
    ntoskernel.c:826: error: `task_t' undeclared (first use in this function)

    Make fails and ofcourse install too..

    Is this because of a bug in the source?
    Any idea's? Maybe download the tarball from another server?
    I have never compiled a Linux app before, so I'm pretty green..

    Thanks,

    Marinus


    bash-3.00# ls
    AUTHORS INSTALL README driver ndiswrapper.spec version
    ChangeLog Makefile debian ndiswrapper.8 utils
    bash-3.00# make distclean
    make -C driver clean
    make[1]: Entering directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/driver'
    rm -rf ndiswrapper.o ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o pe_linker.o proc.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o\
    divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
    make[1]: Leaving directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/driver'
    make -C utils clean
    make[1]: Entering directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/utils'
    rm -f *~ *.o loadndisdriver
    make[1]: Leaving directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/utils'
    rm -f *~
    rm -fr ndiswrapper-1.2 ndiswrapper-1.2.tar.gz *.deb patch-stamp
    make -C driver distclean
    make[1]: Entering directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/driver'
    rm -rf ndiswrapper.o ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o pe_linker.o proc.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o\
    divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
    rm -f *_exports.h .\#* x86_64_stubs.h
    make[1]: Leaving directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/driver'
    make -C utils distclean
    make[1]: Entering directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/utils'
    rm -f *~ *.o loadndisdriver
    rm -f .\#*
    make[1]: Leaving directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/utils'
    rm -f .\#*
    bash-3.00# make
    make -C driver
    make[1]: Entering directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/driver'
    cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.29/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.29/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o hal.o hal.c
    cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.29/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.29/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o iw_ndis.o iw_ndis.c
    cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.29/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.29/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o loader.o loader.c
    loader.c: In function `ndiswrapper_add_pci_device':
    loader.c:211: warning: implicit declaration of function `pci_set_consistent_dma_mask'
    cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.29/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.29/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o misc_funcs.o misc_funcs.c
    cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.29/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.29/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o ndis.o ndis.c
    cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.29/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.29/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o ntoskernel.o ntoskernel.c
    ntoskernel.c: In function `wakeup_event':
    ntoskernel.c:826: error: `task_t' undeclared (first use in this function)
    ntoskernel.c:826: error: (Each undeclared identifier is reported only once
    ntoskernel.c:826: error: for each function it appears in.)
    ntoskernel.c:826: error: parse error before ')' token
    make[1]: *** [ntoskernel.o] Error 1
    make[1]: Leaving directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/driver'
    make: *** [all] Error 2
    bash-3.00# make install
    make -C driver install
    make[1]: Entering directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/driver'
    cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.29/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.29/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o ntoskernel.o ntoskernel.c
    ntoskernel.c: In function `wakeup_event':
    ntoskernel.c:826: error: `task_t' undeclared (first use in this function)
    ntoskernel.c:826: error: (Each undeclared identifier is reported only once
    ntoskernel.c:826: error: for each function it appears in.)
    ntoskernel.c:826: error: parse error before ')' token
    make[1]: *** [ntoskernel.o] Error 1
    make[1]: Leaving directory `/root/Desktop/Extract/ndiswrapper/ndiswrapper-1.2/driver'
    make: *** [install] Error 2
    bash-3.00#
    bash-3.00#

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Unless somebody at ndiswrapper forgot to include <linux/sched.h>, I'd say the problem is that you don't have linux-libc-headers and/or a kernel source directory on your machine.

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Posts
    99
    Hi Donald (I assume ),

    that is what I am thinking too, but strangely I succesfully linked the source (it is included I think) with

    ln -s ....

    Hmm....

    I guess I'll look at it again tomorrow. This is the last thing I need to do to finalize setting up Slackware.

    Thanks,

    Marinus.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Do you have linux-libc-headers?

  6. #5
    Just Joined!
    Join Date
    Aug 2005
    Posts
    99
    How can I check that? Thanks for the help, I'll stay with it..

  7. #6
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    which distribution?

  8. #7
    Just Joined!
    Join Date
    Aug 2005
    Posts
    99
    Ok yea sorry..

    Slackware 10.1

  9. #8
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Code:
    pkgtool

  10. #9
    Just Joined!
    Join Date
    Aug 2005
    Posts
    99
    Okay, I checked the packages and the only linux- packages that I have are

    linux-faqs- ... and
    linux-howtos- ...

    There are various libXXXX packages but nothing that resembles

    linux-libc-headers..

    Should I download them?

  11. #10
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Well first, do:
    Code:
    find /usr/include/linux -type f -iname sched.h 2>/dev/null

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •