Created
December 13, 2009 14:47
-
-
Save tzuryby/255442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libbz2-dev libc6-dev libsqlite3-dev tk-dev g++ gcc python-dev git-core linux-headers-`uname -r` udev libnewt-dev libssl-dev libncurses5-dev udev lksctp-tools libsctp-dev bison flex automake1.9 libtool libncurses5-dev libssl-dev libspeex-dev | |
$ wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.8.tgz | |
$ tar xvzf wanpipe-3.5.8.tgz | |
$ cd wanpipe-3.5.8/ | |
$ ./Setup install --protocol=AFT_TE1 --silent | |
Enabling the AFT TE1 Support | |
---------------------------------------------------------- | |
WANPIPE v3.5.8 Installation Script | |
Copyright (c) 1995-2009, Sangoma Technologies Inc. | |
---------------------------------------------------------- | |
WANPIPE INSTALLATION | |
You are about to install WANPIPE Multi-Protocol | |
TDM Voice & WAN Router into your system. | |
This script will examine your system, then install, create | |
and/or modify necessary files and directories. | |
You must have Linux Kernel Headers along with | |
full development tools (i.e. GNU C compiler and utilities) | |
installed in order to be able to install this product. | |
This script will automatically compile all WANPIPE kernel | |
drivers and install them in their appropriate directory. | |
If you are installing Wanpipe for ASTERISK/ZAPTEL this | |
script will will prompt you for zaptel source location. | |
If you have previoulsy installed WANPIPE, this release | |
will overrite/upgrade full release without the need to | |
uninstall first! | |
IMPORTANT: | |
It is always recommended to say YES to all options | |
prompted during the install! | |
Please visit: http://wiki.sangoma.com for more info. | |
---------------------------------------------------------- | |
WANPIPE v3.5.8 Installation Script | |
Copyright (c) 1995-2009, Sangoma Technologies Inc. | |
---------------------------------------------------------- | |
Fixing file permissions... | |
Verifying files and fixing permissions ...Done | |
Checking for C developement tools ...(gcc) OK | |
Checking for C++ developement tools ...OK | |
Checking for Make utility ...OK | |
Checking for ncurses library ... OK | |
Checking for Perl developement tools ...OK | |
Checking for AWK ...OK | |
Checking for FLEX ...OK | |
Checking for Patch ...OK | |
Checking for libtermcap-devel...OK | |
Checking for bison...OK | |
Checking for libtool...OK | |
---------------------------------------------------------- | |
WANPIPE v3.5.8 Installation Script | |
Copyright (c) 1995-2009, 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.8 Installation Script | |
Copyright (c) 1995-2009, Sangoma Technologies Inc. | |
---------------------------------------------------------- | |
Please specify absolute path name of your linux headers/source directory | |
Press Enter for Default: /lib/modules/2.6.31-16-generic/build | |
#>Setting linux directory to /lib/modules/2.6.31-16-generic/build | |
Current WANPIPE kernel patch is 3.5.8 | |
Upgrading WANPIPE kernel documentation ...Done. | |
Upgrading WANPIPE kernel headers ...Done. | |
Upgrading WANPIPE kernel drivers ...Done. | |
WANPIPE device drivers upgraded successfully! | |
---------------------------------------------------------- | |
WANPIPE v3.5.8 Installation Script | |
Copyright (c) 1995-2009, 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.8 Installation Script | |
Copyright (c) 1995-2009, Sangoma Technologies Inc. | |
---------------------------------------------------------- | |
Checking for SMP support ...Enabled. | |
Checking current processor type ...x86_64 | |
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/lib/modules/2.6.31-16-generic/build/include -DMODULE -DAF_WANPIPE_2612_FORCE_UPDATE -DWANPIPE_MOD_266_FORCE_UPDATE | |
-------------------------------------------------- | |
Checking for REGPARM kernel option ...Enabled. | |
Compiling General WANPIPE Driver for 2.6.X Kernel . | |
--------------------------------------------- | |
WANPIPE DRIVER COMPILE LOG | |
Sun Dec 13 09:45:36 EST 2009 | |
----------------------------------- | |
make -C /lib/modules/2.6.31-16-generic/build SUBDIRS=/root/downloads/wanpipe-3.5.8/kdrvtmp CC=gcc KBUILD_VERBOSE=0 modules | |
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-16-generic' | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.o | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c: In function ‘sdla_hwcpu_register’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c:4093: warning: passing argument 6 of ‘sdla_hwcpu_search’ discards qualifiers from pointer target type | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c:338: note: expected ‘char *’ but argument is of type ‘const char * const’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c: In function ‘sdla_bootcfg’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c:5320: warning: cast from pointer to integer of different size | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c: In function ‘sdla_usb_create’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c:10702: warning: passing argument 5 of ‘sdla_card_register’ discards qualifiers from pointer target type | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c:3950: note: expected ‘char *’ but argument is of type ‘const char *’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c: In function ‘sdla_usb_remove’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c:10728: warning: passing argument 5 of ‘sdla_card_search’ discards qualifiers from pointer target type | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c:4014: note: expected ‘char *’ but argument is of type ‘const char *’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c:10733: warning: passing argument 6 of ‘sdla_hwcpu_search’ discards qualifiers from pointer target type | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_src.c:4153: note: expected ‘char *’ but argument is of type ‘const char *’ | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_fe.o | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_utils.o | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_usb.o | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_usb.c: In function ‘sdla_usb_err_stats’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv_usb.c:977: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long unsigned int’ | |
LD [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv.o | |
Building modules, stage 2. | |
MODPOST 1 modules | |
CC /root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv.mod.o | |
LD [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/sdladrv.ko | |
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-16-generic' | |
make -C /lib/modules/2.6.31-16-generic/build SUBDIRS=/root/downloads/wanpipe-3.5.8/kdrvtmp CC=gcc KBUILD_VERBOSE=0 modules | |
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-16-generic' | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/wanmain.o | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/wanproc.o | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/wanproc.c: In function ‘wanrouter_proc_add_protocol’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/wanproc.c:1504: warning: cast to pointer from integer of different size | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/wanproc.c:1523: warning: cast to pointer from integer of different size | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/waniface.o | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/wandev.o | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/wandev.c: In function ‘wp_wandev_open’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/wandev.c:123: warning: unused variable ‘wdev’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/wandev.c: In function ‘wp_wandev_close’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/wandev.c:139: warning: unused variable ‘wdev’ | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/wanpipe_cdev_linux.o | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/wanpipe_cdev_linux.c: In function ‘wp_cdev_read’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/wanpipe_cdev_linux.c:622: warning: format ‘%i’ expects type ‘int’, but argument 4 has type ‘size_t’ | |
LD [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/wanrouter.o | |
Building modules, stage 2. | |
MODPOST 1 modules | |
CC /root/downloads/wanpipe-3.5.8/kdrvtmp/wanrouter.mod.o | |
LD [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/wanrouter.ko | |
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-16-generic' | |
make -C /lib/modules/2.6.31-16-generic/build SUBDIRS=/root/downloads/wanpipe-3.5.8/kdrvtmp CC=gcc KBUILD_VERBOSE=0 modules | |
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-16-generic' | |
CC [M] /root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.o | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_ioctl’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:292: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:297: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_listen_rcv’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:429: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:429: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_accept’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:606: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:608: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:626: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:627: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_sendmsg’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:976: error: ‘struct net_device’ has no member named ‘hard_start_xmit’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c: In function ‘release_queued_pending_sockets’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1085: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1088: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1089: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_release’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1165: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1168: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1169: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1178: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1181: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_bind’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1468: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1469: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1481: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_recvmsg’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1625: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1626: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c: In function ‘wanpipe_connect’: | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1969: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.c:1975: error: ‘struct net_device’ has no member named ‘do_ioctl’ | |
make[2]: *** [/root/downloads/wanpipe-3.5.8/kdrvtmp/af_wanpipe_src.o] Error 1 | |
make[1]: *** [_module_/root/downloads/wanpipe-3.5.8/kdrvtmp] Error 2 | |
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-16-generic' | |
make: *** [all] Error 2 | |
--------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment