[Openswan Users] kernel build error, version.o missing? second try...
Nick Abbey
nickabbey at gmail.com
Sun Sep 28 14:03:13 EDT 2008
Hi,
I'm building a 2.4 custom kernel with KLIPS included. I've downloaded
the 2.4.13 source from
http://www.openswan.org/download/openswan-2.4.13.tar.gz
and extracted it to /usr/src/openswan-2.4.13
I've also downloaded the nat-t and klips patches:
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-klips.patch.gz
and extracted them to the location of my kernel code:
/usr/src/linux-2.4.27
both patches apply with no issue
I am able to select the relevant options for IPSEC in make manuconfig, but
whenever I try to build I get:
echo MODULE:
MODULE:
rm -f ipsec.o
ld -m elf_i386 -e stext -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
ld: version.o: No such file: No such file or directory
make[3]: *** [ipsec.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.27/net/ipsec'
make[2]: *** [_subdir_ipsec] Error 2
ldmake[2]: Leaving directory `/usr/src/linux-2.4.27/net'
:make[1]: *** [_dir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.27'
ipsec_init.omake: *** [stamp-build] Error 2
: No such file: No such file or directory
Debian:/usr/src/linux-2.4.27# ld: version.o: No such file: No such file or
directory
-bash: ld:: command not found
Debian:/usr/src/linux-2.4.27# make[3]: *** [ipsec.o] Error 1
-bash: make[3]:: command not found
Debian:/usr/src/linux-2.4.27# make[3]: Leaving directory
`/usr/src/linux-2.4.27/net/ipsec'
> make[2]: *** [_subdir_ipsec] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.4.27/net'
> make[1]: *** [_dir_net] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.27'
-bash: command substitution: line 1: unexpected EOF while looking for
matching `''
-bash: command substitution: line 4: syntax error: unexpected end of file
-bash: make[3]:: command not found
Debian:/usr/src/linux-2.4.27# make: *** [stamp-build] Error 2
-bash: make:: command not found
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:
obj-y += version.o
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/
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's a version.in.c there. I tried moving it to
/usr/src/linux-2.4.27/net/ipsec but still get the same error. I'm thinking
of renaming it to version.c to see if I can compile then.
Am I on the right track?
Is there a better way?
Why is this error occurring and what can I do to avoid it?
Thanks in advance!
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20080928/3c7863f3/attachment.html
More information about the Users
mailing list