Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Make Error

Help
Anonymous
2009-12-13
2012-10-06

  • Anonymous
    2009-12-13

    Fedora 12 trying to get my Linksys WUSB54GS v2 to work properly. I can see
    networks just never connects. Tried to install ndiswrapper but get the below
    error when I enter make:

    make -C driver
    make: Entering directory /home/xxxxx/Downloads/ndiswrapper-1.55/driver' make -C /usr/src/kernels/2.6.31.6-166.fc12.i686.PAE M=/home/xxxxx/Downloads/ndiswrapper-1.55/driver make: Entering directory/usr/src/kernels/2.6.31.6-166.fc12.i686.PAE'
    CC /home/xxxxx/Downloads/ndiswrapper-1.55/driver/crt.o
    In file included from /home/xxxxx/Downloads/ndiswrapper-1.55/driver/crt.c:16:
    /home/xxxxx/Downloads/ndiswrapper-1.55/driver/ntoskernel.h: In function
    ‘PushEntrySList’:
    /home/xxxxx/Downloads/ndiswrapper-1.55/driver/ntoskernel.h:905: error:
    implicit declaration of function ‘cmpxchg8b’
    make: Error 1
    make:
    Error 2
    make: Leaving directory /usr/src/kernels/2.6.31.6-166.fc12.i686.PAE' make: *** Error 2 make: Leaving directory/home/xxxxx/Downloads/ndiswrapper-1.55/driver'
    make: *** Error 2

     
  • Thomas Plonka
    Thomas Plonka
    2010-01-21

    Hello,
    I have exactly the same error message with Fedora 12,
    I think, that our kernel is too new, because I read in the changelog file,
    that the problems with
    kernel-2.6.27 and kernel-2.6.28 are fixed,
    and we have a 2.6.31.

    Regards
    Plueschinger

     
  • Thomas Plonka
    Thomas Plonka
    2010-01-21

    Hello,
    The Fedora 12 problem is solved.
    For all with a greater kernel-version number than 2.6.31
    I found a way to compile ndiswrapper.
    The problem is not /driver/ntoskernel.h line 905, it is some lines before.
    If you change line 878 from:

    if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)

    to:

    if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)

    ndiswrapper compiles without any problems.
    Alternativ you can also make a commentar out of this line.
    /#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)/
    but you have to do the same with line 890:
    /#endif/

    Regards
    Plueschinger
    BTW I have a selfcompiled 2.6.32.1-kernel