Форум русскоязычного сообщества Ubuntu


Автор Тема: Cisco VPN Client [РЕШЕНО]  (Прочитано 10287 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн GovoruN

  • Автор темы
  • Участник
  • *
  • Сообщений: 207
    • Просмотр профиля
Cisco VPN Client [РЕШЕНО]
« : 26 Март 2007, 19:32:43 »
У кого нить получилось под Fiesty заставить работать VPNC или хотябы скомпилировать родной цисковский клиент? У меня выдает ошибку:
sudo ./vpn_install
Cisco Systems VPN Client Version 4.8.00 (0490) Linux InstallerCopyright (C) 1998-2005 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.20-13-generic/build]

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

Is the above correct [y]

Making module
make -C /lib/modules/2.6.20-13-generic/build SUBDIRS=/home/monkaster/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-13-generic'
  CC [M]  /home/monkaster/Downloads/vpnclient/linuxcniapi.o
  CC [M]  /home/monkaster/Downloads/vpnclient/frag.o
  CC [M]  /home/monkaster/Downloads/vpnclient/IPSecDrvOS_linux.o
  CC [M]  /home/monkaster/Downloads/vpnclient/interceptor.o
/home/monkaster/Downloads/vpnclient/interceptor.c: In function ‘handle_vpnup’:
/home/monkaster/Downloads/vpnclient/interceptor.c:310: warning: assignment from incompatible pointer type
/home/monkaster/Downloads/vpnclient/interceptor.c:334: warning: assignment from incompatible pointer type
/home/monkaster/Downloads/vpnclient/interceptor.c:335: warning: assignment from incompatible pointer type
/home/monkaster/Downloads/vpnclient/interceptor.c: In function ‘do_cleanup’:
/home/monkaster/Downloads/vpnclient/interceptor.c:378: warning: assignment from incompatible pointer type
/home/monkaster/Downloads/vpnclient/interceptor.c: In function ‘recv_ip_packet_handler’:
/home/monkaster/Downloads/vpnclient/interceptor.c:553: error: ‘CHECKSUM_HW’ undeclared (first use in this function)
/home/monkaster/Downloads/vpnclient/interceptor.c:553: error: (Each undeclared identifier is reported only once
/home/monkaster/Downloads/vpnclient/interceptor.c:553: error: for each function it appears in.)
/home/monkaster/Downloads/vpnclient/interceptor.c:557: error: too many arguments to function ‘skb_checksum_help’
/home/monkaster/Downloads/vpnclient/interceptor.c: In function ‘do_cni_send’:
/home/monkaster/Downloads/vpnclient/interceptor.c:680: error: ‘CHECKSUM_HW’ undeclared (first use in this function)
/home/monkaster/Downloads/vpnclient/interceptor.c:683: error: too many arguments to function ‘skb_checksum_help’
make[2]: *** [/home/monkaster/Downloads/vpnclient/interceptor.o] Ошибка 1
make[1]: *** [_module_/home/monkaster/Downloads/vpnclient] Ошибка 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-13-generic'
make: *** [default] Ошибка 2
Failed to make module "cisco_ipsec.ko".

пробовал собирать и под Fiesty  и под Dapper. Результат одинаковый. Собрать не получается. А VPN цисковский позарез нужен.
« Последнее редактирование: 27 Март 2007, 18:59:42 от GovoruN »

Оффлайн Kwah

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 1442
  • Ubuntu 17.10
    • Просмотр профиля
Re: Cisco VPN Client
« Ответ #1 : 26 Март 2007, 19:44:33 »
Да, получалось. Там надо пару патчей наложить. Если никто до вечера не нарисует - отпишусь, что надо сделать.

Оффлайн GovoruN

  • Автор темы
  • Участник
  • *
  • Сообщений: 207
    • Просмотр профиля
Re: Cisco VPN Client
« Ответ #2 : 26 Март 2007, 20:02:05 »
Да, получалось. Там надо пару патчей наложить. Если никто до вечера не нарисует - отпишусь, что надо сделать.
Я видел патч для какой-то предыдущей версии. Но для моей не нашел. Предыдущую и скачать-то негде. Эту еле нашел. :) Еще нашел рекомендацию сделать линк на config.h  в каталоге с autoconf.h  после чего откомпилировалось хоть до того состояния которое я показал в первом посте. А то вообще  было:
Making module
make -C /lib/modules/2.6.20-13-generic/build SUBDIRS=/home/monkaster/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-13-generic'
  CC [M]  /home/monkaster/Downloads/vpnclient/linuxcniapi.o
/home/monkaster/Downloads/vpnclient/linuxcniapi.c:12:26: error: linux/config.h: No such file or directory
make[2]: *** [/home/monkaster/Downloads/vpnclient/linuxcniapi.o] Ошибка 1
make[1]: *** [_module_/home/monkaster/Downloads/vpnclient] Ошибка 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-13-generic'
make: *** [default] Ошибка 2
Failed to make module "cisco_ipsec.ko".

Еще видел предложение поменять в 2х строчках файла одну из фукций на другую. Типа новую, которая заменила предыдущую. Но и с этим не пошло.

Оффлайн Kwah

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 1442
  • Ubuntu 17.10
    • Просмотр профиля
Re: Cisco VPN Client
« Ответ #3 : 27 Март 2007, 00:10:57 »
В общем вот скрипт, который патчит исходники.
#!/bin/bash

# Ref:
# http://speeves.erikin.com/search?updated-max=2007-02-06T17%3A58%3A00-08%3A00&max-results=7
#
#Here are all changes that were necessary for:
#Cisco Systems VPN Client Version 4.8.00 (0490)
#to get it work on Ubuntu Feisty (kernel 2.6.20):


#$ cd /path/to/vpnclient
for f in interceptor.c; do \
sed -i "s?skb_checksum_help(skb,0)?skb_checksum_help(skb)?" $f ; done
for f in interceptor.c; do \
sed -i "s?skb_checksum_help(skb,1)?skb_checksum_help(skb)?" $f ; done
for f in $(grep -r -l CHECKSUM_HW *); do \
sed -i "s?CHECKSUM_HW?CHECKSUM_COMPLETE?" $f; done | grep CHECKSUM
for f in $(grep -r -l config.h *); do \
sed -i "s?linux/config.h?linux/autoconf.h?" $f ; done

Некоторые предупреждения компилятор выдаёт, однако всё вроде работает. Положи скрипт куда-нить, например в дом.каталог, сделай его исполняемым и запусти, находясь в каталоге vpnclient-a. Потом как обычно.

Оффлайн ADoniS

  • Новичок
  • *
  • Сообщений: 9
    • Просмотр профиля
Re: Cisco VPN Client
« Ответ #4 : 27 Март 2007, 08:06:40 »
А где-нить в природе можно достать собранный уже клиент под 6.10, например?
===
Все, вопрос отпал, если это тот, который нашел в репозитории - vpnc. То ли плохо искал раньше, то ли что - но не замечал. :-)
« Последнее редактирование: 27 Март 2007, 08:15:58 от ADoNiS »
Ubuntu 8.04

Оффлайн GovoruN

  • Автор темы
  • Участник
  • *
  • Сообщений: 207
    • Просмотр профиля
Re: Cisco VPN Client
« Ответ #5 : 27 Март 2007, 12:08:17 »
Ну что-то не пошло... :( Вроде взял скрипт. Запустил. Он без ошибок отработал. Но когда запускаю инсталляцию один фиг ругается и не дает откомпилировать. В чем проблема понять не могу. :(
Making module
make -C /lib/modules/2.6.20-13-generic/build SUBDIRS=/home/monkaster/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-13-generic'
  CC [M]  /home/monkaster/Downloads/vpnclient/linuxcniapi.o
In file included from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:7,
                 from include/linux/skbuff.h:19,
                 from include/linux/if_ether.h:111,
                 from include/linux/netdevice.h:29,
                 from /home/monkaster/Downloads/vpnclient/linuxcniapi.c:14:
include/asm/processor.h:82: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
include/asm/processor.h:82: error: requested alignment is not a constant
In file included from include/linux/sched.h:51,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from include/linux/textsearch.h:9,
                 from include/linux/skbuff.h:26,
                 from include/linux/if_ether.h:111,
                 from include/linux/netdevice.h:29,
                 from /home/monkaster/Downloads/vpnclient/linuxcniapi.c:14:
include/linux/jiffies.h:18:5: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:20:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:22:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:24:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:26:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:28:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:30:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:33:3: error: #error You lose.
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:225:31: error: division by zero in #if
include/linux/jiffies.h:225:46: warning: "SHIFT_HZ" is not defined
include/linux/jiffies.h:269:5: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:269:44: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:269:46: error: division by zero in #if
include/linux/jiffies.h:271:7: warning: "CONFIG_HZ" is not defined
In file included from include/linux/sched.h:51,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from include/linux/textsearch.h:9,
                 from include/linux/skbuff.h:26,
                 from include/linux/if_ether.h:111,
                 from include/linux/netdevice.h:29,
                 from /home/monkaster/Downloads/vpnclient/linuxcniapi.c:14:
include/linux/jiffies.h: In function ‘jiffies_to_msecs’:
include/linux/jiffies.h:274: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h:274: error: (Each undeclared identifier is reported only once
include/linux/jiffies.h:274: error: for each function it appears in.)
include/linux/jiffies.h:280:5: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:280:44: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:280:46: error: division by zero in #if
include/linux/jiffies.h:282:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h: In function ‘jiffies_to_usecs’:
include/linux/jiffies.h:285: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h:293:5: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:293:44: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:293:46: error: division by zero in #if
include/linux/jiffies.h:295:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h: In function ‘msecs_to_jiffies’:
include/linux/jiffies.h:298: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h:306:5: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:306:44: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:306:46: error: division by zero in #if
include/linux/jiffies.h:308:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h: In function ‘usecs_to_jiffies’:
include/linux/jiffies.h:311: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h: In function ‘timespec_to_jiffies’:
include/linux/jiffies.h:330: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h:336: error: ‘SHIFT_HZ’ undeclared (first use in this function)
include/linux/jiffies.h: In function ‘jiffies_to_timespec’:
include/linux/jiffies.h:349: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h: In function ‘timeval_to_jiffies’:
include/linux/jiffies.h:371: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h:375: error: ‘SHIFT_HZ’ undeclared (first use in this function)
include/linux/jiffies.h: In function ‘jiffies_to_timeval’:
include/linux/jiffies.h:387: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:400:6: error: division by zero in #if
include/linux/jiffies.h: In function ‘jiffies_to_clock_t’:
include/linux/jiffies.h:401: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h:411:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h: In function ‘clock_t_to_jiffies’:
include/linux/jiffies.h:412: error: ‘CONFIG_HZ’ undeclared (first use in this function)
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:431:6: error: division by zero in #if
include/linux/jiffies.h: In function ‘jiffies_64_to_clock_t’:
include/linux/jiffies.h:432: error: ‘CONFIG_HZ’ undeclared (first use in this function)
In file included from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from include/linux/textsearch.h:9,
                 from include/linux/skbuff.h:26,
                 from include/linux/if_ether.h:111,
                 from include/linux/netdevice.h:29,
                 from /home/monkaster/Downloads/vpnclient/linuxcniapi.c:14:
include/linux/sched.h:272:16: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined
In file included from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from include/linux/textsearch.h:9,
                 from include/linux/skbuff.h:26,
                 from include/linux/if_ether.h:111,
                 from include/linux/netdevice.h:29,
                 from /home/monkaster/Downloads/vpnclient/linuxcniapi.c:14:
include/linux/sched.h: In function ‘dequeue_signal_lock’:
include/linux/sched.h:1309: warning: implicit declaration of function ‘local_irq_save’
include/linux/sched.h:1311: warning: implicit declaration of function ‘local_irq_restore’
In file included from include/linux/module.h:21,
                 from include/linux/textsearch.h:9,
                 from include/linux/skbuff.h:26,
                 from include/linux/if_ether.h:111,
                 from include/linux/netdevice.h:29,
                 from /home/monkaster/Downloads/vpnclient/linuxcniapi.c:14:
include/asm/module.h:62:2: error: #error unknown processor family
In file included from include/asm/hardirq.h:5,
                 from include/linux/hardirq.h:7,
                 from include/linux/interrupt.h:11,
                 from include/linux/netdevice.h:568,
                 from /home/monkaster/Downloads/vpnclient/linuxcniapi.c:14:
include/linux/irq.h: At top level:
include/linux/irq.h:172: error: requested alignment is not a constant
In file included from include/linux/hardirq.h:7,
                 from include/linux/interrupt.h:11,
                 from include/linux/netdevice.h:568,
                 from /home/monkaster/Downloads/vpnclient/linuxcniapi.c:14:
include/asm/hardirq.h:12: error: requested alignment is not a constant
In file included from include/linux/netdevice.h:568,
                 from /home/monkaster/Downloads/vpnclient/linuxcniapi.c:14:
include/linux/interrupt.h: In function ‘cli’:
include/linux/interrupt.h:204: warning: implicit declaration of function ‘local_irq_disable’
include/linux/interrupt.h: In function ‘sti’:
include/linux/interrupt.h:208: warning: implicit declaration of function ‘local_irq_enable’
include/linux/interrupt.h: In function ‘save_flags’:
include/linux/interrupt.h:212: warning: implicit declaration of function ‘local_save_flags’
make[2]: *** [/home/monkaster/Downloads/vpnclient/linuxcniapi.o] Ошибка 1
make[1]: *** [_module_/home/monkaster/Downloads/vpnclient] Ошибка 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-13-generic'
make: *** [default] Ошибка 2

Оффлайн Kwah

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 1442
  • Ubuntu 17.10
    • Просмотр профиля
Re: Cisco VPN Client
« Ответ #6 : 27 Март 2007, 17:09:17 »
Вот вся последовательность действий "с нуля", выполненная на моей машине. Feisty, все апдейты стоят. Ищите разницу, переставьте заголовки ядра... Больше не знаю чего и посоветовать. Собирается, работает.
Цитировать
alexei@unote:~/incoming/ciscovpn$ ls
patch1.sh  profiles  vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz
alexei@unote:~/incoming/ciscovpn$ tar xzf vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz
alexei@unote:~/incoming/ciscovpn$ cd vpnclient/
alexei@unote:~/incoming/ciscovpn/vpnclient$ ../patch1.sh
alexei@unote:~/incoming/ciscovpn/vpnclient$ sudo ./vpn_install
Cisco Systems VPN Client Version 4.8.00 (0490) Linux Installer
Copyright (C) 1998-2005 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.20-13-generic/build]

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

Is the above correct [y]

Making module
make -C /lib/modules/2.6.20-13-generic/build SUBDIRS=/home/alexei/incoming/ciscovpn/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-13-generic'
  CC [M]  /home/alexei/incoming/ciscovpn/vpnclient/linuxcniapi.o
  CC [M]  /home/alexei/incoming/ciscovpn/vpnclient/frag.o
  CC [M]  /home/alexei/incoming/ciscovpn/vpnclient/IPSecDrvOS_linux.o
  CC [M]  /home/alexei/incoming/ciscovpn/vpnclient/interceptor.o
/home/alexei/incoming/ciscovpn/vpnclient/interceptor.c: In function ‘handle_vpnup’:
/home/alexei/incoming/ciscovpn/vpnclient/interceptor.c:310: warning: assignment from incompatible pointer type
/home/alexei/incoming/ciscovpn/vpnclient/interceptor.c:334: warning: assignment from incompatible pointer type
/home/alexei/incoming/ciscovpn/vpnclient/interceptor.c:335: warning: assignment from incompatible pointer type
/home/alexei/incoming/ciscovpn/vpnclient/interceptor.c: In function ‘do_cleanup’:
/home/alexei/incoming/ciscovpn/vpnclient/interceptor.c:378: warning: assignment from incompatible pointer type
  CC [M]  /home/alexei/incoming/ciscovpn/vpnclient/linuxkernelapi.o
  LD [M]  /home/alexei/incoming/ciscovpn/vpnclient/cisco_ipsec.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: /home/alexei/incoming/ciscovpn/vpnclient/cisco_ipsec.o - Section mismatch: reference to .init.text: from .data between 'interceptor_dev' (at offset 0xb4) and 'interceptor_notifier'
WARNING: could not find /home/alexei/incoming/ciscovpn/vpnclient/.libdriver.so.cmd for /home/alexei/incoming/ciscovpn/vpnclient/libdriver.so
  CC      /home/alexei/incoming/ciscovpn/vpnclient/cisco_ipsec.mod.o
  LD [M]  /home/alexei/incoming/ciscovpn/vpnclient/cisco_ipsec.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-13-generic'
Create module directory "/lib/modules/2.6.20-13-generic/CiscoVPN".
Copying module to directory "/lib/modules/2.6.20-13-generic/CiscoVPN".
Already have group 'bin'

Creating start/stop script "/etc/init.d/vpnclient_init".
    /etc/init.d/vpnclient_init
Enabling start/stop script for run level 3,4 and 5.
Creating global config /etc/opt/cisco-vpnclient

Installing license.txt (VPN Client license) in "/opt/cisco-vpnclient/":

Installing bundled user profiles in "/etc/opt/cisco-vpnclient/Profiles/":
* New Profiles     : sample

Copying binaries to directory "/opt/cisco-vpnclient/bin".
Adding symlinks to "/usr/local/bin".
    /opt/cisco-vpnclient/bin/vpnclient
    /opt/cisco-vpnclient/bin/cisco_cert_mgr
    /opt/cisco-vpnclient/bin/ipseclog
Copying setuid binaries to directory "/opt/cisco-vpnclient/bin".
    /opt/cisco-vpnclient/bin/cvpnd
Copying libraries to directory "/opt/cisco-vpnclient/lib".
    /opt/cisco-vpnclient/lib/libvpnapi.so
Copying header files to directory "/opt/cisco-vpnclient/include".
    /opt/cisco-vpnclient/include/vpnapi.h

Setting permissions.
    /opt/cisco-vpnclient/bin/cvpnd (setuid root)
    /opt/cisco-vpnclient (group bin readable)
    /etc/opt/cisco-vpnclient (group bin readable)
    /etc/opt/cisco-vpnclient/Profiles (group bin readable)
    /etc/opt/cisco-vpnclient/Certificates (group bin readable)
* You may wish to change these permissions to restrict access to root.
* You must run "/etc/init.d/vpnclient_init start" before using the client.
* This script will be run AUTOMATICALLY every time you reboot your computer.

Оффлайн GovoruN

  • Автор темы
  • Участник
  • *
  • Сообщений: 207
    • Просмотр профиля
Re: Cisco VPN Client
« Ответ #7 : 27 Март 2007, 18:59:02 »
Спасибо за помощь. Все решилось.
Несколько раз снес поставил хедеры и build-essential. Но походу это не помогло. Установилось после того как один раз запустил непатченный инсталлятор, потом пропатчил и запустил повторно. После стого получилось нормально и откомпилировалось.

Оффлайн Till

  • Новичок
  • *
  • Сообщений: 3
    • Просмотр профиля
Re: Cisco VPN Client [РЕШЕНО]
« Ответ #8 : 02 Апрель 2007, 19:24:28 »
А у меня все равно ругается:
root@till:~/Distributive/Cisco/VPN client/vpnclient# ./vpn_install
Cisco Systems VPN Client Version 4.8.00 (0490) Linux Installer
Copyright (C) 1998-2005 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.17-10-generic/build]

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

Is the above correct [y]

Making module
make -C /lib/modules/2.6.17-10-generic/build SUBDIRS=/home/alexey/Distributive/Cisco/VPN client/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
make[1]: *** Нет правила для сборки цели `client/vpnclient'.  Останов.
make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
make: *** [default] Ошибка 2
Failed to make module "cisco_ipsec.ko".

Может кто-нибудь кинет бинарник?

Оффлайн Till

  • Новичок
  • *
  • Сообщений: 3
    • Просмотр профиля
Re: Cisco VPN Client [РЕШЕНО]
« Ответ #9 : 02 Апрель 2007, 19:32:45 »
Нет, все таки поставил. Переустановил хедеры, сперва запустил после патча, не помогло, потом удалил папку с дистром, распаковал снова, запустил без патча и все заработало.
Есть вопрос, а с ключами eToken этот клиент работает?

Оффлайн Till

  • Новичок
  • *
  • Сообщений: 3
    • Просмотр профиля
Re: Cisco VPN Client [РЕШЕНО]
« Ответ #10 : 03 Апрель 2007, 00:49:15 »
Только работает ка-то криво:
root@till:~# /etc/init.d/vpnclient_init stop
Shutting down /opt/cisco-vpnclient/bin/vpnclient: ERROR: Module cisco_ipsec is in use
Failed (rmmod)
root@till:~# /etc/init.d/vpnclient_init start
Starting /opt/cisco-vpnclient/bin/vpnclient: module cisco_ipsec is already running. Use restart instead.
root@till:~#

Оффлайн kleva

  • Новичок
  • *
  • Сообщений: 8
    • Просмотр профиля
Re: Cisco VPN Client [РЕШЕНО]
« Ответ #11 : 29 Декабрь 2007, 10:00:21 »
Пытаюсь сколмпилить клиента.
Выдает ошибку:
Цитировать
Making module
make -C /lib/modules/2.6.20-15-generic/build SUBDIRS=/home/kleva/Desktop/UBuntu help/VPN Client 4 cisco 3/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
make[1]: *** No rule to make target `help/VPN'.  Stop.
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

версию закачал vpnclient-linux-4.8.00.0490-k9.tar.gz
патч применил vpnclient-linux-2.6.22.diff

Оффлайн kleva

  • Новичок
  • *
  • Сообщений: 8
    • Просмотр профиля
Re: Cisco VPN Client [РЕШЕНО]
« Ответ #12 : 31 Декабрь 2007, 12:52:16 »
неужели ни у кого нет идей? :-(

Оффлайн zloysanta

  • Новичок
  • *
  • Сообщений: 9
    • Просмотр профиля
Re: Cisco VPN Client [РЕШЕНО]
« Ответ #13 : 02 Январь 2008, 04:32:49 »
неужели ни у кого нет идей? :-(

пробелы в имени директории с исходниками
//wbr Капитан Очевидность

Оффлайн kleva

  • Новичок
  • *
  • Сообщений: 8
    • Просмотр профиля
Re: Cisco VPN Client [РЕШЕНО]
« Ответ #14 : 09 Январь 2008, 10:55:21 »
неужели ни у кого нет идей? :-(

пробелы в имени директории с исходниками
//wbr Капитан Очевидность

Thx, теперь получилось!

 

Страница сгенерирована за 0.063 секунд. Запросов: 22.