vgrskovic@optonline.net
2005-Apr-06 05:34 UTC
[Asterisk-Users] Zaptel Compile on a virtual dedicated host.
Hello Folks, I am trying to compile zaptel in a "RedHat9 plesk/ virtual dedicated server environment". I have "root access" to the machine, but when I try compile zaptel it complains of the following: Make Results: `````````````````` gcc -I/usr/src/linux-2.4/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux-2.4/include/linux/modversions.h -DSTANDALONE_ZAPATA -c zaptel.c In file included from /usr/src/linux-2.4/include/linux/smp.h:14, from /usr/src/linux-2.4/include/linux/sched.h:25, from /usr/src/linux-2.4/include/linux/mm.h:22, from /usr/src/linux-2.4/include/linux/slab.h:14, from /usr/src/linux-2.4/include/linux/proc_fs.h:5, from zaptel.c:45: /usr/src/linux-2.4/include/asm/smp.h: In function `hard_smp_processor_id': /usr/src/linux-2.4/include/asm/smp.h:97: warning: implicit declaration of function `GET_APIC_ID' /usr/src/linux-2.4/include/asm/smp.h:97: `APIC_BASE' undeclared (first use in this function) /usr/src/linux-2.4/include/asm/smp.h:97: (Each undeclared identifier is reported only once /usr/src/linux-2.4/include/asm/smp.h:97: for each function it appears in.) /usr/src/linux-2.4/include/asm/smp.h:97: `APIC_ID' undeclared (first use in this function) /usr/src/linux-2.4/include/asm/smp.h: In function `logical_smp_processor_id': /usr/src/linux-2.4/include/asm/smp.h:103: warning: implicit declaration of function `GET_APIC_LOGICAL_ID' /usr/src/linux-2.4/include/asm/smp.h:103: `APIC_BASE' undeclared (first use in this function) /usr/src/linux-2.4/include/asm/smp.h:103: `APIC_LDR' undeclared (first use in this function) make: *** [zaptel.o] Error 1 --> I think the issue may stem from an incompatible kernel source version. The OS reports: Linux (hostname) 2.4.20-021stab022.11.777-enterprise #1 SMP Fri Jan 14 11:07:01 MSK 2005 i686. I have not been able to find an RPM kernel source for this particular version, nor can I update the kernel. I am told by tech support that the kernel version is 2.4.20-4.0.1.elsmp. Yet I can get a confirmation of that that at the command prompt, I get the following results: Cat /proc/version: Linux version 2.4.20-021stab022.11.777-enterprise (st@kbuild26.eng.sw.ru) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #1 SMP Fri Jan 14 11:07:01 MSK 2005 cat /etc/redhat-release: Red Hat Linux release 9 (Shrike) Anyone have any ideas on where I can find the right kernel source? I have look at rpmfind.net and google'd with no avail! Thanks.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050406/3a4bfd8e/attachment.htm
Giles Coochey
2005-Apr-06 06:01 UTC
[Asterisk-Users] Zaptel Compile on a virtual dedicated host.
>Anyone have any ideas on where I can find the right kernel source? Ihave look at> rpmfind.net and google'd with no avail!You could always download the Vanilla kernel source from http://www.kernel.org and compile a kernel from source. I tend to always use the Vanilla source, it's what everything has been tested against and it tastes better. You should probably print out the "dmesg" output to help you configure the kernel options prior to compilation so that your "hardware" is correctly detected. I would also urge you to use a bootloader such as grub or lilo to ensure that you can revert to the original kernel should it panic on boot, I suspect Redhat already uses one of those anyway.
vgrskovic@optonline.net
2005-Apr-11 06:20 UTC
[Asterisk-Users] Zaptel Compile on a virtual dedicated host.
Giles thank you for getting back so quickly, "dmesg" doesn't output anything, but even if it did, I am not sure that I could recompile the kernel. The server I am using is in a virtual dedicated hosting environment, I do not have access to recompile the kernel, nor can I replace it. The server prevents me from doing so. I do not have access to the "real" /boot and don't have access as far as I can tell to the .config for the kernel source. ("make oldconfig" seems to work) After a few more days of tech support, google searches and etc, I have found that my provider is using kernel 2.24.21.4.0.1.elsmp. Of course, cat /proc/version doesn't think so!! It thinks I am running Kernel 2.4.20-021stab022.11.777-enterprise. I am able to use rpmfind to source the corresponding rpm which installs without incident. The interesting part is "rpm -qa kernel" doesn't see it :-(. I even tried to "rpm -rebuilddb" Zaptel appears to compile fine, but when I run "modprobe zaptel" I get the following: ----> /lib/modules/2.4.20-021stab022.11.777-enterprise/misc/zaptel.o: kernel-module version mismatch /lib/modules/2.4.20-021stab022.11.777-enterprise/misc/zaptel.o was compiled for kernel version 2.4.21-4.0.1.EL while this kernel is version 2.4.20-021stab022.11.777-enterp. /lib/modules/2.4.20-021stab022.11.777-enterprise/misc/zaptel.o: insmod /lib/modules/2.4.20-021stab022.11.777-enterprise/misc/zaptel.o failed /lib/modules/2.4.20-021stab022.11.777-enterprise/misc/zaptel.o: insmod zaptel failed <--- Is there a way to override zaptel's kernel check or have linux fool it into thinking the kernel is 2.4.21-4.0.1.EL? thanks! -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Giles Coochey Sent: Wednesday, April 06, 2005 9:01 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject:>Anyone have any ideas on where I can find the right kernel source? Ihave look at> rpmfind.net and google'd with no avail!You could always download the Vanilla kernel source from http://www.kernel.org and compile a kernel from source. I tend to always use the Vanilla source, it's what everything has been tested against and it tastes better. You should probably print out the "dmesg" output to help you configure the kernel options prior to compilation so that your "hardware" is correctly detected. I would also urge you to use a bootloader such as grub or lilo to ensure that you can revert to the original kernel should it panic on boot, I suspect Redhat already uses one of those anyway. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050411/b8681bcb/attachment.htm
Gonzalo Servat
2005-Apr-11 06:36 UTC
[Asterisk-Users] Zaptel Compile on a virtual dedicated host.
On Apr 6, 2005 10:34 PM, vgrskovic@optonline.net <vgrskovic@optonline.net> wrote:> > Anyone have any ideas on where I can find the right kernel source? I have > look at rpmfind.net <http://rpmfind.net> and google'd with no avail! >Hi, You're never going to find the kernel source. The reason for this is that your VPS is running under Virtuozzo, which is a commercial software package designed to create virtual servers under one physical server, sharing a common kernel. This means the kernel cannot be upgraded or in any way modified. Regards, Gonzalo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050411/ef5e50a7/attachment.htm