LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trouble installing wanpipe 3.5 on Centos (https://www.linuxquestions.org/questions/linux-software-2/trouble-installing-wanpipe-3-5-on-centos-4175457871/)

promzzzz 04-12-2013 02:27 AM

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.

acid_kewpie 04-12-2013 02:31 AM

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?

promzzzz 04-13-2013 04:44 AM

Quote:

Originally Posted by acid_kewpie (Post 4930196)
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


All times are GMT -5. The time now is 04:57 PM.