[Openswan Users] openswan and red hat enterprise

Morgan Marodin mmarodin at develon.com
Wed Mar 24 17:36:05 CET 2004


Hi.

How does work openswan with the kernel of Red Hat Enterprise ES 3 (v 
2.4.21-9.0.1.EL)?
Do I have to patch the kernel for NatTraversal feature?

I have searched for this issue everywhere in the web ... but I have found 
nothing!


Then ... I tested to rpmbuild (as a normal user, NOT root) the package with 
the tarball openswan-2.1.1.tar.gz (renaming it to freeswan-2.0x-cvs.tar.gz 
as in the spec file) but compiling it reports an error:
---------------------------------------------------
...
...
...
cc -g -O2 -g -pipe -march=i386 -mcpu=i686 -I../../linux/include -g -O2 -g 
-pipe -march=i386 -mcpu=i686 -Wall -Wpointer-arith -Wcast-qual 
-Wstrict-prototypes -Wbad-function-cast  -DNAT_TRAVERSAL -DNAT_TRAVERSAL 
-Werror   -c -o ikeping.o ikeping.c
cc -g -O2 -g -pipe -march=i386 -mcpu=i686 -I../../linux/include -g -O2 -g 
-pipe -march=i386 -mcpu=i686 -Wall -Wpointer-arith -Wcast-qual 
-Wstrict-prototypes -Wbad-function-cast  -DNAT_TRAVERSAL -DNAT_TRAVERSAL 
-Werror -o ikeping ikeping.o   ../../lib/libfreeswan/libfreeswan.a
rm ikeping.o
make[2]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/programs/ikeping'
make[2]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/programs/examples'
make[2]: Nothing to be done for `programs'.
make[2]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/programs/examples'
make[1]: Leaving directory `/home/mork/rpm/BUILD/freeswan-2.0x-cvs/programs'
make[1]: Entering directory `/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux'
make[1]: Leaving directory `/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux'
make[1]: Entering directory `/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing'
make[2]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/lib'
make[3]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/lib/libfreeswan'
make[3]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/lib/libfreeswan'
make[2]: Leaving directory `/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/lib'
make[2]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/utils'
make[3]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/utils/uml_netjig'
make[3]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/utils/uml_netjig'
make[2]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/utils'
make[2]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/klips'
make[2]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/klips'
make[2]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/pluto'
make[2]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/pluto'
make[2]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/dnssec'
make[2]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/dnssec'
make[2]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/scripts'
make[2]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/scripts'
make[2]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/packaging'
make[2]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing/packaging'
make[1]: Leaving directory `/home/mork/rpm/BUILD/freeswan-2.0x-cvs/testing'
++ pwd
+ FS=/home/mork/rpm/BUILD/freeswan-2.0x-cvs
+ mkdir -p BUILD.i386
+ mkdir -p BUILD.i386-smp
+ cd packaging/redhat
+ /usr/bin/make -C /home/mork/rpm/BUILD/freeswan-2.0x-cvs 
MODBUILDDIR=/home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp 
FREESWANSRCDIR=/home/mork/rpm/BUILD/freeswan-2.0x-cvs 
KERNELSRC=/usr/src/linux-2.4.21-9.0.1.EL ARCH=i386 SUBARCH=i386 
MODULE_DEF_INCLUDE=/home/mork/rpm/BUILD/freeswan-2.0x-cvs/packaging/redhat/config-i386-smp.h 
module
make: Entering directory `/home/mork/rpm/BUILD/freeswan-2.0x-cvs'
mkdir -p /home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp
cp /home/mork/rpm/BUILD/freeswan-2.0x-cvs/packaging/makefiles/module.make 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp/Makefile
echo "# 
" 
  >>/home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp/Makefile
echo "# Local Variables: 
"       >>/home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp/Makefile
echo "# compile-command: \"/usr/bin/make 
FREESWANSRCDIR=/home/mork/rpm/BUILD/freeswan-2.0x-cvs ARCH=i386 
KLIPSMODULE=true TOPDIR=/usr/src/linux-2.4.21-9.0.1.EL -f 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec/defconfig -f 
Makefile 
MODULE_DEF_INCLUDE=/home/mork/rpm/BUILD/freeswan-2.0x-cvs/packaging/redhat/config-i386-smp.h 
ipsec.o\"" 
  >>/home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp/Makefile
echo "# End: 
"       >>/home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp/Makefile
/usr/bin/make -C linux/net/ipsec KLIPSMODULE=true 
TOPDIR=/usr/src/linux-2.4.21-9.0.1.EL -f 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec/defconfig -f 
Makefile 
MODULE_DEF_INCLUDE=/home/mork/rpm/BUILD/freeswan-2.0x-cvs/packaging/redhat/config-i386-smp.h 
clean
make[1]: execvp: /usr/src/linux-2.4.21-9.0.1.EL/scripts/pathdown.sh: 
Permission denied
make[1]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec'
o addrtot.o ultot.o  addrtypeof.o anyaddr.o initaddr.o 
ultoa.o  addrtoa.o  subnettoa.o  subnetof.o  goodmask.o  datÐrm -f *.o
rm -f .*.o.flags
rm -f version.c
make[1]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec'
/usr/bin/make -C 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp  ARCH=i386 
KLIPSMODULE=true TOPDIR=/usr/src/linux-2.4.21-9.0.1.EL -f 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec/defconfig -f 
Makefile 
MODULE_DEF_INCLUDE=/home/mork/rpm/BUILD/freeswan-2.0x-cvs/packaging/redhat/config-i386-smp.h 
ipsec.o
make[1]: execvp: /usr/src/linux-2.4.21-9.0.1.EL/scripts/pathdown.sh: 
Permission denied
make[1]: Entering directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp'
.o addrtot.o ultot.o  addrtypeof.o anyaddr.o initaddr.o 
ultoa.o  addrtoa.o  subnettoa.o  subnetof.o  goodmask.o  datÐcc 
-DIPCOMP_PREFIX -include 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/packaging/redhat/config-i386-smp.h 
-I/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include 
-I/usr/src/linux-2.4.21-9.0.1.EL/include 
-I/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/lib/zlib -O3 -Wall 
-DARCH=i386  -DMODVERSIONS -include 
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/modversions.h 
-DMODULE  -D__KERNEL__ -I/usr/src/linux-2.4.21-9.0.1.EL/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-Wno-unused -fomit-frame-pointer -pipe -freorder-blocks 
-mpreferred-stack-boundary=2  -DKBUILD_BASENAME=ipsec_init  -c -o 
ipsec_init.o 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec/ipsec_init.c
In file included from /usr/src/linux-2.4.21-9.0.1.EL/include/linux/skbuff.h:26,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_kversion.h:58,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_param.h:32,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec/ipsec_init.c:28:
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:203: syntax error before 
"pte_addr_t"
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:203: warning: no 
semicolon at end of struct or union
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:203: warning: no 
semicolon at end of struct or union
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:204: warning: type 
defaults to `int' in declaration of `pte'
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:204: warning: data 
definition has no type or storage class
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:223: syntax error before 
'}' token
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:223: warning: type 
defaults to `int' in declaration of `mem_map_t'
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:223: warning: data 
definition has no type or storage class
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h: In function 
`pte_chain_lock':
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:389: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:390: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:390: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h: In function 
`pte_chain_unlock':
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:402: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h: In function `page_zone':
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:425: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h: In function `set_page_zone':
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:430: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:431: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h: In function `page_mapped':
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:607: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h: At top level:
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:617: syntax error before 
'*' token
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:617: warning: type 
defaults to `int' in declaration of `mem_map'
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/mm.h:617: warning: data 
definition has no type or storage class
In file included from /usr/src/linux-2.4.21-9.0.1.EL/include/linux/highmem.h:5,
                  from 
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/skbuff.h:27,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_kversion.h:58,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_param.h:32,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec/ipsec_init.c:28:
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/pgalloc.h: In function 
`pmd_populate':
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/pgalloc.h:23: invalid operands 
to binary -
In file included from /usr/src/linux-2.4.21-9.0.1.EL/include/asm/highmem.h:29,
                  from 
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/highmem.h:11,
                  from 
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/skbuff.h:27,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_kversion.h:58,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_param.h:32,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec/ipsec_init.c:28:
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/atomic_kmap.h: In function 
`__kmap_atomic_noflush':
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/atomic_kmap.h:42: invalid 
operands to binary -
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/atomic_kmap.h: In function 
`__kmap_atomic':
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/atomic_kmap.h:65: invalid 
operands to binary -
In file included from 
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/highmem.h:11,
                  from 
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/skbuff.h:27,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_kversion.h:58,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_param.h:32,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec/ipsec_init.c:28:
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/highmem.h: In function `__kmap':
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/highmem.h:65: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/highmem.h: In function 
`kmap_atomic':
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/highmem.h:88: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/highmem.h: In function 
`kmap_atomic_to_page':
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/highmem.h:110: warning: return 
from incompatible pointer type
/usr/src/linux-2.4.21-9.0.1.EL/include/asm/highmem.h:114: warning: return 
from incompatible pointer type
In file included from /usr/src/linux-2.4.21-9.0.1.EL/include/linux/skbuff.h:27,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_kversion.h:58,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/include/freeswan/ipsec_param.h:32,
                  from 
/home/mork/rpm/BUILD/freeswan-2.0x-cvs/linux/net/ipsec/ipsec_init.c:28:
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/highmem.h: In function 
`bh_kmap_irq':
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/highmem.h:41: dereferencing 
pointer to incomplete type
/usr/src/linux-2.4.21-9.0.1.EL/include/linux/highmem.h:41: dereferencing 
pointer to incomplete type
make[1]: *** [ipsec_init.o] Error 1
make[1]: Leaving directory 
`/home/mork/rpm/BUILD/freeswan-2.0x-cvs/BUILD.i386-smp'
make: *** [module] Error 2
make: Leaving directory `/home/mork/rpm/BUILD/freeswan-2.0x-cvs'
error: Bad exit status from /var/tmp/rpm-tmp.77408 (%build)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.77408 (%build)
---------------------------------------------------

I have tested the same operation with the tarball freeswan-2.05.tar.gz 
(from www.freeswan.org) and ... reports the same error!

Could you help me?

Thanks!
Morgan 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20040324/3c6d1af7/attachment-0001.htm


More information about the Users mailing list