[Openswan Users] Problem to install openswan with Kernel 2.4
Lennart Mordek
Lennart.Mordek at proveo.de
Fri Apr 15 18:26:50 CEST 2005
Hallo
I use openswan 2.2, not the leatest version!
When I make "make KERNELSRC=/usr/src/linux precheck verset kpatch" come this
error:
patching file net/Makefile
Hunk #1 FAILED at 17.
1 out of 1 hunk FAILED -- saving rejects to file net/Makefile.rej
Here the original file:
...
subdir-$(CONFIG_NET) += 802 sched netlink
subdir-$(CONFIG_INET) += ipv4
subdir-$(CONFIG_NETFILTER) += ipv4/netfilter
subdir-$(CONFIG_IP_IPSEC) += ipv4/ipsec
subdir-$(CONFIG_IPSEC) += key
subdir-$(CONFIG_UNIX) += unix
subdir-$(CONFIG_IPV6) += ipv6
...
Here is Makefile.rej
...
subdir-$(CONFIG_NET) += 802 sched
subdir-$(CONFIG_INET) += ipv4
subdir-$(CONFIG_NETFILTER) += ipv4/netfilter
+subdir-$(CONFIG_IPSEC) += ipsec
subdir-$(CONFIG_UNIX) += unix
subdir-$(CONFIG_IPV6) += ipv6
When I make in the origanl file:
...
subdir-$(CONFIG_NET) += 802 sched netlink
subdir-$(CONFIG_INET) += ipv4
subdir-$(CONFIG_NETFILTER) += ipv4/netfilter
subdir-$(CONFIG_UNIX) += unix
subdir-$(CONFIG_IPV6) += ipv6
subdir-$(CONFIG_IPSEC) += ipsec
subdir-$(CONFIG_IP_IPSEC) += ipv4/ipsec
subdir-$(CONFIG_IPSEC) += key
...
save it and repeat that command "make KERNELSRC=/usr/src/linux precheck
verset kpatch"
Then it works. The next point, I rebuild my Kernel
make menuconfig
make dep bzImage
Kernel was built successfully
then I make
cd /usr/src/openswan-2.2.0
make KERNELSRC=/usr/src/linux programs install
then come this error
duplo:/usr/src/openswan-2.2.0 # make KERNELSRC=/usr/src/linux programs
install
make[1]: Entering directory `/usr/src/openswan-2.2.0/doc'
make[1]: Nothing to be done for `programs'.
make[1]: Leaving directory `/usr/src/openswan-2.2.0/doc'
make[1]: Entering directory `/usr/src/openswan-2.2.0/lib'
make[2]: Entering directory `/usr/src/openswan-2.2.0/lib/libopenswan'
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
addrtoa.o ../../linux/lib/libfreeswan/addrtoa.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
addrtot.o ../../linux/lib/libfreeswan/addrtot.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
addrtypeof.o ../../linux/lib/libfreeswan/addrtypeof.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
alg_info.o alg_info.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
anyaddr.o ../../linux/lib/libfreeswan/anyaddr.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
atoaddr.o atoaddr.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o atoasr.o
atoasr.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
atosubnet.o atosubnet.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o atoul.o
atoul.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
constants.o constants.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
copyright.o copyright.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
datatot.o ../../linux/lib/libfreeswan/datatot.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o alloc.o
alloc.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o diag.o
diag.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
goodmask.o ../../linux/lib/libfreeswan/goodmask.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
initaddr.o ../../linux/lib/libfreeswan/initaddr.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
initsaid.o initsaid.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
initsubnet.o initsubnet.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
keyblobtoid.o keyblobtoid.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
kernel_alg.o kernel_alg.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
optionsfrom.o optionsfrom.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o oswlog.o
oswlog.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
pfkey_v2_build.o ../../linux/lib/libfreeswan/pfkey_v2_build.c
../../linux/lib/libfreeswan/pfkey_v2_build.c: In function
`pfkey_sa_ref_build':
../../linux/lib/libfreeswan/pfkey_v2_build.c:263: warning: comparison is
always false due to limited range of data type
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
pfkey_v2_ext_bits.o ../../linux/lib/libfreeswan/pfkey_v2_ext_bits.c
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -I../../i
nclude -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-fu
nction-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o
pfkey_v2_parse.o ../../linux/lib/libfreeswan/pfkey_v2_parse.c
In file included from ../../linux/lib/libfreeswan/pfkey_v2_parse.c:64:
../../programs/pluto/defs.h:88:17: gmp.h: No such file or directory
In file included from ../../linux/lib/libfreeswan/pfkey_v2_parse.c:64:
../../programs/pluto/defs.h:90: error: parse error before '*' token
../../programs/pluto/defs.h:90: warning: function declaration isn't a
prototype
../../programs/pluto/defs.h:91: warning: type defaults to `int' in
declaration of `MP_INT'
../../programs/pluto/defs.h:91: error: parse error before '*' token
../../programs/pluto/defs.h:91: warning: function declaration isn't a
prototype
../../linux/lib/libfreeswan/pfkey_v2_parse.c: In function `pfkey_sa_parse':
../../linux/lib/libfreeswan/pfkey_v2_parse.c:197: warning: comparison is
always false due to limited range of data type
../../linux/lib/libfreeswan/pfkey_v2_parse.c: In function
`pfkey_prop_parse':
../../linux/lib/libfreeswan/pfkey_v2_parse.c:712: warning: comparison is
always false due to limited range of data type
../../linux/lib/libfreeswan/pfkey_v2_parse.c: In function
`pfkey_supported_parse':
../../linux/lib/libfreeswan/pfkey_v2_parse.c:897: warning: comparison is
always false due to limited range of data type
make[2]: *** [pfkey_v2_parse.o] Error 1
make[2]: Leaving directory `/usr/src/openswan-2.2.0/lib/libopenswan'
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/usr/src/openswan-2.2.0/lib'
make: *** [programs] Error 1
Can somebody help me?
THX
Lennart Mordek
More information about the Users
mailing list