[Openswan Users] Openswan isntallation

Zaeem Sherazi zaeemabbas at hotmail.com
Mon Jan 11 08:10:00 EST 2010


Dear Ondrej,

 

Thanks for your continous support. I have prepared a computer with centOS 5.3 and kernel (Linux localhost.localdomain 2.6.18-128.el5xen #1 SMP Wed Jan 21 11:55:02 EST 2009 i686 i686 i386 GNU/Linux). WHen I am installig openswan-2.6.24.tar.gz I am facing again same error that I faced while installing it on RHEL5.

 

[root at localhost openswan-2.6.24]# make module
Building module for a 2.6 kernel
make[1]: Entering directory `/usr/src/openswan-2.6.24'
make[2]: Entering directory `/usr/src/openswan-2.6.24'
mkdir -p /usr/src/openswan-2.6.24/modobj26
echo ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/des/*.S /usr/src/openswan-2.6.24/modobj26
ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/des/dx86unix.S /usr/src/openswan-2.6.24/modobj26
(rm -f /usr/src/openswan-2.6.24/modobj26/des; mkdir -p /usr/src/openswan-2.6.24/modobj26/des && cd /usr/src/openswan-2.6.24/modobj26/des && ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/des/* . && ln -s -f Makefile.fs2_6 Makefile)
(rm -f /usr/src/openswan-2.6.24/modobj26/aes; mkdir -p /usr/src/openswan-2.6.24/modobj26/aes && cd /usr/src/openswan-2.6.24/modobj26/aes && ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/aes/* . && ln -s -f Makefile.fs2_6 Makefile)
mkdir -p /usr/src/openswan-2.6.24/modobj26/aes
cp /usr/src/openswan-2.6.24/packaging/makefiles/module26.make /usr/src/openswan-2.6.24/modobj26/Makefile
echo "# "                        >> /usr/src/openswan-2.6.24/modobj26/Makefile
echo "# Local Variables: "       >> /usr/src/openswan-2.6.24/modobj26/Makefile
echo "# compile-command: \"make -C /usr/src/openswan-2.6.24 ARCH=i386 KERNELSRC=/usr/src/kernels/linux-2.6.18/ MOD26BUILDDIR=/usr/src/openswan-2.6.24/modobj26 module26\""         >> /usr/src/openswan-2.6.24/modobj26/Makefile
echo "# End: "       >> /usr/src/openswan-2.6.24/modobj26/Makefile
ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/match*.S /usr/src/openswan-2.6.24/modobj26
make[2]: Leaving directory `/usr/src/openswan-2.6.24'
make -C /usr/src/kernels/linux-2.6.18/  BUILDDIR=/usr/src/openswan-2.6.24/modobj26 SUBDIRS=/usr/src/openswan-2.6.24/modobj26 MODULE_DEF_INCLUDE=/usr/src/openswan-2.6.24/packaging/linus/config-all.h MODULE_DEFCONFIG=/usr/src/openswan-2.6.24/linux/net/ipsec/defconfig  MODULE_EXTRA_INCLUDE= ARCH=i386 V= modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-128.el5-xen-i686'
ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/ipsec_init.c /usr/src/openswan-2.6.24/modobj26/ipsec_init.c
  CC [M]  /usr/src/openswan-2.6.24/modobj26/ipsec_init.o
ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/ipsec_sa.c /usr/src/openswan-2.6.24/modobj26/ipsec_sa.c
  CC [M]  /usr/src/openswan-2.6.24/modobj26/ipsec_sa.o
ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/ipsec_radij.c /usr/src/openswan-2.6.24/modobj26/ipsec_radij.c
  CC [M]  /usr/src/openswan-2.6.24/modobj26/ipsec_radij.o
ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/radij.c /usr/src/openswan-2.6.24/modobj26/radij.c
  CC [M]  /usr/src/openswan-2.6.24/modobj26/radij.o
ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/ipsec_life.c /usr/src/openswan-2.6.24/modobj26/ipsec_life.c
  CC [M]  /usr/src/openswan-2.6.24/modobj26/ipsec_life.o
ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/ipsec_proc.c /usr/src/openswan-2.6.24/modobj26/ipsec_proc.c
  CC [M]  /usr/src/openswan-2.6.24/modobj26/ipsec_proc.o
ln -s -f /usr/src/openswan-2.6.24/linux/net/ipsec/ipsec_tunnel.c /usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c
  CC [M]  /usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.o
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function âklips_headerâ:
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:249: error: âstruct net_deviceâ has no member named âheader_opsâ
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function âklips_header_parseâ:
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:278: error: âstruct net_deviceâ has no member named âheader_opsâ
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function âklips_rebuild_headerâ:
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:331: error: âstruct net_deviceâ has no member named âheader_opsâ
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function âklips_header_cacheâ:
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:339: warning: passing argument 1 of ânetdev_privâ discards qualifiers from pointer target type
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:355: error: âstruct net_deviceâ has no member named âheader_opsâ
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function âklips_header_cache_updateâ:
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:363: warning: passing argument 1 of ânetdev_privâ discards qualifiers from pointer target type
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:396: error: âstruct net_deviceâ has no member named âheader_opsâ
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c: At top level:
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:401: error: variable âklips_header_opsâ has initializer but incomplete type
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:402: error: unknown field âcreateâ specified in initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:402: warning: excess elements in struct initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:402: warning: (near initialization for âklips_header_opsâ)
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:403: error: unknown field âparseâ specified in initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:403: warning: excess elements in struct initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:403: warning: (near initialization for âklips_header_opsâ)
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:404: error: unknown field ârebuildâ specified in initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:404: warning: excess elements in struct initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:404: warning: (near initialization for âklips_header_opsâ)
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:405: error: unknown field âcacheâ specified in initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:405: warning: excess elements in struct initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:405: warning: (near initialization for âklips_header_opsâ)
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:406: error: unknown field âcache_updateâ specified in initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:406: warning: excess elements in struct initializer
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:406: warning: (near initialization for âklips_header_opsâ)
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function âipsec_tunnel_cache_updateâ:
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:1270: warning: passing argument 1 of ânetdev_privâ discards qualifiers from pointer target type
/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.c:1319: warning: passing argument 3 of âprv->header_cache_updateâ discards qualifiers from pointer target type
make[3]: *** [/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.o] Error 1
make[2]: *** [_module_/usr/src/openswan-2.6.24/modobj26] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-128.el5-xen-i686'
make[1]: *** [module26] Error 2
make[1]: Leaving directory `/usr/src/openswan-2.6.24'
make: *** [module] Error 2


Now I seek your expert advice on this. Whether I need to upgrade kernel of what? If yes then what version would be required?

 

Thanks once again for your help.

 

Regards,

Zaeem Sherazi 



 

> Date: Mon, 11 Jan 2010 11:48:31 +0100
> From: webserv at s3group.cz
> To: zaeemabbas at hotmail.com
> CC: users at openswan.org
> Subject: Re: [Openswan Users] Openswan isntallation
> 
> Hi Zaeem,
> As I said previously, it is quite possible that the openswan 
> installation rpm was added in latter updates to RHEL-5.
> Also openswan relies tightly on the kernel so you should update your 
> kernel first.
> To do this you should either purchase RHEL license or switch to CentOS...
> 
> Ondrej
> 
> Zaeem Sherazi wrote:
> > Dear Ondrej,
> > 
> > Actually I am not using license version of OS and secondly it is older 
> > version (RHEL 5). So it is I thought its better to download lates 
> > version of Openswan and install it. Now I am using 
> > *openswan-2.6.24.tar.gz* but facing below mentioned error.
> > 
> >
> > "make[3]: *** [/usr/src/openswan-2.6.24/modobj26/ipsec_tunnel.o] Error 1
> >
> > make[2]: *** [_module_/usr/src/openswan-2.6.24/modobj26] Error 2
> >
> > make[2]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-i686'
> >
> > make[1]: *** [module26] Error 2
> >
> > make[1]: Leaving directory `/usr/src/openswan-2.6.24'
> >
> > make: *** [module] Error 2"
> >
> > 
> >
> > When I rebooted PC then on boot screen I can see message "*Starting 
> > ipsec: ipsec_setup: Starting openswan IPSec U2.6.24/K2.6.18-8.el5*" 
> > It seems system is trying to start openswan but unable to do so. As a 
> > result operating system is not able to boot fully and just stuck on 
> > boot level with above error.
> >
> > 
> > Please let me know if you know its solution.
> > 
> > Thanking you in advance
> >
> >
> > *Regards,*
> >
> > *Zaeem Sherazi *
> >
> >
> >
> > 
> > > Date: Mon, 11 Jan 2010 10:00:33 +0100
> > > From: webserv at s3group.cz
> > > To: zaeemabbas at hotmail.com
> > > Subject: Re: [Openswan Users] Openswan isntallation
> > >
> > > If I were you, I would always prefer the version shipped with the OS as
> > > this way you can always use official RedHat support, should you have 
> > any
> > > problems....
> > >
> > > Ondrej
> > >
> > > Zaeem Sherazi wrote:
> > > > Dear Paul,
> > > >
> > > > Please let me know if this is stable and tested version that you are
> > > > referring? Because I may be using this in production environment.
> > > >
> > > > Regards,
> > > > Zaeem
> > > >
> > > >
> > > >
> > > > > Date: Fri, 8 Jan 2010 12:26:49 -0500
> > > > > From: paul at xelerance.com
> > > > > To: zaeemabbas at hotmail.com
> > > > > CC: users at openswan.org
> > > > > Subject: Re: [Openswan Users] Openswan isntallation
> > > > >
> > > > > On Fri, 8 Jan 2010, Zaeem Sherazi wrote:
> > > > >
> > > > > > First of all thank you so much for replying my email. From 
> > where I
> > > > can pick pre-compiled package for my RHEL Box.
> > > > >
> > > > > yum install openswan
> > > > >
> > > > > > Openswan can work fine on RHEL? I would be really thankful if you
> > > > can assist me to resolve below mentioned issue.
> > > > >
> > > > > I've build some a week or so ago if you want either a prerelease or
> > > > a version without NSS
> > > > >
> > > > > http://www.openswan.org/download/binaries/centos/5/
> > > > >
> > > > > They're build for RHEL/CentOS 5.4
> > > > >
> > > > > Paul
> > > >
> > > > 
> > ------------------------------------------------------------------------
> > > > Hotmail: Free, trusted and rich email service. Get it now.
> > > > <http://clk.atdmt.com/GBL/go/196390708/direct/01/>
> > > > 
> > ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > Users at openswan.org
> > > > http://lists.openswan.org/mailman/listinfo/users
> > > > Building and Integrating Virtual Private Networks with Openswan:
> > > > 
> > http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155
> > > >
> > >
> >
> > ------------------------------------------------------------------------
> > Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign 
> > up now. <http://clk.atdmt.com/GBL/go/196390706/direct/01/>
> 
> 
 		 	   		  
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/196390709/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20100111/995f727a/attachment-0001.html 


More information about the Users mailing list