hello all, i have noticed a problem with ipsec. i just compiled a kernel (based on crypto-sources-r7) where freeswan fails to initialize. the error is similar to the URL for this bug (search for "known to not work" on that page): /etc/init.d/ipsec start ipsec_setup: Starting FreeS/WAN IPsec 1.99... ipsec_setup: /lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o: The module you are trying to load (/lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o) is compiled with a gcc ipsec_setup: version 2 compiler, while the kernel you are running is compiled with ipsec_setup: a gcc veripsec_setup: Using /lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o ipsec_setup: /sbin/insmod /lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o ipsec_setup: /lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o: The module you are trying to load (/lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o) is compiled with a gcc ipsec_setup: version 2 compiler, while the kernel you are running is compiled with ipsec_setup: a gcc version 3 compiler. This is known to not work. ipsec_setup: /lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o: insmod /lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o failed ipsec_setup: /lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o: insmod ipsec failed ipsec_setup: Using /lib/modules/2.4.19-crypto-r7/kernel/net/ipsec/ipsec.o ipsec_setup: Symbol version prefix 'smp_' ipsec_setup: kernel appears to lack KLIPS ipsec_setup: OOPS, should have aborted! Broken shell! sion 3 compiler. This is known to not work. basically the same error twice. after googling around, i noticed the following patch referenced by the above url: http://lists.freeswan.org/pipermail/users/2002-October/014948.html so it looks like insmod is dying when it shouldn't. i've only got gcc 3.2 on my 1.4rc1 system, so i'm fairly confident my problem is similar to that one referenced. more information would gladly be provided. i don't know my way around ebuilds enough to add the patch to the ebuild, but if someone could check it out i would be very greateful. more information gladly provided. (as it is i'm just going to build ipsec.o into the krenel, rather than as a module...) cheers, mike Reproducible: Always Steps to Reproduce: 1. /etc/init.d/ipsec start (with ipsec.o as kernel module)
(fyi, the workaround of building ipsec into the kernel works fine for me..)
i don't know how this got assigned to me, i don't have a PPC or run freeswan :)
hi, i had this problem on x86, not ppc... don't know how they got thrown in to the fold... cheers
this works in gentoo-sources-2.4.20-r1-r3. upgrade. crypto-sources is no more. Thanks, Jay