ZAPTEL make issue (Fedora Core 5)

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[1]: Entering directory '/usr/src/redhat/BUILD/kernel-2.6.15’
make[1]: *** No rule to make target ‘modules’. Stop.
make[1] 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.


Did you solve this issue? After upgrading FC5 with “yum update kernel” and “yum update kernel-dev” to go from 2.6.15 to 2.6.17, and trying to compile Zaptel, I get this:

[root@localhost asterisk]# ls -al
total 11132
drwxr-xr-x 4 root root     4096 Jun 28 22:22 .
drwxr-xr-x 5 root root     4096 Jun 28 22:20 ..
-rw-r--r-- 1 root root 10568287 Jun 28 22:16 asterisk-
drwxr-xr-x 2 1000 1000     4096 Jun 28 22:21 libpri-1.2.3
-rw-r--r-- 1 root root    76348 Jun 28 22:17 libpri-1.2.3.tar.gz
drwxr-xr-x 5 1000 1000     4096 May 31 00:20 zaptel-1.2.6
-rw-r--r-- 1 root root   676658 Jun 28 22:16 zaptel-1.2.6.tar.gz

[root@localhost asterisk]# cd zaptel-1.2.6

[root@localhost zaptel-1.2.6]# make clean
rm -f torisatool makefw tor2fw.h radfw.h
rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune
rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
rm -f zonedata.lo tonezone.lo *.lo
make -C /lib/modules/2.6.15-1.2054_FC5/build SUBDIRS=/usr/src/asterisk/zaptel-1. 2.6 clean
make: *** /lib/modules/2.6.15-1.2054_FC5/build: No such file or directory.  Stop .
make: *** [clean] Error 2
[root@localhost zaptel-1.2.6]#

Anybody knows what I need to do? Do I need to reboot and choose the 2.6.17 kernel that I assume yum added to Grub?

Thank you.

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…

Thanks. I read that yuming kernel + kernel-dev solved the issue, and that I should just reboot with the new kernel. I prefered to let it rest before resuming tomorrow.