LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling Cisco VPN (https://www.linuxquestions.org/questions/linux-software-2/compiling-cisco-vpn-826749/)

zupa 08-17-2010 07:58 AM

Compiling Cisco VPN
 
Hi!

I was following this guide: http://www.paganini.net/index.cgi/li...quiet=1;page=1

and tried to compile the 4.8 version of Cisco's VPN client, but failed at this stage:

sudo ./vpn_install
[sudo] password for pakalns:
Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer
Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.

By installing this product you agree that you have read the
license.txt file (The VPN Client license) and will comply with
its terms.


Directory where binaries will be installed [/usr/local/bin]

Automatically start the VPN service at boot time [yes]

In order to build the VPN kernel module, you must have the
kernel headers for the version of the kernel you are running.


Directory containing linux kernel source code [/lib/modules/2.6.32-21-generic-pae/build]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.32-21-generic-pae/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/2.6.32-21-generic-pae/build" will be used to build the module.

Is the above correct [y]

Making module
make -C /lib/modules/2.6.32-21-generic-pae/build SUBDIRS=/home/pakalns/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-21-generic-pae'
CC [M] /home/pakalns/Downloads/vpnclient/linuxcniapi.o
CC [M] /home/pakalns/Downloads/vpnclient/frag.o
CC [M] /home/pakalns/Downloads/vpnclient/IPSecDrvOS_linux.o
CC [M] /home/pakalns/Downloads/vpnclient/interceptor.o
/home/pakalns/Downloads/vpnclient/interceptor.c: In function ‘interceptor_init’:
/home/pakalns/Downloads/vpnclient/interceptor.c:132: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/pakalns/Downloads/vpnclient/interceptor.c:133: error: ‘struct net_device’ has no member named ‘get_stats’
/home/pakalns/Downloads/vpnclient/interceptor.c:134: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/pakalns/Downloads/vpnclient/interceptor.c: In function ‘add_netdev’:
/home/pakalns/Downloads/vpnclient/interceptor.c:271: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/pakalns/Downloads/vpnclient/interceptor.c:272: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/pakalns/Downloads/vpnclient/interceptor.c: In function ‘remove_netdev’:
/home/pakalns/Downloads/vpnclient/interceptor.c:294: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
make[2]: *** [/home/pakalns/Downloads/vpnclient/interceptor.o] Error 1
make[1]: *** [_module_/home/pakalns/Downloads/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-21-generic-pae'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".





pakalns@robuntu:~/Downloads/vpnclient$ cat /proc/version
Linux version 2.6.32-21-generic-pae (buildd@rothera) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #32-Ubuntu SMP Fri Apr 16 09:39:35 UTC 2010
pakalns@robuntu:~/Downloads/vpnclient$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
pakalns@robuntu:~/Downloads/vpnclient$


Sorry for the huge output, but sometimes it is necessary to see all the details.

Thank's,
Roberts

stuart_cherrington 08-18-2010 11:27 AM

Have a look at http://www.linuxquestions.org/questi...client-353630/ - another Poster had similar issues I think.


All times are GMT -5. The time now is 12:19 PM.