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

2010-07-15 Thread Chandrakant Solanki
Hello

What will be your exact kernel version. Give me output uname -a command.

-- 
Regards,

Chandrakant Solanki

On Thu, Jul 15, 2010 at 6:58 AM, Thermal Wetland
thermalwetl...@gmail.comwrote:

 On Wed, Jul 14, 2010 at 4:55 AM, bruce bruce bruceb...@gmail.com wrote:
 
  I am stuck with the same problem but I have used asterisk yum repository
 and it worked by itself without me worrying for kernel stuff.
  However, I need to install speex codec and now I am stuck as it doesn't
 get picked up by the yum asterisk install somehow. I have lib speex and
 speex already installed and when doing yum install asterisk16 I don't see
 speex in core show translation Is there anything specific I have to do?
  Do I have to build from source as well?
  -Sorry, didn't mean to hijack the thread.
  Thanks,
  Bruce
  On Wed, Jul 14, 2010 at 5:08 AM, Chandrakant Solanki 
 solanki.chandrak...@gmail.com wrote:
 
  Hi
 
  If you install rpm from any location it goes to its default location.
 
  You just go for above steps. For kernel you can go for
 http://kernel.org
 
  --
  Regards,
 
  Chandrakant Solanki
 
  On Wed, Jul 14, 2010 at 2:06 PM, liuxin nyliuxin...@gmail.com wrote:
 
  Hi.
  The best easy way is:
  copy kernel-devel-2.6.18-028stab064.7.rpm to /usr/src
  then run rpm -ivh kernel-devel-2.6.18-028stab064.7.rpm
 
  2010/7/14 Gareth Blades list-aster...@skycomuk.com
 
  Thermal Wetland wrote:
   I have a virtual server with godaddy but can not compile DAHDI as it
   complains that I do not have the correct kernel source.
  
   The package installed is - kernel-devel-2.6.18-164.11.1.el5.i686:
   Package kernel-devel-2.6.18-164.11.1.el5.i686 already installed and
   latest version
   Nothing to do
  
   uname -a returns:
   Linux ip-XXX-XXX-XXX-XXX.ip.secureserver.net
   http://ip-XXX-XXX-XXX-XXX.ip.secureserver.net 2.6.18-028stab064.7
 #1
   SMP Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux
  
   When I try to compile DAHDI it fails with:
   make[2]: Leaving directory
  
 `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
   You do not appear to have the sources for the 2.6.18-028stab064.7
 kernel
   installed.
  
   Is there a way to trick DAHDI to use the installed kernel?
  
   Thanks for the help!
  
   --
   -Thermal
  
 
  What kernel versions do you have installed?
 
  If you are currently running an older kernel but installed a newer
  kernel and sources but havent rebooted to activate the new one yet
 then
  it may still be trying to locate the source for the older running
 kernel.
 
 
 


 I was able to download the rpm's and install them:

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

 [r...@ip-97-74-119-59 src]# rpm -ivh
 ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm
 warning: ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm:
 Header V3 DSA signature: NOKEY, key ID a7a1d4b6
 Preparing...###
 [100%]
 package ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686
 is already installed

 [r...@ip-97-74-119-59 src]# cd -
 /usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0
 [r...@ip-97-74-119-59 dahdi-linux-complete-2.3.0.1+2.3.0]# make all
 make -C linux all
 make[1]: Entering directory
 `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
 make -C drivers/dahdi/firmware firmware-loaders
 make[2]: Entering directory

 `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
 make[2]: Leaving directory

 `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
 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:
 [r...@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?

 --
 -Thermal

 --
 _
 -- 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 

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

2010-07-15 Thread Thermal Wetland
On Wed, Jul 14, 2010 at 8:09 PM, Chandrakant Solanki
solanki.chandrak...@gmail.com wrote:
 Hello

 What will be your exact kernel version. Give me output uname -a command.

 --
 Regards,

 Chandrakant Solanki


Thank you for the help!  Here is the output:
[r...@ip-97-74-119-59 ~]# uname -a
Linux ip-97-74-119-59.ip.secureserver.net 2.6.18-028stab064.7 #1 SMP
Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux

-Thermal

-- 
_
-- 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


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

2010-07-15 Thread Chandrakant Solanki
Hi

Following steps to do...

1] # cd /usr/src/kernels/
2] # ln -s 2.6.18-128.2.1.el5.028stab064.7-i686 2.6.18-028stab064.7

Try this 'n let me know... Hope this will work fine...


-- 
Regards,

Chandrakant Solanki

On Thu, Jul 15, 2010 at 12:00 PM, Thermal Wetland
thermalwetl...@gmail.comwrote:

 On Wed, Jul 14, 2010 at 8:09 PM, Chandrakant Solanki
 solanki.chandrak...@gmail.com wrote:
  Hello
 
  What will be your exact kernel version. Give me output uname -a
 command.
 
  --
  Regards,
 
  Chandrakant Solanki
 

 Thank you for the help!  Here is the output:
 [r...@ip-97-74-119-59 ~]# uname -a
 Linux ip-97-74-119-59.ip.secureserver.net 2.6.18-028stab064.7 #1 SMP
 Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux

 -Thermal

 --
 _
 -- 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

-- 
_
-- 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

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

2010-07-15 Thread Thermal Wetland
On Wed, Jul 14, 2010 at 8:43 PM, Chandrakant Solanki
solanki.chandrak...@gmail.com wrote:
 Hi

 Following steps to do...

 1] # cd /usr/src/kernels/
 2] # ln -s 2.6.18-128.2.1.el5.028stab064.7-i686 2.6.18-028stab064.7

 Try this 'n let me know... Hope this will work fine...

Seems like that should have worked!


[r...@ip-97-74-119-59 kernels]# ls -l
total 117492
drwxr-xr-x 21 root root 4096 Jul 14 18:40
2.6.18-128.2.1.el5.028stab064.7-i686
drwxr-xr-x 19 root root 4096 Jul 14 19:35 2.6.18-164.11.1.el5-PAE-i686
drwxr-xr-x 19 root root 4096 Jul 14 19:36 2.6.18-164.11.1.el5-debug-i686
drwxr-xr-x 19 root root 4096 Jul 13 20:25 2.6.18-164.11.1.el5-i686
drwxr-xr-x 19 root root 4096 Jul 14 19:36 2.6.18-164.11.1.el5-xen-i686
lrwxrwxrwx  1 root root   28 Jul 14 19:35
2.6.18-164.11.1.el5PAE-i686 - 2.6.18-164.11.1.el5-PAE-i686
lrwxrwxrwx  1 root root   30 Jul 14 19:36
2.6.18-164.11.1.el5debug-i686 - 2.6.18-164.11.1.el5-debug-i686
lrwxrwxrwx  1 root root   28 Jul 14 19:36
2.6.18-164.11.1.el5xen-i686 - 2.6.18-164.11.1.el5-xen-i686
drwxrwxr-x 20 root root 4096 Jul 14 18:45 linux-2.6.18.8
-rw-r--r--  1 root root 52488302 Jul 14 18:16 linux-2.6.18.8.tar.gz
drwxrwxr-x 24 root root 4096 Jul 14 19:05 linux-2.6.34.1
-rw-r--r--  1 root root 67658955 Jul  5 11:27 linux-2.6.34.1.tar.bz2

[r...@ip-97-74-119-59 kernels]# ln -s
2.6.18-128.2.1.el5.028stab064.7-i686 2.6.18-028stab064.7

[r...@ip-97-74-119-59 kernels]# ls -l
total 117492
lrwxrwxrwx  1 root root   36 Jul 15 00:03 2.6.18-028stab064.7 -
2.6.18-128.2.1.el5.028stab064.7-i686
drwxr-xr-x 21 root root 4096 Jul 14 18:40
2.6.18-128.2.1.el5.028stab064.7-i686
drwxr-xr-x 19 root root 4096 Jul 14 19:35 2.6.18-164.11.1.el5-PAE-i686
drwxr-xr-x 19 root root 4096 Jul 14 19:36 2.6.18-164.11.1.el5-debug-i686
drwxr-xr-x 19 root root 4096 Jul 13 20:25 2.6.18-164.11.1.el5-i686
drwxr-xr-x 19 root root 4096 Jul 14 19:36 2.6.18-164.11.1.el5-xen-i686
lrwxrwxrwx  1 root root   28 Jul 14 19:35
2.6.18-164.11.1.el5PAE-i686 - 2.6.18-164.11.1.el5-PAE-i686
lrwxrwxrwx  1 root root   30 Jul 14 19:36
2.6.18-164.11.1.el5debug-i686 - 2.6.18-164.11.1.el5-debug-i686
lrwxrwxrwx  1 root root   28 Jul 14 19:36
2.6.18-164.11.1.el5xen-i686 - 2.6.18-164.11.1.el5-xen-i686
drwxrwxr-x 20 root root 4096 Jul 14 18:45 linux-2.6.18.8
-rw-r--r--  1 root root 52488302 Jul 14 18:16 linux-2.6.18.8.tar.gz
drwxrwxr-x 24 root root 4096 Jul 14 19:05 linux-2.6.34.1
-rw-r--r--  1 root root 67658955 Jul  5 11:27 linux-2.6.34.1.tar.bz2

[r...@ip-97-74-119-59 kernels]# cd
/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/

[r...@ip-97-74-119-59 dahdi-linux-complete-2.3.0.1+2.3.0]# make all
make -C linux all
make[1]: Entering directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
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
[r...@ip-97-74-119-59 dahdi-linux-complete-2.3.0.1+2.3.0]#

-- 
_
-- 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


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

2010-07-15 Thread Thermal Wetland
On Wed, Jul 14, 2010 at 8:43 PM, Chandrakant Solanki
solanki.chandrak...@gmail.com wrote:
 Hi

 Following steps to do...

 1] # cd /usr/src/kernels/
 2] # ln -s 2.6.18-128.2.1.el5.028stab064.7-i686 2.6.18-028stab064.7

 Try this 'n let me know... Hope this will work fine...


 --
 Regards,

 Chandrakant Solanki


Chandrakant,

Are you curious enough to want shell access to take look?

I am going to blow this away and start again once I learn the secret!
I have done so much experimenting.

-Thermal

-- 
_
-- 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


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

2010-07-15 Thread Thermal Wetland
On Wed, Jul 14, 2010 at 8:43 PM, Chandrakant Solanki
solanki.chandrak...@gmail.com wrote:
 Hi

 Following steps to do...

 1] # cd /usr/src/kernels/
 2] # ln -s 2.6.18-128.2.1.el5.028stab064.7-i686 2.6.18-028stab064.7

 Try this 'n let me know... Hope this will work fine...


 --
 Regards,

 Chandrakant Solanki


I have all the extra kernels because I ran 'yum install kernel*'

Could that be the issue?

-- 
_
-- 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


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

2010-07-15 Thread Tzafrir Cohen
On Wed, Jul 14, 2010 at 03:28:35PM -1000, Thermal Wetland wrote:

 I was able to download the rpm's and install them:
 
 [r...@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:
 [r...@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.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@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


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

2010-07-15 Thread leonimar cape
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.co...@xorcom.com
To: asterisk-users@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:
 
 [r...@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:
 [r...@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.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@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




-- 
_
-- 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


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

2010-07-15 Thread Miguel Molina
El 15/07/10 04:34, Tzafrir Cohen escribió:
 On Wed, Jul 14, 2010 at 03:28:35PM -1000, Thermal Wetland wrote:


 I was able to download the rpm's and install them:

 [r...@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:
 [r...@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


That is the definitive solution, I had the same issue in an openvz VPS 
and finally solved it by manually making the symlink to the kernel sources:

[r...@virtual1_ast1 modules]# uname -a
Linux virtual1_ast1 2.6.18-194.3.1.el5.028stab069.6 #1 SMP Wed May 26 
19:05:45 MSD 2010 i686 i686 i386 GNU/Linux

[r...@virtual1_ast1 modules]# pwd
/lib/modules
[r...@virtual1_ast1 modules]# ls -lh
total 8,0K
drwxr-xr-x 3 root root 4,0K jun 30 18:42 2.6.18-194.3.1.el5.028stab069.6
drwxr-xr-x 3 root root 4,0K jun 30 18:09 2.6.18-194.3.1.el5.028stab069.6ent

[r...@virtual1_ast1 2.6.18-194.3.1.el5.028stab069.6]# pwd
/lib/modules/2.6.18-194.3.1.el5.028stab069.6
[r...@virtual1_ast1 2.6.18-194.3.1.el5.028stab069.6]# ls -lh
total 44K
lrwxrwxrwx 1 root root   57 jun 30 18:07 build - 
/usr/src/kernels/2.6.18-194.3.1.el5.028stab069.6ent-i686/

I had to create the folder with the kernel name in /lib/modules/ and 
inside it, the build symlink to the kernel sources, just as I saw it 
on a physical server. That way it worked compiling DAHDI.

I didn't know about explicitly setting the KSRC to the kernel sources. 
Thanks for the hint.

Cheers,

-- 
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center


-- 
_
-- 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


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

2010-07-15 Thread Thermal Wetland
On Wed, Jul 14, 2010 at 11:34 PM, Tzafrir Cohen
tzafrir.co...@xorcom.com wrote:
 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.co...@xorcom.com
 +972-50-7952406           mailto:tzafrir.co...@xorcom.com
 http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

Creating the link was the answer!  Even when I installed the RPM the
link in /lib/modules was not created.

After make all, make install, and make config DAHDI will not start.
in the /drivers/dahdi folder I only have dahdi_dummy.c
All the other files have .ko .mod.c .o etc
Is this related?

[r...@ip-97-74-119-59 dahdi-linux-complete-2.3.0.1+2.3.0]# dahdi_cfg -v
DAHDI Tools Version - 2.3.0
Notice: Configuration file is /etc/dahdi/system.conf
line 0: Unable to open master device '/dev/dahdi/ctl'

1 error(s) detected

The only warning I see is WARNING: could not find
/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_32.o.cmd
for 
/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_32.o

Does that ring a bell with any one?

-- 
-Thermal

-- 
_
-- 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


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

2010-07-15 Thread Miguel Molina

El 15/07/10 15:15, Thermal Wetland escribió:

On Wed, Jul 14, 2010 at 11:34 PM, Tzafrir Cohen
tzafrir.co...@xorcom.com  wrote:
   

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.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir
 

Creating the link was the answer!  Even when I installed the RPM the
link in /lib/modules was not created.

After make all, make install, and make config DAHDI will not start.
in the /drivers/dahdi folder I only have dahdi_dummy.c
All the other files have .ko .mod.c .o etc
Is this related?

[r...@ip-97-74-119-59 dahdi-linux-complete-2.3.0.1+2.3.0]# dahdi_cfg -v
DAHDI Tools Version - 2.3.0
Notice: Configuration file is /etc/dahdi/system.conf
line 0: Unable to open master device '/dev/dahdi/ctl'

1 error(s) detected

The only warning I see is WARNING: could not find
/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_32.o.cmd
for 
/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_32.o

Does that ring a bell with any one?

   
I experienced the same issue, and googling about this, on some openvz 
documentation they are clear: for security you can't enable kernel 
modules in an openVZ VPS (you can't even do a lsmod, it shows nothing), 
the only way I could use DAHDI timing in my case for asterisk inside a 
VPS, was to install DAHDI in the HN (Hardware Node) and share it using 
this config settings:


vzctl set 101 --devnodes 'dahdi/pseudo:rw dahdi/channel:rw dahdi/timer:rw 
dahdi/ctl:rw' --save

Where 101 is your CTID (container ID).

Look at http://forum.openvz.org/index.php?t=msggoto=37706;

That way I made it! Now I have a single DAHDI instance in the HN shared 
into two VPS, and dahdi_cfg and dahdi_test works great:


[r...@virtual1_ast1 ~]# dahdi_test
Opened pseudo dahdi interface, measuring accuracy...
99.951% 99.641% 99.572% 99.604% 99.671% 99.972% 99.979% 99.991%
--- Results after 8 passes ---
Best: 99.991 -- Worst: 99.572 -- Average: 99.797645, Difference: 99.998742

The DAHDI timing is used without issue by asterisk:

virtual1_ast1*CLI module show like timing
Module Description  
Use Count

res_timing_dahdi.soDAHDI Timing Interface   484
res_timing_pthread.so  pthread Timing Interface 0

virtual1_ast1*CLI timing test
Attempting to test a timer with 50 ticks per second.
Using the 'DAHDI' timing module for this test.
It has been 1016 milliseconds, and we got 51 timer ticks


My goal was to provide DAHDI timing to asterisk inside a VPS. I don't 
know if having a TDM card in the HN configured with DAHDI it can be 
shared so a VPS can access it and then you could receive PRI calls or 
something directly into a VPS, or better, split channel groups between VPS.


Cheers,

--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center

-- 
_
-- 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

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

2010-07-15 Thread Thermal Wetland
On Thu, Jul 15, 2010 at 11:29 AM, Miguel Molina
mmol...@millenium.com.co wrote:
 El 15/07/10 15:15, Thermal Wetland escribió:

 On Wed, Jul 14, 2010 at 11:34 PM, Tzafrir Cohen
 tzafrir.co...@xorcom.com wrote:


 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.co...@xorcom.com
 +972-50-7952406           mailto:tzafrir.co...@xorcom.com
 http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir


 Creating the link was the answer!  Even when I installed the RPM the
 link in /lib/modules was not created.

 After make all, make install, and make config DAHDI will not start.
 in the /drivers/dahdi folder I only have dahdi_dummy.c
 All the other files have .ko .mod.c .o etc
 Is this related?

 [r...@ip-97-74-119-59 dahdi-linux-complete-2.3.0.1+2.3.0]# dahdi_cfg -v
 DAHDI Tools Version - 2.3.0
 Notice: Configuration file is /etc/dahdi/system.conf
 line 0: Unable to open master device '/dev/dahdi/ctl'

 1 error(s) detected

 The only warning I see is WARNING: could not find
 /usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_32.o.cmd
 for
 /usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_32.o

 Does that ring a bell with any one?



 I experienced the same issue, and googling about this, on some openvz
 documentation they are clear: for security you can't enable kernel modules
 in an openVZ VPS (you can't even do a lsmod, it shows nothing), the only way
 I could use DAHDI timing in my case for asterisk inside a VPS, was to
 install DAHDI in the HN (Hardware Node) and share it using this config
 settings:

 vzctl set 101 --devnodes 'dahdi/pseudo:rw dahdi/channel:rw dahdi/timer:rw
 dahdi/ctl:rw' --save

 Where 101 is your CTID (container ID).

 Look at http://forum.openvz.org/index.php?t=msggoto=37706;

 That way I made it! Now I have a single DAHDI instance in the HN shared into
 two VPS, and dahdi_cfg and dahdi_test works great:

 [r...@virtual1_ast1 ~]# dahdi_test
 Opened pseudo dahdi interface, measuring accuracy...
 99.951% 99.641% 99.572% 99.604% 99.671% 99.972% 99.979% 99.991%
 --- Results after 8 passes ---
 Best: 99.991 -- Worst: 99.572 -- Average: 99.797645, Difference: 99.998742

 The DAHDI timing is used without issue by asterisk:

 virtual1_ast1*CLI module show like timing
 Module Description  Use
 Count
 res_timing_dahdi.so    DAHDI Timing Interface
 484
 res_timing_pthread.so  pthread Timing Interface 0

 virtual1_ast1*CLI timing test
 Attempting to test a timer with 50 ticks per second.
 Using the 'DAHDI' timing module for this test.
 It has been 1016 milliseconds, and we got 51 timer ticks


 My goal was to provide DAHDI timing to asterisk inside a VPS. I don't know
 if having a TDM card in the HN configured with DAHDI it can be shared so a
 VPS can access it and then you could receive PRI calls or something directly
 into a VPS, or better, split channel groups between VPS.

 Cheers,

 --
 Ing. Miguel Molina
 Grupo de Tecnología
 Millenium Phone Center


Thank you Miguel for the openVZ help!

-- 
-Thermal

-- 
_
-- 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


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

2010-07-14 Thread Gareth Blades
Thermal Wetland wrote:
 I have a virtual server with godaddy but can not compile DAHDI as it 
 complains that I do not have the correct kernel source.
 
 The package installed is - kernel-devel-2.6.18-164.11.1.el5.i686:
 Package kernel-devel-2.6.18-164.11.1.el5.i686 already installed and 
 latest version
 Nothing to do
 
 uname -a returns:
 Linux ip-XXX-XXX-XXX-XXX.ip.secureserver.net 
 http://ip-XXX-XXX-XXX-XXX.ip.secureserver.net 2.6.18-028stab064.7 #1 
 SMP Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux
 
 When I try to compile DAHDI it fails with:
 make[2]: Leaving directory 
 `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
 You do not appear to have the sources for the 2.6.18-028stab064.7 kernel 
 installed.
 
 Is there a way to trick DAHDI to use the installed kernel?
 
 Thanks for the help!
 
 -- 
 -Thermal
 

What kernel versions do you have installed?

If you are currently running an older kernel but installed a newer 
kernel and sources but havent rebooted to activate the new one yet then 
it may still be trying to locate the source for the older running kernel.


-- 
_
-- 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


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

2010-07-14 Thread liuxin
Hi.
The best easy way is:
copy kernel-devel-2.6.18-028stab064.7.rpm to /usr/src
then run rpm -ivh kernel-devel-2.6.18-028stab064.7.rpm

2010/7/14 Gareth Blades list-aster...@skycomuk.com

 Thermal Wetland wrote:
  I have a virtual server with godaddy but can not compile DAHDI as it
  complains that I do not have the correct kernel source.
 
  The package installed is - kernel-devel-2.6.18-164.11.1.el5.i686:
  Package kernel-devel-2.6.18-164.11.1.el5.i686 already installed and
  latest version
  Nothing to do
 
  uname -a returns:
  Linux 
  ip-XXX-XXX-XXX-XXX.ip.secureserver.nethttp://ip-xxx-xxx-xxx-xxx.ip.secureserver.net/
  http://ip-XXX-XXX-XXX-XXX.ip.secureserver.nethttp://ip-xxx-xxx-xxx-xxx.ip.secureserver.net/
 2.6.18-028stab064.7 #1
  SMP Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux
 
  When I try to compile DAHDI it fails with:
  make[2]: Leaving directory
 
 `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
  You do not appear to have the sources for the 2.6.18-028stab064.7 kernel
  installed.
 
  Is there a way to trick DAHDI to use the installed kernel?
 
  Thanks for the help!
 
  --
  -Thermal
 

 What kernel versions do you have installed?

 If you are currently running an older kernel but installed a newer
 kernel and sources but havent rebooted to activate the new one yet then
 it may still be trying to locate the source for the older running kernel.


 --
 _
 -- 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

-- 
_
-- 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

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

2010-07-14 Thread Chandrakant Solanki
Hi

Check your kernel version using *uname -r *and then try to download tar.gz
setup for that version.

And extract it into /usr/src/kernels directory , then try to compile.


-- 
Regards,

Chandrakant Solanki

On Wed, Jul 14, 2010 at 1:46 PM, Gareth Blades
list-aster...@skycomuk.comwrote:

 Thermal Wetland wrote:
  I have a virtual server with godaddy but can not compile DAHDI as it
  complains that I do not have the correct kernel source.
 
  The package installed is - kernel-devel-2.6.18-164.11.1.el5.i686:
  Package kernel-devel-2.6.18-164.11.1.el5.i686 already installed and
  latest version
  Nothing to do
 
  uname -a returns:
  Linux ip-XXX-XXX-XXX-XXX.ip.secureserver.net
  http://ip-XXX-XXX-XXX-XXX.ip.secureserver.net 2.6.18-028stab064.7 #1
  SMP Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux
 
  When I try to compile DAHDI it fails with:
  make[2]: Leaving directory
 
 `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
  You do not appear to have the sources for the 2.6.18-028stab064.7 kernel
  installed.
 
  Is there a way to trick DAHDI to use the installed kernel?
 
  Thanks for the help!
 
  --
  -Thermal
 

 What kernel versions do you have installed?

 If you are currently running an older kernel but installed a newer
 kernel and sources but havent rebooted to activate the new one yet then
 it may still be trying to locate the source for the older running kernel.


 --
 _
 -- 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

-- 
_
-- 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

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

2010-07-14 Thread Chandrakant Solanki
Hi

If you install rpm from any location it goes to its default location.

You just go for above steps. For kernel you can go for http://kernel.org

-- 
Regards,

Chandrakant Solanki

On Wed, Jul 14, 2010 at 2:06 PM, liuxin nyliuxin...@gmail.com wrote:

 Hi.
 The best easy way is:
 copy kernel-devel-2.6.18-028stab064.7.rpm to /usr/src
 then run rpm -ivh kernel-devel-2.6.18-028stab064.7.rpm

 2010/7/14 Gareth Blades list-aster...@skycomuk.com

  Thermal Wetland wrote:
  I have a virtual server with godaddy but can not compile DAHDI as it
  complains that I do not have the correct kernel source.
 
  The package installed is - kernel-devel-2.6.18-164.11.1.el5.i686:
  Package kernel-devel-2.6.18-164.11.1.el5.i686 already installed and
  latest version
  Nothing to do
 
  uname -a returns:
  Linux 
  ip-XXX-XXX-XXX-XXX.ip.secureserver.nethttp://ip-xxx-xxx-xxx-xxx.ip.secureserver.net/
  http://ip-XXX-XXX-XXX-XXX.ip.secureserver.nethttp://ip-xxx-xxx-xxx-xxx.ip.secureserver.net/
 2.6.18-028stab064.7 #1
  SMP Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux
 
  When I try to compile DAHDI it fails with:
  make[2]: Leaving directory
 
 `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
  You do not appear to have the sources for the 2.6.18-028stab064.7 kernel
  installed.
 
  Is there a way to trick DAHDI to use the installed kernel?
 
  Thanks for the help!
 
  --
  -Thermal
 

 What kernel versions do you have installed?

 If you are currently running an older kernel but installed a newer
 kernel and sources but havent rebooted to activate the new one yet then
 it may still be trying to locate the source for the older running kernel.


 --
 _
 -- 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



 --
 _
 -- 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

-- 
_
-- 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

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

2010-07-14 Thread bruce bruce
I am stuck with the same problem but I have used asterisk yum repository and
it worked by itself without me worrying for kernel stuff.

However, I need to install speex codec and now I am stuck as it doesn't get
picked up by the yum asterisk install somehow. I have lib speex and speex
already installed and when doing yum install asterisk16 I don't see speex
in core show translation Is there anything specific I have to do?

Do I have to build from source as well?

-Sorry, didn't mean to hijack the thread.

Thanks,
Bruce

On Wed, Jul 14, 2010 at 5:08 AM, Chandrakant Solanki 
solanki.chandrak...@gmail.com wrote:

 Hi

 If you install rpm from any location it goes to its default location.

 You just go for above steps. For kernel you can go for http://kernel.org

 --
 Regards,

 Chandrakant Solanki


 On Wed, Jul 14, 2010 at 2:06 PM, liuxin nyliuxin...@gmail.com wrote:

 Hi.
 The best easy way is:
 copy kernel-devel-2.6.18-028stab064.7.rpm to /usr/src
 then run rpm -ivh kernel-devel-2.6.18-028stab064.7.rpm

 2010/7/14 Gareth Blades list-aster...@skycomuk.com

  Thermal Wetland wrote:
  I have a virtual server with godaddy but can not compile DAHDI as it
  complains that I do not have the correct kernel source.
 
  The package installed is - kernel-devel-2.6.18-164.11.1.el5.i686:
  Package kernel-devel-2.6.18-164.11.1.el5.i686 already installed and
  latest version
  Nothing to do
 
  uname -a returns:
  Linux 
  ip-XXX-XXX-XXX-XXX.ip.secureserver.nethttp://ip-xxx-xxx-xxx-xxx.ip.secureserver.net/
  http://ip-XXX-XXX-XXX-XXX.ip.secureserver.nethttp://ip-xxx-xxx-xxx-xxx.ip.secureserver.net/
 2.6.18-028stab064.7 #1
  SMP Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux
 
  When I try to compile DAHDI it fails with:
  make[2]: Leaving directory
 
 `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
  You do not appear to have the sources for the 2.6.18-028stab064.7
 kernel
  installed.
 
  Is there a way to trick DAHDI to use the installed kernel?
 
  Thanks for the help!
 
  --
  -Thermal
 

 What kernel versions do you have installed?

 If you are currently running an older kernel but installed a newer
 kernel and sources but havent rebooted to activate the new one yet then
 it may still be trying to locate the source for the older running kernel.


 --
 _
 -- 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



 --
 _
 -- 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





 --
 _
 -- 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

-- 
_
-- 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

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

2010-07-14 Thread Thermal Wetland
On Wed, Jul 14, 2010 at 4:55 AM, bruce bruce bruceb...@gmail.com wrote:

 I am stuck with the same problem but I have used asterisk yum repository and 
 it worked by itself without me worrying for kernel stuff.
 However, I need to install speex codec and now I am stuck as it doesn't get 
 picked up by the yum asterisk install somehow. I have lib speex and speex 
 already installed and when doing yum install asterisk16 I don't see speex 
 in core show translation Is there anything specific I have to do?
 Do I have to build from source as well?
 -Sorry, didn't mean to hijack the thread.
 Thanks,
 Bruce
 On Wed, Jul 14, 2010 at 5:08 AM, Chandrakant Solanki 
 solanki.chandrak...@gmail.com wrote:

 Hi

 If you install rpm from any location it goes to its default location.

 You just go for above steps. For kernel you can go for http://kernel.org

 --
 Regards,

 Chandrakant Solanki

 On Wed, Jul 14, 2010 at 2:06 PM, liuxin nyliuxin...@gmail.com wrote:

 Hi.
 The best easy way is:
 copy kernel-devel-2.6.18-028stab064.7.rpm to /usr/src
 then run rpm -ivh kernel-devel-2.6.18-028stab064.7.rpm

 2010/7/14 Gareth Blades list-aster...@skycomuk.com

 Thermal Wetland wrote:
  I have a virtual server with godaddy but can not compile DAHDI as it
  complains that I do not have the correct kernel source.
 
  The package installed is - kernel-devel-2.6.18-164.11.1.el5.i686:
  Package kernel-devel-2.6.18-164.11.1.el5.i686 already installed and
  latest version
  Nothing to do
 
  uname -a returns:
  Linux ip-XXX-XXX-XXX-XXX.ip.secureserver.net
  http://ip-XXX-XXX-XXX-XXX.ip.secureserver.net 2.6.18-028stab064.7 #1
  SMP Wed Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux
 
  When I try to compile DAHDI it fails with:
  make[2]: Leaving directory
  `/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
  You do not appear to have the sources for the 2.6.18-028stab064.7 kernel
  installed.
 
  Is there a way to trick DAHDI to use the installed kernel?
 
  Thanks for the help!
 
  --
  -Thermal
 

 What kernel versions do you have installed?

 If you are currently running an older kernel but installed a newer
 kernel and sources but havent rebooted to activate the new one yet then
 it may still be trying to locate the source for the older running kernel.





I was able to download the rpm's and install them:

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

[r...@ip-97-74-119-59 src]# rpm -ivh
ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm
warning: ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686.rpm:
Header V3 DSA signature: NOKEY, key ID a7a1d4b6
Preparing...    ### [100%]
    package ovzkernel-devel-2.6.18-128.2.1.el5.028stab064.7.i686
is already installed

[r...@ip-97-74-119-59 src]# cd -
/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0
[r...@ip-97-74-119-59 dahdi-linux-complete-2.3.0.1+2.3.0]# make all
make -C linux all
make[1]: Entering directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
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:
[r...@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?

--
-Thermal

-- 
_
-- 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


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

2010-07-13 Thread Thermal Wetland
I have a virtual server with godaddy but can not compile DAHDI as it
complains that I do not have the correct kernel source.

The package installed is - kernel-devel-2.6.18-164.11.1.el5.i686:
Package kernel-devel-2.6.18-164.11.1.el5.i686 already installed and latest
version
Nothing to do

uname -a returns:
Linux ip-XXX-XXX-XXX-XXX.ip.secureserver.net 2.6.18-028stab064.7 #1 SMP Wed
Aug 26 13:11:07 MSD 2009 i686 i686 i386 GNU/Linux

When I try to compile DAHDI it fails with:
make[2]: Leaving directory
`/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.18-028stab064.7 kernel
installed.

Is there a way to trick DAHDI to use the installed kernel?

Thanks for the help!

-- 
-Thermal
-- 
_
-- 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