I'm having the same error on an x86 processor. Usually the fix is this:
Code:
# apt-get install linux-headers-$(uname -r) && ln -sf /usr/src/linux-headers-$(uname -r) /usr/src/linux
m-a update && m-a prepare
ln -s /usr/src/linux-headers-2.6.39.4 /lib/modules/2.6.39.4
But I'm still getting that error. I looked and discovered there's no Build directory in my kernel headers so there's nothing really there to build a module with. That's definitely part of the problem, but why I don't know.
I too have dkms installed already.
Code:
# apt-get install dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version.