LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: ktcpvs compile problem

To: "'LinuxVirtualServer.org users mailing list.'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: ktcpvs compile problem
From: "Mike" <mikesk@xxxxxxxxxx>
Date: Wed, 22 Oct 2003 09:07:00 -0700
Thanks for the quick reply Horms.  Your response didn't entirely solve
the problem, but it did point me in the right direction.  Apparently the
key is the net/netsyms.c file.  IPVS applies a patch to this file which
confuses ktcpvs.  In order to compile ktcpvs successfully, one must
ensure that they have a clean kernel *without* any patches. So basically
a IPVS+ktcpvs build would go like this:

1. extract and build fresh kernel (include IPV6 & KHTTPD)
2. reboot with new kernel
3. build / install ktcpvs
4. patch kernel with hidden ARP patch
5. ipvs - make patchkernel
6. ipvs - make installsource
7. kernel - make menuconfig / make dep
8. ipvs - make / make install
9. kernel - make dep / make bzImage / make modules / make
modules_install install
10. reboot

At least that's what it took to get it working on my machine.

Mike Skovgaard, I.T. Supervisor
GlobalCom Solutions Inc.
215-2438 Marine Drive, West Vancouver
B.C., Canada, V7V 1L2
office: 1.604.926.2763
cell: 1.604.727.2153
 

-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Horms
Sent: Tuesday, October 21, 2003 7:01 PM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: ktcpvs compile problem

On Tue, Oct 21, 2003 at 11:10:23AM -0700, Mike wrote:
> I can't seem to get ktcpvs compiled here for the life of me.
> 
> So far I have the following compiled installed and working:
> 
> linux-2.4.22
> ipvs-1.0.10
> heartbeat-1.0.3
> 
> I'm trying to install ktcpvs-0.0.15. When I follow the instructions in
> the readme, I get stuck on 'make install'.  The output is as follows:
> 
> rmmod ktcpvs
> rmmod: module ktcpvs is not loaded
> make: [install] Error 1 (ignored)
> insmod ktcpvs.o
> ktcpvs.o: unresolved symbol tcp_sync_mss
> ktcpvs.o: unresolved symbol tcp_write_xmit
> ktcpvs.o: unresolved symbol tcp_openreq_cachep
> ktcpvs.o: unresolved symbol tcp_v4_lookup_listener
> ktcpvs.o: unresolved symbol tcp_cwnd_application_limited
> make: *** [install] Error 1
> 
> Sure enough, when I do an lsmod, I don't see ktcpvs.o anywhere in the
> list.  Has anyone come across this problem?  Is there a fix, or should
I
> be using an older version? Any help is greatly appreciated.

>From examining net/netsyms.c in the kernel source you would have
noticed that the export of each of these symbols is surrounded by

#if defined (CONFIG_IPV6_MODULE) || defined (CONFIG_KHTTPD) || defined
(CONFIG_KHTTPD_MODULE)

I would suggest reconfiguring your kernel with one of these options
enabled or removing the #if ... #endif. Whichever takes your fancy.

In either case you will need to rebuild your kernel.

-- 
Horms
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>