<div dir="ltr">Hi,&nbsp; <br><br><br>&nbsp;&nbsp;&nbsp; I&#39;m building a 2.4 custom kernel with KLIPS included.&nbsp; I&#39;ve downloaded the 2.4.13 source from <br><a href="http://www.openswan.org/download/openswan-2.4.13.tar.gz">http://www.openswan.org/download/openswan-2.4.13.tar.gz</a><br>
and extracted it to /usr/src/openswan-2.4.13<br><br><br>I&#39;ve also downloaded the nat-t and klips patches:<br><br><a href="http://www.openswan.org/download/openswan-2.4.13.kernel-2.4-natt.patch.gz">http://www.openswan.org/download/openswan-2.4.13.kernel-2.4-natt.patch.gz</a><br>
<a href="http://www.openswan.org/download/openswan-2.4.13.kernel-2.4-klips.patch.gz">http://www.openswan.org/download/openswan-2.4.13.kernel-2.4-klips.patch.gz</a><br><br>and extracted them to the location of my kernel code:<br>
/usr/src/linux-2.4.27<br><br>both patches apply with no issue<br><br>I am able to select the relevant options for IPSEC in make manuconfig, but whenever I try to build I get:<br><br>echo MODULE:<br>MODULE:<br>rm -f ipsec.o<br>
ld -m elf_i386 -e stext&nbsp; -r -o ipsec.o ipsec_init.o ipsec_sa.o ipsec_radij.o radij.o ipsec_life.o ipsec_proc.o ipsec_tunnel.o ipsec_xmit.o ipsec_rcv.o ipsec_ipip.o sysctl_net_ipsec.o ipsec_snprintf.o ipsec_kern24.o pfkey_v2.o pfkey_v2_parser.o pfkey_v2_ext_process.o version.o ipsec_esp.o ipsec_ipcomp.o ipsec_ah.o ipsec_alg.o ipsec_alg_aes.o ipsec_alg_3des.o cbc_enc.o ecb_enc.o set_key.o aes.o aes_cbc.o aes_xcbc_mac.o dx86unix.o ipsec_alg_null.o satot.o addrtot.o ultot.o addrtypeof.o anyaddr.o initaddr.o ultoa.o addrtoa.o subnettoa.o subnetof.o goodmask.o datatot.o rangetoa.o prng.o pfkey_v2_parse.o pfkey_v2_build.o pfkey_v2_debug.o pfkey_v2_ext_bits.o ipcomp.o adler32.o deflate.o infblock.o infcodes.o inffast.o inflate.o inftrees.o infutil.o trees.o zutil.o ipsec_md5c.o ipsec_sha1.o<br>
ld: version.o: No such file: No such file or directory<br>make[3]: *** [ipsec.o] Error 1<br>make[3]: Leaving directory `/usr/src/linux-2.4.27/net/ipsec&#39;<br>make[2]: *** [_subdir_ipsec] Error 2<br>ldmake[2]: Leaving directory `/usr/src/linux-2.4.27/net&#39;<br>
:make[1]: *** [_dir_net] Error 2<br>&nbsp;make[1]: Leaving directory `/usr/src/linux-2.4.27&#39;<br>ipsec_init.omake: *** [stamp-build] Error 2<br>: No such file: No such file or directory<br>Debian:/usr/src/linux-2.4.27# ld: version.o: No such file: No such file or directory<br>
-bash: ld:: command not found<br>Debian:/usr/src/linux-2.4.27# make[3]: *** [ipsec.o] Error 1<br>-bash: make[3]:: command not found<br>Debian:/usr/src/linux-2.4.27# make[3]: Leaving directory `/usr/src/linux-2.4.27/net/ipsec&#39;<br>
&gt; make[2]: *** [_subdir_ipsec] Error 2<br>&gt; make[2]: Leaving directory `/usr/src/linux-2.4.27/net&#39;<br>&gt; make[1]: *** [_dir_net] Error 2<br>&gt; make[1]: Leaving directory `/usr/src/linux-2.4.27&#39;<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `&#39;&#39;<br>
-bash: command substitution: line 4: syntax error: unexpected end of file<br>-bash: make[3]:: command not found<br>Debian:/usr/src/linux-2.4.27# make: *** [stamp-build] Error 2<br>-bash: make:: command not found<br><br><br>
<br>I noticed that in /usr/src/linux-2.4.27/net/ipsec/Makefile there is the referece to the version.o on line 75 reads:<br><br>obj-y += version.o<br><br>all the lines above it reference other objects, each of which has a corresponding .c file in /usr/src/linux-2.4.27/net/ipsec/<br>
<br>I thought maybe something was missing, so I started looking thru the extracted openswan 2.4.13 files at /usr/src/openswan2.4.13/linux/net/ipsec/ and noticed that there&#39;s a version.in.c there.&nbsp; I tried moving it to /usr/src/linux-2.4.27/net/ipsec but still get the same error.&nbsp; I&#39;m thinking of renaming it to version.c to see if I can compile then.&nbsp; <br>
<br>Am I on the right track?<br>Is there a better way?<br>Why is this error occurring and what can I do to avoid it?<br><br>Thanks in advance!<br><br>Nick<br></div>