Make sure you have kernel-headers, and kernel-devel installed. After you do, try compiling again.