Hi all,
I have been googling for several hours, the efforts ended in smoke.
My problem is I am trying to install Zaptel-1.2.9 on Fedora Core 6 kernel version is as follows:
2.6.18-1.2798.fc6
I am getting the following errors, while making:
ZAPTELVERSION=“1.2.8” build_tools/make_version_h > version.h.tmp
if cmp -s version.h.tmp version.h ; then echo; else
mv version.h.tmp version.h ;
fi
rm -f version.h.tmp
/lib/modules/2.6.18-1.2798.fc6/build
make -C /lib/modules/2.6.18-1.2798.fc6/build SUBDIRS=/usr/src/asterisk/zaptel-1.2.8 modules
make[1]: Entering directory /usr/src/kernels/2.6.18-1.2798.fc6-i586' CC [M] /usr/src/asterisk/zaptel-1.2.8/zaptel.o [b]In file included from /usr/src/asterisk/zaptel-1.2.8/zaptel.c:40: /usr/src/asterisk/zaptel-1.2.8/zconfig.h:9:26: error: linux/config.h: No such file or directory make[2]: *** [/usr/src/asterisk/zaptel-1.2.8/zaptel.o] Error 1 make[1]: *** [_module_/usr/src/asterisk/zaptel-1.2.8] Error 2 make[1]: Leaving directory/usr/src/kernels/2.6.18-1.2798.fc6-i586’
make: *** [linux26] Error 2[/b]
Have you ensured that the kernel source is installed? You can run “yum install kernel kernel-source” or some such to get it working. You might have to modify it slightly. Hope this helps.
Mate, no need to ask for pardon.
Anyways, I tried to look for the files and was unable to do so…
My question is actually where can I find the file Zaptel is looking for…
any Fedora Core user can tell me where can I find the file…
I had to make sure that I had certain dependencies installed before mine would compile on FC6. I visited asterisk.org/download and towards the bottom are a list of dependencies that need to be present. I believe mine was missing the ncurses-devel package or somesuch. I know it seems way to easy, and I hope it is, but that’s all I had to do along with making sure my kernel source was installed.
Thanks for the reply.
I have checked for the dependencies, there are already there. So this is not an issue for me.
What I need to know that where can I find linux/config.h?
This configuration header file is no longer used by the kernel and was only included to maintain backward compatibility.
Modifying proper header file to not include linux/config.h is one way to fix this problem.
Alternatively, a quicker fix would be to copy over the config.h file from an older FC6 testing kernel, or from FC5. To make it easy, here is a copy of the file.
config.h -> http://www.phoronix.com/redblog/downloads/config.h
This deprecated header file relies upon linux/autoconf.h. Dropping this header file in /lib/modules/KERNEL-VERSION/build/include/linux should fix the build problem.
Hi voip.guru,
I seems to have this same problem. I heed to your advice by dropping the header file autoconf.h (Hope I am correct by doing this) but got another form of errors. Here is it;
include/asm/mach-xen/asm/pci.h:95: warning: return makes pointer from integer without a cast
In file included from include/linux/dma-mapping.h:27,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/mach-xen/asm/pci.h:141,
from include/linux/pci.h:691,
from /usr/src/zaptel-1.2.10/zaptel.c:47:
include/asm/mach-xen/asm/dma-mapping.h: In function ?range_straddles_page_boundary?:
include/asm/mach-xen/asm/dma-mapping.h:30: error: ?CONFIG_PAGE_OFFSET? undeclared (first use in this function)
make[2]: *** [/usr/src/zaptel-1.2.10/zaptel.o] Error 1
make[1]: *** [module/usr/src/zaptel-1.2.10] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-xen-i686’
make: *** [linux26] Error 2
I also get the following errors when I tried compiling asterisk-1.2.13 on my Box (FC6);
as you can see, I am using the 2.6.18-1.2798.fc6-xen-i686 kernel. What else can be done to get rid of this errors and have a smooth compile of zaptel and Asterisk on FC6.
Voip.Guru, I have put in the config.h in the Path you mentioned and Zaptel compiled and installed successfully.
After that libpri compiled & installed successfully.
But when it comes to Asterisk Compilation & Installation there is a pit.
when I issue the make command for asterisk, an error occurs as pointed out by ‘kayodea’:
error: linux/compiler.h: No such file or directory
As I check the path where I put in config.h, compiler.h is present there.
[quote]Voip.Guru, I have put in the config.h in the Path you mentioned and Zaptel compiled and installed successfully.
After that libpri compiled & installed successfully.
But when it comes to Asterisk Compilation & Installation there is a pit. Smile[/quote]
U are very correct mnazeer. I did the same and have zaptel compiled and installed. So we are now left with asterisk.