Menu

Compiling under kernel 2.6.32

farge
2009-12-07
2012-10-06
  • farge

    farge - 2009-12-07

    Some people (myself included) have had issues compiling ndiswrapper under
    kernels 2.6.31 and 2.6.32 due to an error about an "implicit declaration of
    function 'cmpxchg8b'" in ntoskernel.h.

    The declaration of the function 'cmpxchg8b' occurs within an if...endif
    statement between lines 878 and 890 of ntoskernel.h. Changing the value of
    KERNEL_VERSION in this if statement to a version above your current operating
    kernel allows ndiswrapper to compile. However, I have found that
    removing/commenting out the if and endif lines (just lines 878 and 890) also
    enables ndiswrapper to be compiled, and would not have to be changed with
    every kernel update. Does this if...endif statement serve any purpose that
    would warrant keeping it as is?

     
  • pol hallen

    pol hallen - 2010-01-23

    Hi and thanks, I tried your way to compile ndis1.55 to kernel 2.6.32.4 but I'v
    same error message:
    error: implicit declaration of function ‘cmpxchg8b’

    can U send me your ntoskernel.h file?

    thanks! :)

    Pol

    polhallen@fuckaround.org

     

Log in to post a comment.