[Freeswitch-users] Freeswitch - mod_skypopen fail

Shamun toha md shamun.toha at gmail.com
Sat Sep 18 05:46:09 PDT 2010


This is not working for this, here kernel-devel and source is modified as
wiki told:

[root at localhost alsa-driver-1.0.20]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT
2009 i686 athlon i386 GNU/Linux

[root at localhost alsa-driver-1.0.20]# yum info kernel-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: ftp.belnet.be
 * base: mirror.ovh.net
 * extras: mirror.ovh.net
 * updates: mirror.ovh.net
Installed Packages
Name       : kernel-devel
Arch       : i686
Version    : 2.6.18
Release    : 194.11.3.el5
Size       : 16 M
*Repo       : installed*
Summary    : Development package for building kernel modules to match the
kernel.
URL        : http://www.kernel.org/
License    : GPLv2
Description: This package provides kernel headers and makefiles sufficient
to build modules
           : against the kernel package.
[root at localhost alsa-driver-1.0.20]# ./configure
--with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer
--with-card-options=all
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /usr/local/src/alsa-driver-1.0.20
checking cross compile...
checking for directory with kernel source... ./configure: line 4870: cd:
/lib/modules/2.6.18-164.el5/source: No such file or directory
/lib/modules/2.6.18-164.el5/source
checking for directory with kernel build...
/lib/modules/2.6.18-164.el5/build
checking for kernel linux/version.h... no
The file /include/linux/version.h does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /lib/modules/2.6.18-164.el5/source).
[root at localhost alsa-driver-1.0.20]#








Wiki told:
==========

Let's start with ALSA driver compilation and installation:

Get it from:
ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.20.tar.bz2
 CentOS, RedHat

Because CentOS backports features in kernel, you will have to edit
alsa-driver-1.0.20/include/adriver.h and comment out line 101 and line 1781,
to make it like this:

/* other missing types */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28)
//typedef unsigned int fmode_t;
#endif

...

#ifndef bool    /* just to be sure */
//typedef _Bool bool;
#endif

Then edit alsa-driver-1.0.20/usb/usbcompat.h adding a "#if 0" on line 18,
commenting out the following code making it look like this:

#endif /* < 2.6.24 */
#if 0
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
static inline int usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd)

close the commenting out block adding an "#endif" at line 97, making it look
like this:

#endif /* < 2.6.21 */
#endif //0

Then:

 yum install *kernel-devel* # or  yum install kernel-xen-devel (if on xen)

 ./configure --with-redhat=yes \
 --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer \
 --with-card-options=all


 make && make install

After the first *make && make install*, copy
mod_skypopen/configs/alsa/dummy.c to
alsa-driver-1.0.20/sound/drivers/dummy.c .

make && make install #again :)




On Sat, Sep 18, 2010 at 1:49 PM, Giovanni Maruzzelli <gmaruzz at celliax.org>wrote:

> Read what error you get.
> Follow the wiki page.
> Install necessary packages and edit alsa sources. All described in wiki
> page.
> -giovanni
>
> On 9/18/10, Shamun toha md <shamun.toha at gmail.com> wrote:
> > Alsa driver installation in CentOS 5.4 getting fail:
> >
> > [root at localhost alsa-driver-1.0.20]# ./configure --with-redhat=yes
> > --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer
> > --with-card-options=all
> > checking for gcc... gcc
> > checking for C compiler default output file name... a.out
> > checking whether the C compiler works... yes
> > checking whether we are cross compiling... no
> > checking for suffix of executables...
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ISO C89... none needed
> > checking for ranlib... ranlib
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking how to run the C preprocessor... gcc -E
> > checking for grep that handles long lines and -e... /bin/grep
> > checking for egrep... /bin/grep -E
> > checking for ANSI C header files... yes
> > checking for an ANSI C-conforming const... yes
> > checking for inline... inline
> > checking whether time.h and sys/time.h may both be included... yes
> > checking whether gcc needs -traditional... no
> > checking for current directory... /usr/local/src/alsa-driver-1.0.20
> > checking cross compile...
> > checking for directory with kernel source... ./configure: line 4870: cd:
> > /lib/modules/2.6.18-164.el5/source: No such file or directory
> > /lib/modules/2.6.18-164.el5/source
> > checking for directory with kernel build...
> > /lib/modules/2.6.18-164.el5/build
> > checking for kernel linux/version.h... no
> > The file /include/linux/version.h does not exist.
> > Please install the package with full kernel sources for your distribution
> > or use --with-kernel=dir option to specify another directory with kernel
> > sources (default is /lib/modules/2.6.18-164.el5/source).
> > [root at localhost alsa-driver-1.0.20]#
> >
> >
> >
> > [root at localhost alsa-driver-1.0.20]# ./configure --with-redhat=yes
> > --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer
> > --with-card-options=all --with-kernel=/lib/modules/2.6.18-164.el5/source
> > checking for gcc... gcc
> > checking for C compiler default output file name... a.out
> > checking whether the C compiler works... yes
> > checking whether we are cross compiling... no
> > checking for suffix of executables...
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ISO C89... none needed
> > checking for ranlib... ranlib
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking how to run the C preprocessor... gcc -E
> > checking for grep that handles long lines and -e... /bin/grep
> > checking for egrep... /bin/grep -E
> > checking for ANSI C header files... yes
> > checking for an ANSI C-conforming const... yes
> > checking for inline... inline
> > checking whether time.h and sys/time.h may both be included... yes
> > checking whether gcc needs -traditional... no
> > checking for current directory... /usr/local/src/alsa-driver-1.0.20
> > checking cross compile...
> > checking for directory with kernel source... ./configure: line 4870: cd:
> > /lib/modules/2.6.18-164.el5/source: No such file or directory
> > /lib/modules/2.6.18-164.el5/source
> > checking for directory with kernel build...
> > checking for kernel linux/version.h... no
> > The file /include/linux/version.h does not exist.
> > Please install the package with full kernel sources for your distribution
> > or use --with-kernel=dir option to specify another directory with kernel
> > sources (default is /lib/modules/2.6.18-164.el5/source).
> >
>
> --
> Sent from my mobile device
>
> Sincerely,
>
> Giovanni Maruzzelli
> Cell : +39-347-2665618
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100918/1a7831fb/attachment.html 


More information about the FreeSWITCH-users mailing list