LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2013, 02:27 AM   #1
promzzzz
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Trouble installing wanpipe 3.5 on Centos


Hello, I wanted to install sangoma wanpipe drivers on my Centos machine(6.3) but unfortunately I'm getting compilation error while installing from source. I seem to have installed all the dependencies. I just cant understand what the problem is.
You can see the installation logs here:

----------------------------------------------------------
WANPIPE v3.5.28 Installation Script
Copyright (c) 1995-2012, Sangoma Technologies Inc.
----------------------------------------------------------


Installing WANPIPE Device Drivers: Linux KERNEL

To integrate WANPIPE Multi-Protocol Voice & WAN Router
modules into the Linux kernel, the kernel has to be
updated with latest wanpipe sources. Install will only
modify existing wanpipe source that is already in the
Kernel.

IMPORTANT:
It is always recommended to say YES to all options
prompted during the install!







----------------------------------------------------------
WANPIPE v3.5.28 Installation Script
Copyright (c) 1995-2012, Sangoma Technologies Inc.
----------------------------------------------------------


Please specify absolute path name of your linux headers/source directory

Press Enter for Default: /lib/modules/2.6.32-358.2.1.el6.i686/build

#>
Setting linux directory to /lib/modules/2.6.32-358.2.1.el6.i686/build



Upgrading WANPIPE kernel documentation ...Done.


Installing WANPIPE include headers ...Done.

WANPIPE device drivers upgraded successfully!

Press [Enter] to continue...

----------------------------------------------------------
WANPIPE v3.5.28 Installation Script
Copyright (c) 1995-2012, Sangoma Technologies Inc.
----------------------------------------------------------

WANPIPE KERNEL DRIVER COMPILATION

The next step in WANPIPE installation involves compiling
WANPIPE kernel modules.

This script will compile and install WANPIPE modules
into the currently running linux kernel.

For greater customization you will be prompted to
select which Protocol/Drivers you would like to
build into the WANPIPE kernel modules.

Wanpipe for Asterisk/Dahdi/Zaptel
Default for Asterisk/Dahdi/Zaptel
Wanpipe for Wan Routing/API
Default for Wan/IP Routing and Data API
Wanpipe for Asterisk SMG/SS7
Default for Asterisk SS7
Wanpipe for TDM API
Default for FreeSwitch and Voice API

Custom Compilation:
------------------
Customise WANPIPE driver compilation to add only the
protocols that you need. This way one can reduce
the size of the WANPIPE kernel drivers.

Refer to http://wiki.sangoma.com for more info


----------------------------------------------------------
WANPIPE v3.5.28 Installation Script
Copyright (c) 1995-2012, Sangoma Technologies Inc.
----------------------------------------------------------


Please Select Compilation Mode

1. WAN Protocols Support
Protocols: Frame Relay, CHDLC, PPP, ATM, X25, ADSL, TDM API
Default for: Wan Routing, Data & Voice API devel.

2. Asterisk/Dahdi Support
Asterisk protocols: libpri (PRI,BRI), Analog (FXO/FXS), libss7 (SS7)
Default for: Asterisk

3. Asterisk/Dahdi + WAN Protocol Support

4. TDM API (libsangoma)
Protocols: TDM API (libsangoma) on AFT adapters:
Default for: FreeSWITCH, Yate, Sunrise
Custom voice development

5. Custom Compilation Mode
Specify protocols to be added into the WANPIPE
kernel drivers.

6. Deprecated: SMG (BRI) (Asterisk SMG/BRI [Use Asterisk/Dahdi option 2 instead])

7. Deprecated: SMG (BRI) + Asterisk/Dahdi [Use Asterisk/Dahdi option 2 instead]


Please select (1-7) [Default: 1]: 1
Enabling the FR Protocol
Enabling the CHDLC Protocol
Enabling the PPP Protocol
Enabling the X25 API Protocol
Enabling the ADSL Protocol
Enabling the Multi Protocol Driver
Enabling the AFT TE1 Support
Enabling the AFT TE3 Support

Checking for SMP support ...Enabled.

Checking current processor type ...i686

Wan Update Flags: -DAF_WANPIPE_2612_FORCE_UPDATE -DWANPIPE_MOD_266_FORCE_UPDATE


--------------------------------------------------
CFLAGS: gcc -Wp,-MD,.wanpipe.o.d -nostdinc -iwithprefix include -D__LINUX__ -Dlinux -D__KERNEL__ -I/usr/include/wanpipe -I/lib/modules/2.6.32-358.2.1.el6.i686/build/include -DMODULE -DAF_WANPIPE_2612_FORCE_UPDATE -DWANPIPE_MOD_266_FORCE_UPDATE
--------------------------------------------------

Checking for REGPARM kernel option ...Disabled.

Compiling General WANPIPE Driver for 2.6.X Kernel .
---------------------------------------------


WANPIPE DRIVER COMPILE LOG
Fri Apr 12 17:46:17 IST 2013
-----------------------------------
make -C /lib/modules/2.6.32-358.2.1.el6.i686/build SUBDIRS=/root/Downloads/wanpipe-3.5.28/kdrvtmp CC=gcc KBUILD_VERBOSE=0 modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-358.2.1.el6.i686'
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/sdladrv_src.o
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/sdladrv_fe.o
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/sdladrv_utils.o
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/wanpipe_cdev_linux.o
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/wanpipe_logger.o
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/sdladrv_usb.o
LD [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/sdladrv.o
Building modules, stage 2.
MODPOST 1 modules
CC /root/Downloads/wanpipe-3.5.28/kdrvtmp/sdladrv.mod.o
LD [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/sdladrv.ko.unsigned
NO SIGN [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/sdladrv.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.2.1.el6.i686'
make -C /lib/modules/2.6.32-358.2.1.el6.i686/build SUBDIRS=/root/Downloads/wanpipe-3.5.28/kdrvtmp CC=gcc KBUILD_VERBOSE=0 modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-358.2.1.el6.i686'
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/wanmain.o
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/wanproc.o
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/waniface.o
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/wandev.o
LD [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/wanrouter.o
Building modules, stage 2.
MODPOST 1 modules
CC /root/Downloads/wanpipe-3.5.28/kdrvtmp/wanrouter.mod.o
LD [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/wanrouter.ko.unsigned
NO SIGN [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/wanrouter.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.2.1.el6.i686'
make -C /lib/modules/2.6.32-358.2.1.el6.i686/build SUBDIRS=/root/Downloads/wanpipe-3.5.28/kdrvtmp CC=gcc KBUILD_VERBOSE=0 modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-358.2.1.el6.i686'
CC [M] /root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.o
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_make_new’:
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c:342: error: implicit declaration of function ‘sk_sleep’
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c:342: warning: assignment makes pointer from integer without a cast
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c:343: warning: assignment makes pointer from integer without a cast
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_accept’:
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c:570: warning: passing argument 1 of ‘add_wait_queue’ makes pointer from integer without a cast
include/linux/wait.h:118: note: expected ‘struct wait_queue_head_t *’ but argument is of type ‘int’
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c:591: warning: passing argument 1 of ‘remove_wait_queue’ makes pointer from integer without a cast
include/linux/wait.h:120: note: expected ‘struct wait_queue_head_t *’ but argument is of type ‘int’
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_poll’:
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c:1802: warning: passing argument 2 of ‘poll_wait’ makes pointer from integer without a cast
include/linux/poll.h:38: note: expected ‘struct wait_queue_head_t *’ but argument is of type ‘int’
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c: At top level:
/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.c:2040: warning: initialization from incompatible pointer type
make[2]: *** [/root/Downloads/wanpipe-3.5.28/kdrvtmp/af_wanpipe_src.o] Error 1
make[1]: *** [_module_/root/Downloads/wanpipe-3.5.28/kdrvtmp] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.2.1.el6.i686'
make: *** [all] Error 2

---------------------------------------------

It would be highly appreciated if some one can help me through it.
 
Old 04-12-2013, 02:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sk_sleep is defined in the kernel headers, so I'd imagine that you've not actually got the kernel headers in /lib/modules/2.6.32-358.2.1.el6.i686/build/include?
 
Old 04-13-2013, 04:44 AM   #3
promzzzz
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by acid_kewpie View Post
sk_sleep is defined in the kernel headers, so I'd imagine that you've not actually got the kernel headers in /lib/modules/2.6.32-358.2.1.el6.i686/build/include?
Kernel headers are there
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble Installing XGI Z VGA driver for CentOS 6.3 alarbean Linux - Server 0 01-18-2013 09:44 AM
trouble installing ProFtpd on CentOS 5.6 kitek Linux - Software 3 05-21-2011 01:03 AM
[SOLVED] Trouble Installing postgresql8.4 on CentOS twaddlac Linux - Software 3 08-03-2010 08:28 AM
Trouble installing CentOS on a Proliant ML370 server JFM Linux - Server 2 05-26-2008 07:39 AM
Trouble installing CentOS 5 jim.thornton Linux - Software 3 02-01-2008 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration