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

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jul 15 04:34:41 CDT 2010


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



More information about the asterisk-users mailing list