LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-28-2004, 09:33 PM   #1
MSwal2846
LQ Newbie
 
Registered: Jan 2004
Location: Raleigh
Distribution: Red Hat Enterprise 5
Posts: 27

Rep: Reputation: 15
Problem install Freeswan 1.98b on Linux kernel 2.4.25


I upgraded my Linux kernel from 2.4.20 to 2.4.25. Naturally, the Freeswan that I had installed on 2.4.20 does not run on 2.4.25. So I attempted to install Freeswan 1.98b by compiling a version against the 2.4.25 kernel following the directions from the 1.98b tar file. When I reboot, I receive the following errors:

Mar 28 06:10:53 localhost ipsec: ipsec_setup: Starting FreeS/WAN IPsec 1.98b...
Mar 28 06:10:53 localhost ipsec_setup: Starting FreeS/WAN IPsec 1.98b...
Mar 28 06:10:53 localhost ipsec_setup: /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o: The module you are trying to load (/lib/modules/2.4.25/kernel/net/ipsec/ipsec.o) is compiled with a gcc
Mar 28 06:10:53 localhost ipsec_setup: version 2 compiler, while the kernel you are running is compiled with
Mar 28 06:10:53 localhost ipsec: ipsec_setup: /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o: The module you are trying to load (/lib/modules/2.4.25/kernel/net/ipsec/ipsec.o) is compiled with a gcc
Mar 28 06:10:53 localhost ipsec: ipsec_setup: version 2 compiler, while the kernel you are running is compiled with
Mar 28 06:10:53 localhost ipsec_setup: a gcc version 3 compiler. This is known to not work.
Mar 28 06:10:53 localhost ipsec_setup: Using /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o
Mar 28 06:10:53 localhost ipsec: ipsec_setup: a gcc version 3 compiler. This is known to not work.
Mar 28 06:10:53 localhost ipsec: ipsec_setup: Using /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o
Mar 28 06:10:59 localhost ipsec_setup: /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o: The module you are trying to load (/lib/modules/2.4.25/kernel/net/ipsec/ipsec.o) is compiled with a gcc
Mar 28 06:10:59 localhost ipsec_setup: version 2 compiler, while the kernel you are running is compiled with
Mar 28 06:10:59 localhost ipsec: ipsec_setup: /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o: The module you are trying to load (/lib/modules/2.4.25/kernel/net/ipsec/ipsec.o) is compiled with a gcc
Mar 28 06:10:59 localhost ipsec: ipsec_setup: version 2 compiler, while the kernel you are running is compiled with
Mar 28 06:10:59 localhost ipsec_setup: a gcc version 3 compiler. This is known to not work.
Mar 28 06:10:59 localhost ipsec_setup: /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o: insmod /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o failed
Mar 28 06:10:59 localhost ipsec_setup: /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o: insmod ipsec failed
Mar 28 06:10:59 localhost ipsec_setup: kernel appears to lack KLIPS
Mar 28 06:10:59 localhost ipsec_setup: OOPS, should have aborted! Broken shell!
Mar 28 06:10:59 localhost ipsec: ipsec_setup: a gcc version 3 compiler. This is known to not work.
Mar 28 06:10:59 localhost ipsec: ipsec_setup: /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o: insmod /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o failed
Mar 28 06:10:59 localhost ipsec: ipsec_setup: /lib/modules/2.4.25/kernel/net/ipsec/ipsec.o: insmod ipsec failed
Mar 28 06:10:59 localhost ipsec: ipsec_setup: kernel appears to lack KLIPS
Mar 28 06:10:59 localhost ipsec: ipsec_setup: OOPS, should have aborted! Broken shell!
Mar 28 06:10:59 localhost rc: Starting ipsec: failed

So, I thought, ok, I'll go out and see if there's an upgrade available for the gcc compiler. Well, when I ran gcc -v, I get:

[swallow@localhost swallow]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

So, it seems to me that I'm at version 3 already. What does this error mean? It seems that ipsec.o was not compiled when I ran through the install process. So how do I get that addressed?

Mark "learning much more than I really want to" Swallow
 
Old 03-29-2004, 11:35 AM   #2
MSwal2846
LQ Newbie
 
Registered: Jan 2004
Location: Raleigh
Distribution: Red Hat Enterprise 5
Posts: 27

Original Poster
Rep: Reputation: 15
It would appear that it relates to the following that I've found on the Freeswan forums:


On Thu, 17 Oct 2002, Charles Johnson wrote:

> 3. Applied the patch supplied by Tom Hughes to remove the
> gcc2_compiled.: line.

Of course, I see that *after* I hit send. Don't you hate that? Sorry...

> ipsec_setup: /lib/modules/2.4.18-14/kernel/net/ipsec/ipsec.o was
> compiled for kernel version 2.4.18-14custom
> ipsec_setup: while this kernel is version 2.4.18-14.

The kernel version is defined in the main Makefile, and it does include
"custom" as part of EXTRAVERSION. I belive RedHat's intent with this is to
ensure that if you recompile your own kernel, the original 2.4.18-14 modules
won't be overwritten accidentally. You'll always be able to go back to the old
config.

Edit your kernel source's Makefile, and strip out the "custom" at the end of
EXTRAVERSIONS. Now, issue make mrproper, copy the .config, run menuconfig and
dep. Now, go to the freeswan 1.98b sources, and run "make oldmod". Once this
has finished, *don't* run make minstall. Instead, go directly to the
/usr/src/linux-2.4.18-14/net/ipsec/ directory, and copy the newly made ipsec.o
into place (in /lib/modules/linux-2.4.18-14/kernel/net/ipsec)

Why no make minstall? I'm finding that it actually results in the deletion of
your existing modules. Copying it by hand works properly. (Or so it seems.)

There's probably a nicer way to do this. But since we'll have RPMs for RH 8.0
very shortly, this will hopefully be an academic issue.

Let me know if any of the steps above fail to make this a painless process.


- --
Sam Sgro
sam@freeswan.org
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
10.0 CD install problem Kernel 2.6.3 makton3g Mandriva 4 07-26-2004 01:46 AM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 09:48 AM
How to install linux on a no-default-install-kernel-compatible controller ? DukeMC Linux - Hardware 2 11-20-2003 04:37 AM
freeswan kernel module - syslog a disaster toovato Debian 1 08-24-2003 03:28 AM
problems with freeswan 1.96 hardware acceleration patch in kernel 2.4.18 albino Linux - Networking 2 09-20-2002 12:56 AM


All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration