[Openswan Users] 2.1.2rc1, 2.4.25, ipsec.o: unresolved symbol ipsec_xform_get_info

Matteo matteo.lunardi at libero.it
Sat Apr 17 13:36:39 CEST 2004


Hallo everybody.

I've compiled the kernel 2.4.25 and modules from sources, installed it 
and rebooted: the new kernel was working fine.
Next I patched the kernel sources from the openswan directory with:
# make nattpatch | (cd /usr/src/linux && patch -p1 && make bzImage)
and installed the new kernel image.

Next I compiled openswan:
# make KERNELSRC=/usr/src/linux programs module
and I've have to do 
# cd linux/include ; ln -s freeswan openswan
from the openswan's sources directory, because of this errors:
../../linux/lib/libfreeswan/pfkey_v2_build.c:74:85: openswan/ipsec_sa.h: No such file or directory
../../linux/lib/libfreeswan/pfkey_v2_build.c:75:34: openswan/pfkey_debug.h: No such file or directory

After that openswan compiled fine, and I installed it:
# make KERNELSRC=/usr/src/linux install minstall
I checked that the ipsec.o module inside /lib/modules/2.4.25/kernel was 
the one just compiled, and rebooted.

When modprobing ipsec, I get this error:
# modprobe ipsec
/lib/modules/2.4.25/kernel/ipsec.o: unresolved symbol ipsec_xform_get_info
/lib/modules/2.4.25/kernel/ipsec.o: insmod /lib/modules/2.4.25/kernel/ipsec.o failed
/lib/modules/2.4.25/kernel/ipsec.o: insmod ipsec failed
# depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.25/kernel/ipsec.o

I've also tried to apply the nat-t patch, make menuconfig, activate the new 
IPSEC NAT-Traversal option inside Networking options menu, make bzImage,
make modules, install everything, reboot, compile and install openswan:
same error.

I'm almost new to openswan and freeswan: I've tried to compile freeswan with 
nat-t and x509 patch on a 2.2 kernel without success, so I've updated the
system (a p166 based upon a redhat 7.0 with basic software updated; 
gcc-2.96-112.7.2 from redhat 7.2) to satisfy requirements of kernel 2.4 and 
I've switched to openswan because of nat-t and x509 included patches, but still
no success.

Any advice?

Thank you.
Matteo



More information about the Users mailing list