[asterisk-users] Can't compile DAHDI - wrong kernel source

leonimar cape leo_mac_ph at yahoo.com
Thu Jul 15 04:55:43 CDT 2010


Try also installing the devel version of your kernel.

I manage to find the link below:

http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab064.7/ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm


Try installing it and then recompile the dahdi module.

Hope this helps.

-- Mac


----- Original Message ----
From: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
To: asterisk-users at lists.digium.com
Sent: Thursday, July 15, 2010 5:34:41 PM
Subject: Re: [asterisk-users] Can't compile DAHDI - wrong kernel source

On Wed, Jul 14, 2010 at 03:28:35PM -1000, Thermal Wetland wrote:

> I was able to download the rpm's and install them:
> 
> [root at ip-97-74-119-59 src]# rpm -ivh
> ovzkernel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm
> warning: ovzkernel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm: Header V3
> DSA signature: NOKEY, key ID a7a1d4b6
> Preparing...                ########################################### [100%]
>         package ovzkernel-2.6.18-128.2.1.el5.028stab064.7.i686 is
> already installed

> You do not appear to have the sources for the 2.6.18-028stab064.7
> kernel installed.
> make[1]: *** [modules] Error 1
> make[1]: Leaving directory
> `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
> make: *** [all] Error 2
> 
> The directories in /usr/src/kernels is:
> [root at ip-97-74-119-59 kernels]# ls -l
> total 51328
> drwxr-xr-x 20 root root     4096 Jul 14 18:04
> 2.6.18-128.2.1.el5.028stab064.7-i686
> drwxr-xr-x 19 root root     4096 Jul 13 20:25 2.6.18-164.11.1.el5-i686
> drwxrwxr-x 19 root root     4096 Feb 23  2007 linux-2.6.18.8
> 
> I tried to install the kernel from source but couldn't find the exact
> kernel, I installed linux-2.6.18.8 as I was the closest.
> 
> Both of the directories in /usr/src/kernels/ have the -i686 suffix, is
> that the issue?

No.

The DAHDI Makefile looks for the kernel source by default in:

  /lib/modules/`uname -r`/build

This is normally a symlink that points to the directory with the
(possibly partial) kernel source tree.

It seems that the kernel package you have installed did not set up this
symlink. You can create it yourself.

Alternatively, set set KSRC explicitly to the (full path to) the kernel
tree:

  make KSRC=/usr/src/<whatever>

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users






More information about the asterisk-users mailing list