Re: [squid-users] Fedora Core 2 and Wccp 1 support

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 19 Jul 2004 14:04:41 +0200 (CEST)

On Tue, 22 Jun 2004, unixware wrote:

>
> Dear all
>
> i want to patch Fedora 2 kernel with wccp v 1 support
> i download the module at
> http://www.squid-cache.org/WCCP-support/Linux/ip_wccp.c
>
>
> but i dont know correct GCC lines to compile as in
> kerenl 2.6.5 lines has been location changed .

A quick investigation of Linux-2.6 build model showed that the following
simple procedure works for compiling ip_wccp for your kernel:

1. Build and test your kernel. This is required in order to correcly build
additional modules..

2. Create a directory somewhere and place the ip_wccp.c file in this
directory.

3. In the same directory create a file named "Makefile" with the following
content:

   obj-m += ip_wccp.o

4. Compile the module by running the following from the top of the kernel
tree:

   make M=/path/to/above/directory modules modules_install

5. Update module dependencies by running

   depmod -a

6. Load the module

   modprobe ip_wccp

The above is tested on Fedora Core 2, but should work on any Linux-2.6
based system. A big improvement from Linux-2.4.

How to build extra modules without first compiling and testing your
kernel is possible but is outside the scope of this document as it is very
distribution dependent and not how things are supposed to be done.

Regards
Henrik
Received on Mon Jul 19 2004 - 06:04:43 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Aug 01 2004 - 12:00:02 MDT