Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15476 - freeswan ipsec - cannot load ipsec.o: "compiled with gcc2, kernel gcc3" erroneous message
Summary: freeswan ipsec - cannot load ipsec.o: "compiled with gcc2, kernel gcc3" erron...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL: http://www.linuxsecurity.com/articles...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-10 23:54 UTC by mike wakerly
Modified: 2003-04-15 18:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike wakerly 2003-02-10 23:54:33 UTC
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)
Comment 1 mike wakerly 2003-02-12 00:35:21 UTC
(fyi, the workaround of building ipsec into the kernel works fine for me..)
Comment 2 Joshua Brindle (RETIRED) gentoo-dev 2003-03-12 14:44:21 UTC
i don't know how this got assigned to me, i don't have a PPC or run freeswan :)
Comment 3 mike wakerly 2003-03-12 15:09:37 UTC
hi, i had this problem on x86, not ppc... don't know how they got thrown in to the fold... cheers
Comment 4 Jay Pfeifer (RETIRED) gentoo-dev 2003-04-15 18:42:30 UTC
this works in gentoo-sources-2.4.20-r1-r3. upgrade. crypto-sources is no more. 
 
Thanks, 
 
Jay