No se puede instalar Cisco VPN Client (Solucionado)

Imagen de shootgunmx
0 puntos

Hola a todos estoy tratando de migrar de XP a Ubuntu, pero no he podido instalar Cisco VPN Client, en otras distribuciones funciona bien la instalación pero en Ubuntu 8.04 no y creo que es por el la versión del kernell pero no estoy seguro, he buscado en la red y me he encontrado que un error similar ocurre con el VMWare el cual ya fué solucionado con un parche, me pregunto si alguien de ustedes podría ayudarme a instalarlo. anexo elmensaje de error. y la sálida de la instalación

/home/czs90d/vpn/vpnclient/GenDefs.h:113: error: tipos en conflicto para ‘uintptr_t’

De antemano gracias

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

Is the above correct [y]

Making module
make -C /lib/modules/2.6.24-17-generic/build SUBDIRS=/home/czs90d/vpn/vpnclient modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.24-17-generic'
CC [M] /home/czs90d/vpn/vpnclient/linuxcniapi.o
In file included from /home/czs90d/vpn/vpnclient/Cniapi.h:15,
from /home/czs90d/vpn/vpnclient/linuxcniapi.c:30:
/home/czs90d/vpn/vpnclient/GenDefs.h:113: error: tipos en conflicto para ‘uintptr_t’
include/linux/types.h:40: error: la declaración previa de ‘uintptr_t’ estaba aquí
make[2]: *** [/home/czs90d/vpn/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/czs90d/vpn/vpnclient] Error 2
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.24-17-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

Imagen de leblank
+1
0
-1

saludos pues a mi me sale el mismo error no tengo idea de que pueda ser ojala alguien pudiera orientarnos gracias de antemano

+1
0
-1

Gonzalo Blanco O.

Imagen de shootgunmx
+1
0
-1

Saludos:

Ya fue solucionado, existen 2 posibilidadaes.

1.- Istalar la nueva versión que es vpnclient-linux-x86_64-4.8.01.0640-k9 la cual se instala de manera normal y sin parches, lo malo es que no se de donde lo puedan bajar, en mi caso la gente de telecomunicaciones de la empresa en donde trabajo lo bajó para mi de la página de cisco.

2.- ya hay un parche para la versión vpnclient-linux-4.8.00.0490-k9, de hecho son dos parches vpnclient-linux-2.6.24-final.diff y cisco_skbuff_offset.patch estos si están disponibles para bajar desde internet pero no tengo el enlace, solo hay que buscarlos con esos nombres

+1
0
-1
Imagen de leblank
+1
0
-1

ok gracias ya me pasaron el archivo aunque aun no lo instalo no creo que tenga problemas saludos

+1
0
-1

Gonzalo Blanco O.

Imagen de gsurchi
+1
0
-1

1 - Yo lamentablemente, no logro sacarlo adelante, ni con vpnclient-linux-x86_64-4.8.01.0640-k9. Me sigue diciendo lo mismo:
Making module
make -C /lib/modules/2.6.24-21-generic/build SUBDIRS=/home/bichitos/vpnclient modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.24-21-generic'
CC [M] /home/bichitos/vpnclient/linuxcniapi.o
In file included from /home/bichitos/vpnclient/Cniapi.h:15,
from /home/bichitos/vpnclient/linuxcniapi.c:31:
/home/bichitos/vpnclient/GenDefs.h:113: error: tipos en conflicto para ‘uintptr_t’
include/linux/types.h:40: error: la declaración previa de ‘uintptr_t’ estaba aquí
make[2]: *** [/home/bichitos/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/bichitos/vpnclient] Error 2
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.24-21-generic'
make: *** [default] Error 2

He probado de todos pero siempre termino en el mismo error. Pero no hay que desesperar, debe haber un motivo lógico para esto.

+1
0
-1
Imagen de cesar_spain
+1
0
-1

Hola a todos:

He dejado un script de instalación de Cliente VPN de Cisco:

Instrucciones Instalacion Cliente VPN Cisco en Ubuntu 8

Vuelvo a postearlo aquí:

#!/bin/bash
#####################################
# INSTALL_VPN.SH
#####################################
#  Script for installing the Cisco
# VPN Client in Ubuntu 8.04 - 64 bits
#
#   It can be easily adapted for 
# other distros and architectures
#####################################
# Author : Cesar Delgado Gonzalez
# Version: 1.0
# Date   : 10-March-2007
#####################################

##################################
# ENVIRONMENT
#################################

# 0.- General Variables
#----------------------
ERROR=1
OK=0
TRIES=1 # Attempts per Mirror

# 1.- Where to download
#----------------------
WORK_DIR=$HOME

# Syntax: Program - Mirror 1 - Mirror 2 ... Mirror N

# 64 bits Arch
PROGRAM=(vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz                 
         http://projects.tuxx-home.at/ciscovpn/clients/linux/4.8.01/  \
         http://www.longren.org/files/                                \
         )

# 32 bits Arch (not required, x86_64 source code works properly in i386 machines)
#PROGRAM=(vpnclient-linux-4.8.00.0490-k9.tar.gz                 \
#         http://projects.tuxx-home.at/ciscovpn/clients/linux/4.8.00/  \
#         http://www.longren.org/files/                                \
#         )


PATCH=(vpnclient-linux-2.6.24-final.diff              
       http://projects.tuxx-home.at/ciscovpn/patches/ \
       )

PATCH_2=(cisco_skbuff_offset.patch                     
         http://tuxx-home.at/projects/cisco-vpnclient/ \
        )

# 3.- Current Kernel Version
#---------------------------
KERNEL=`uname -r`
TYPE_KERNEL=`uname -r | awk 'BEGIN {FS="-";}{print $3}'`


################################################################################
# MODULE MISCELLANEOUS ====> GENERAL FUNCTIONS 
################################################################################

#-----------------------------------------------------------------------
# AYUDA 
#-----------------------------------------------------------------------
#  Muestra la ayuda por pantalla
#-----------------------------------------------------------------------

ayuda()
{
   echo "installVPN.sh --> Install Cisco VPN Client in Ubuntu 8.04"
   echo "  Best way to use it is through KVPNC, since it integrates it" 
}


#-----------------------------------------------------------------------
# TRATA_ERRORES
#-----------------------------------------------------------------------
#   Trata todos los posibles errores del script.
#
#    Se considerar salida err ea a toda salida del script sin la creaci 
#  de una estructura de datos (por ejm.: opcion -h provoca salida errea).
#
#     Variables de entrada:
#         $1 = Tipo de Error
#         $2 = Ruta a la que el usuario no tiene acceso (inexistencia o permisos)
#         $3 = Directorio de Trabajo
#-----------------------------------------------------------------------
trataErrores()
{

  ERROR="1"

  case $1 in
     -ayuda) # Solicitud de ayuda
            ayuda
        exit $ERROR;;

     -tryMirror) 
        echo "===========> Trying PACKAGE: $3 "
        echo "               from MIRROR : $2 "
        echo;;

     -downloadSucceed) 
        echo
        echo "*********************************************************************************"
        echo " Download succeed FOR  $3 "
        echo "                  FROM $2 "        
        echo "*********************************************************************************"
        echo ""  ;;

     -downloadFailed) 
        echo 
        echo "*********************************************************************************"
        echo "ERROR: PACKAGE $3 not found in" 
        echo "       MIRROR  $2"
        echo "*********************************************************************************"
        echo "" ;;

     -noMirrors) # There is no mirrors for this package
         echo 
         echo "*********************************************************************************"
         echo "ERROR ==> Package $2 has no mirror list"
         echo "*********************************************************************************"
         exit $ERROR;;


     -packageNotFound) # Package not found on any mirror
         echo
         echo "*********************************************************************************"
         echo "ERROR ==> Package $2 not found on any mirror of the list"
         echo "*********************************************************************************"
         exit $ERROR;;

     -requiredPack) # Failed installing required packages
         echo "ERROR ==> Can't install required packages: Linux source + Build Essentials"
         exit $ERROR;;
      
     -decompress) 
           echo " ERROR ==> File / Directory Not Available => Unpack Failed, cleaning and exiting"
           cleanEnvironment
           exit $ERROR ;;

  esac
}

################################################################################
# MODULE DOWNLOAD ====> FUNCTIONS FOR DOWNLOADING THE PACKAGES 
################################################################################

#-----------------------------------------------------------------------
#  DOWNLOAD PACKAGE 
#-----------------------------------------------------------------------
#   Try to download one package
#  from several mirrors. If all of them
#  fails, return 1
#
#   $1 = Number of tries per mirror
#   $2 = Package to download 
#   $3 ...  $N = List of mirrors
#-----------------------------------------------------------------------
downloadPackage () { 


   # 1.- Check that exist at least one Mirror on the input List
   #-----------------------------------------------------------
   if [ $# = 2 ]; then 
      trataErrores -noMirrors $2


   # 2.- Search for a the package on the mirrors list
   #-----------------------------------------------------------
   else

       POSITION=1
       for MIRROR in $@; do

          # 2.1.- Capture tries per mirror
          if [ $POSITION = 1 ]; then
               TRIES=$MIRROR

          # 2.2.- Capture package name
          elif [ $POSITION = 2 ]; then
               PACKAGE=$MIRROR

          # 2.3.- Try to get the package from current mirror
          else

                # Try the download
                trataErrores -tryMirror $MIRROR $PACKAGE
                `wget --tries=$TRIES $MIRROR$PACKAGE` 

                # Check if succeed
              if [ $? = $OK ]; then
                   trataErrores -downloadSucceed $MIRROR$PACKAGE $PACKAGE
                   break;
                     
              fi

               # Report the fail
               trataErrores -downloadFailed $MIRROR$PACKAGE $PACKAGE

          fi

          # 2.4.- Incrementing position
          POSITION=`expr $POSITION + 1`

       done 
   fi

   # 4.- Package not found of the list of mirrors
   #-----------------------------------------------------------
   if [ $POSITION = $# ] && [ $? != $OK ]; then
    trataErrores -packageNotFound $PACKAGE
   fi
}

#-----------------------------------------------------------------------
#  GET PACKAGES 
#-----------------------------------------------------------------------
#   Downloading the packages
# from the current mirror
#-----------------------------------------------------------------------
getPackages() {

        echo  "================================================================================"
        echo  "                    DOWNLOADING CISCO VPN CLIENT "         
        echo  "================================================================================"
        echo
        downloadPackage $TRIES ${PROGRAM[*]}
         
        echo  "================================================================================"
        echo  "      DOWNLOADING UBUNTU PATCHES FOR KERNEL  = ${KERNEL} "
        echo  "================================================================================"
        echo
        downloadPackage $TRIES ${PATCH[*]}
        downloadPackage $TRIES ${PATCH_2[*]}
 }

#-----------------------------------------------------------------------
#  INSTALL REQUIRED PACKAGES 
#-----------------------------------------------------------------------
#   Procedure that install required 
#-----------------------------------------------------------------------
installDependencies() {
 
     echo  "=============================================================================================="
     echo  " INSTALLING REQUIRED UBUNTU PACKAGES: linux kernel + build essentials + unpacking packages    "
     echo  "=============================================================================================="
     echo  " --> Command: "
     echo  " sudo apt-get install  linux-${TYPE_KERNEL} linux-headers-${KERNEL} build-essential gcc gzip bzip zip unzip rar unrar "  
     sudo apt-get install  linux-${TYPE_KERNEL} linux-headers-${KERNEL} build-essential gcc gzip bzip2 zip unzip rar unrar 
      
     # Error Treatment
     if [ ! "$?" -eq "$OK" ] ; then
        trataErrores -requiredPack
     fi 
}


################################################################################
# MODULE INSTALL ====> FUNCTIONS FOR COMPILING AND INSTALLING PROGRAM 
################################################################################

#-----------------------------------------------------------------------
#  UNPACK PACKAGES 
#-----------------------------------------------------------------------
#   Uncompress packages. Check file extension and uncompress
#  properly
#-----------------------------------------------------------------------
unpackPackages() {


   #----------------------
   # ENVIRONMENT
   #----------------------
   local OUT=$OK

   #----------------------
   # ACTIONS
   #----------------------
 
   # 0.- Tracing
   #---------------------
   echo  "================================================================================"
   echo  "             UNPACK PACKAGE: $1  "
   echo  "================================================================================"
   echo
 
   # 1.- Deflating File
   #------------------------------------------------------------
   echo "................................. FILE DECOMPRESSION .............................. "
   echo "File Extension: \${1##*.}=${1##*.}"
   local EXTENSION=${1##*.}
   echo "File Name: \${1%.*}=${1%.*}"
   FILENAME=${1%.*}

   case "$EXTENSION" in
     gz)  echo " ===> Decompress gz: gunzip -d $1"
          gunzip -d "$1" ; OUT="$?" ;;
     bz)  echo " ===> Decompress bz: bzip2 -d $1"
          bzip2 -d "$1"   ; OUT="$?" ;;
     zip) echo " ===> Decompress .zip: unzip $1" 
          unzip "$1"     ; OUT="$?" ;;
     rar) echo " ===> Decompress .rar: unrar $1"
          unrar "$1"     ; OUT="$?" ;;
     *) FILENAME="$1" ;;
   esac

   # 2.- Unpacking File
   #------------------------------------------------------------
   if [ "$OUT" -eq "$OK" ]; then
        TAR=${FILENAME##*.}

        if [ -n $TAR ] ; then # ================> There is an extension to check 

            if [ "$TAR" == "tar" ] ; then  # ====> Extension = .tar
                 echo ".............................. UNPACK TAR FILE .............................. "
                 
                 # 2.1.- Tar Base Detection
                 echo " ---> TAR base path detection: tar -tf ""$FILENAME"" | awk 'BEGIN {FS=""/""} {print $1}' | uniq"
                 TAR_BASE=`tar -tf "$FILENAME" | awk 'BEGIN {FS="/"} {print $1}' | uniq` 
                 echo " TAR Base = $TAR_BASE"

                 # 2.2.- Unpacking Tar File
                 echo " --> Unpack .tar: tar-xvf $FILENAME"
                 tar xvf "$FILENAME"

                 # 2.3.- Returning Output path to File
                 local RUTA=`dirname $FILENAME`
                 FILENAME="${RUTA}/${TAR_BASE}"
                 OUT="$?"
            fi 
        fi
   else
         trataErrores -decompress
   fi


   # 3.- Error Treatment
   #------------------------------------------------------------
   echo "................................... RESULTING FILE  ................................... "
   echo " Filename = $FILENAME "
   if [ -e $FILENAME ] && [ "$?" -eq "$OK" ] ; then 
        echo " File / Directory Available     => Unpack OK"
   else
        trataErrores -decompress
   fi

}

#-----------------------------------------------------------------------
#  APPLY PATCHES 
#-----------------------------------------------------------------------
#   Apply all Ubuntu specific patches 
#-----------------------------------------------------------------------
applyPatches() {
     

   #----------------------
   # ACTIONS
   #----------------------
   
     echo  "================================================================================"
     echo  " APPLY PATCHES AND ADJUSTMENTS  "
     echo  "================================================================================"
     echo "cd ""${PROGRAM[0]}"""
     cd "${PROGRAM[0]}"


     # 1.- Adjusting MakeFile 
     #---------------------
     echo " ......................... ADJUSTING MAKEFILE .............................. "
     echo " ========> > Replace CFLAGS to EXTRA_CFLAGS"
     echo "sudo sed -i 's/CFLAGS/EXTRA_CFLAGS/g'  ""${PROGRAM[0]}/Makefile"""
     sudo sed -i 's/CFLAGS/EXTRA_CFLAGS/g'              "${PROGRAM[0]}/Makefile"
     echo "sudo sed -i 's/EXTRA_EXTRA_CFLAGS/EXTRA_CFLAGS/g'  ""${PROGRAM[0]}/Makefile"""
     sudo sed -i 's/EXTRA_EXTRA_CFLAGS/EXTRA_CFLAGS/g'  "${PROGRAM[0]}/Makefile" 
     
     echo 
     echo "  Resulting MakeFile"
     cat ${PROGRAM[0]}/Makefile

     # 2.- Applying Patches 
     #---------------------
     echo " ......................... APPLYING PATCHES .............................. "

     echo "......... sudo patch < ""${PATCH[0]}"""
     sudo patch < "${PATCH[0]}"

     echo "......... sudo patch < ""${PATCH_2[0]}"""
     sudo patch < "${PATCH_2[0]}"
}

#-----------------------------------------------------------------------
#  COMPILE PROGRAM 
#-----------------------------------------------------------------------
#   Compile and install program 
#-----------------------------------------------------------------------
compileProgram() {
     echo  "================================================================================"
     echo  " COMPILE AND INSTALL PROGRAM  "
     echo  "================================================================================"
     echo "cd ""${PROGRAM[0]}"""
     cd "${PROGRAM[0]}"
    
     echo " =======> Installing VPN Client"
     echo "......... sudo ""${PROGRAM[0]}/vpn_install"""
     sudo "${PROGRAM[0]}/vpn_install"

     if [ "$?" -eq "$OK" ] ; then
         echo " =======> Starting Cisco VPN Client"
         echo "......... sudo /etc/init.d/vpnclient_init start"
         sudo /etc/init.d/vpnclient_init start
     else
         trataErrores -installProgram
     fi
}

#-----------------------------------------------------------------------
#  CLEAN ENVIRONMENT 
#-----------------------------------------------------------------------
#   Remove everything used 
#-----------------------------------------------------------------------
cleanEnvironment() {

    echo  "================================================================================"
    echo  " CLEAN ENVIRONMENT  "
    echo  "================================================================================"

    echo "......... rm -R ${PROGRAM[0]}*"
    rm -fR ${PROGRAM[0]}*

    echo "......... rm ${PATCH[0]}*"
    rm -f ${PATCH[0]}*

    echo "......... rm ${PATCH_2[0]}*"
    rm -f ${PATCH_2[0]}*
}


#-----------------------------------------------------------------------
#  INSTALL PROGRAM 
#-----------------------------------------------------------------------
#   "Public" procedure of module 
#-----------------------------------------------------------------------
installProgram() {

     # 1.- Unpack files 
     #-------------------
     unpackPackages "${WORK_DIR}/${PROGRAM[0]}"
     PROGRAM[0]="$FILENAME"
     unpackPackages "${WORK_DIR}/${PATCH[0]}"
     PATCH[0]="$FILENAME"
     unpackPackages "${WORK_DIR}/${PATCH_2[0]}"
     PATCH_2[0]="$FILENAME"

     # 2- Apply Ubuntu Specific modifications
     #-------------------
     applyPatches

     # 3.- Compile Program
     #-------------------
     compileProgram 

     # 4.- Clean Environment
     #-------------------
     cleanEnvironment 
}

################################################################################
# MAIN
################################################################################
cd $WORK_DIR
installDependencies
getPackages
installProgram
exit "$OK"
#------------------------------------------------------------------------------
#                             END INSTALL VPN 
#------------------------------------------------------------------------------ 
+1
0
-1
Imagen de egarbi
+1
0
-1

para kubuntu 8.10 x_64 no me funciona, ni con, ni sin partches ni usando el script de cesar delagado gonzalez.
Esta es la salida aplicando el script:

Making module
make -C /lib/modules/2.6.27-7-generic/build SUBDIRS=/home/enrique/vpnclient modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.27-7-generic'
CC [M] /home/enrique/vpnclient/linuxcniapi.o
En el archivo incluído de /home/enrique/vpnclient/Cniapi.h:15,
from /home/enrique/vpnclient/linuxcniapi.c:31:
/home/enrique/vpnclient/GenDefs.h:110:2: aviso: #warning 64 bit
In file included from /home/enrique/vpnclient/Cniapi.h:15,
from /home/enrique/vpnclient/linuxcniapi.c:31:
/home/enrique/vpnclient/GenDefs.h:111: error: tipos en conflicto para ‘uintptr_t’
include/linux/types.h:40: error: la declaración previa de ‘uintptr_t’ estaba aquí
/home/enrique/vpnclient/linuxcniapi.c: En la función ‘CniInjectReceive’:
/home/enrique/vpnclient/linuxcniapi.c:341: aviso: conversión de puntero a entero de tamaño diferente
/home/enrique/vpnclient/linuxcniapi.c:342: aviso: conversión de puntero a entero de tamaño diferente
/home/enrique/vpnclient/linuxcniapi.c: En la función ‘CniInjectSend’:
/home/enrique/vpnclient/linuxcniapi.c:481: aviso: conversión de puntero a entero de tamaño diferente
/home/enrique/vpnclient/linuxcniapi.c:482: aviso: conversión de puntero a entero de tamaño diferente
/home/enrique/vpnclient/linuxcniapi.c:491: aviso: conversión a puntero desde un entero de tamaño diferente
/home/enrique/vpnclient/linuxcniapi.c:491: aviso: conversión de puntero a entero de tamaño diferente
make[2]: *** [/home/enrique/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/enrique/vpnclient] Error 2
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
./script-intala-vpn.sh: line 445: compileProgram: orden no encontrada

Alguna Ayuda??

+1
0
-1
Imagen de heavywizard
+1
0
-1

Buenas, estoy intentando conectar a través de cisco vpn con un ubuntu 8.04 LTS Server, pero se me queda en:

Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.24-24-server #1 SMP Tue Jul 7 20:21:17 UTC 2009 i686
Config file directory: /etc/opt/cisco-vpnclient
Enter Certificate password:
Initializing the VPN connection.

..y de ahi no pasa.

No se si es problema del ubuntu al abrir los certificados porque he intentado listarlos con:

cisco_cert_mgr -R -op list
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.24-24-server #1 SMP Tue Jul 7 20:21:17 UTC 2009 i686

..pero tampoco pasa de ahi.

Alguien sabe si puede faltar alguna libreria o algo? No es tema de permisos (están Certificates y Profiles a 777)
Muchisimas Gracias.

+1
0
-1
Imagen de ledguy87
+1
0
-1

Solucionaste esto????
Tengo el mismo problema y llevo 4 días como loco y no lo saco.
Saludos¡¡¡

+1
0
-1