I have a feeling that this is (probably) something really stupid, but …
I’m trying to build zaptel-1.2.5 (downloaded from asterisk) on a Fedora core 5 system. I think that this may have something to do with where the kernel links are pointing (currently /usr/src/redhat/BUILD/kernel-2.6.15). I had to create the /usr/src/linux-2.6 link (which points there), and had to change the /lib/modules/2.6.15-1.2054_FC5/build & ./source to point to /usr/src/redhat/BUILD/kernel-2.6.15 as well (the out-of-the-box links were broken). The kernel sources were installed from RPM.
When zaptel is making it ends with:
make -C /lib/modules/2.6.15-1.2054_FC5/build SUBDIRS=/usr/src/zaptel-1.2.5 XPPMOD= modules
make: Entering directory '/usr/src/redhat/BUILD/kernel-2.6.15’
make: *** No rule to make target ‘modules’. Stop.
make Leaving directory '/usr/src/redhat/BUILD/kernel-2.6.15’
make: *** [linux26] Error 2
I don’t see any other errors or warning messages in the process.
I had similar problems with the same kernel version and Fedora Core 5 (2.6.15 has typo in the kernel). Although it may not be the most efficient solution, I said bye-bye to Fedora and welcome to CentOS (version 4.2) that installs kernel headers during installation process of the OS. That way I was able to install zaptel flawlessly…