After removing the entire /usr/src/modules dir and unpacking lirc-modules-source again, I got the module to compile against the correct kernel version, so I figure it was a problem that I installed using debian/rules the first time (for 2.6.17) and with make-kpkg the second time (2.6.17.4). Kind Regards Daniel S.