Zaptel & Fedora Core 6

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]

Any help is appreciated…
Thanks in advance.

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.

Thanks for the reply.
Yes, I have ensured that the Kernel Source is Installed for the current version, as follows:

rpm -qa kernel
kernel-2.6.18-1.2798.fc6

rpm -qa kernel-devel
kernel-devel-2.6.18-1.2798.fc6

Regards,

Pardon my “noobish” style of asking this question… did you check to see that the file it was looking for actually exsisted?

As in going to linux/config.h?

Sometimes when versions change on the OS…they tend to shift things… or you may be doing your work in a different directory.

Again…had to ask.

Mate, no need to ask for pardon. :smile:
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…

Regards,

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?

Regards,

try /usr/src//include/linux/ ??

Hi!

linux/config.h is deprecated from 2.6.18 kernel!

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);

gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I…/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -fomit-frame-pointer -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC -c -o chan_phone.o chan_phone.c
chan_phone.c:41:29: error: linux/compiler.h: No such file or directory
make[1]: *** [chan_phone.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.2.13/channels’
make: *** [subdirs] Error 1

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.

Cheers.

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:

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.

Any idea?

[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.

Cheers.

I got asterisk-1.2.13 installed and running

kayodea, you can find compiler.h in /lib/modules/KERNEL-VERSION/build/include/linux copy the file into /usr/include/linux

then after a couple, not couple actually, a pile of warnings, it will install and ready to use.

Hi Guys!
Congrats To get Asterisk Working on Fc6.

Thanks, voip.guru
But it would have been, if it wasn’t for your help…

[quote]mnazeer
PostPosted: Fri Nov 10, 2006 9:00 am Post subject:
Thanks, voip.guru
But it would have been, if it wasn’t for your help…
[/quote]

yeah. Thanks guys. We made it again. Asterisk on FC6. Cool!!!