Re: [squid-users] Re: Ip wccp patch for kernel 2.6 Fedora2

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 1 Sep 2004 11:46:57 +0200 (CEST)

On Wed, 1 Sep 2004, unixware wrote:

> These steps work for Redhat Fedora Core which i use
> without compiling the whole kernel .

On Fedora Core 2 things is a lot easier than this. The files required for
building custom modules on Fedora Core 2 is found in /lib/modules/`uname
-r`/build, and the Linux-2.6 makefiles have full support for building
custom modules.

> 6. then go to /usr/src/uname -r/net/ipv4 and
>
> add the following in Makefile
>
> obj-m += ip_wccp.o
>
> 7. make prepare
>
> 8. make SUBDIRS=net/ipv4 modules

It is better to follow the instructions I sent earlier on how to build the
module, or use the tarball distribution of ip_wccp where all of this is
automated.

To repeat the manual procedure for Linux-2.6 is

    1. Create a ip_wccp directory containing the ip_wccp.c file

    2. Within this directory also create a Makefile with the contents

       obj-m += ip_wccp.o

    3. Go to your kernel tree and build the module

       cd /lib/modules/`uname -r`/build
       make M=/path/to/ip_wccp modules modules_install
       depmod -a

Or just use the tarball version and run

    cd ip_wccp-1.6.2
    make install

or if you prefer doing it manually

    cd /lib/modules/`uname -r`/build
    make M=/path/to/ip_wccp-1.6.2 modules modules_install
    depmod -a

then

    depmod ip_wccp

to load the module.

> 9. cp net/ipv4/ip_wccp.ko /lib/modules/`uname
> -r`/kernel/net/ipv4/ip_wccp.ko

Only modules shipped with the kernel should go into the kernel directory.
Third-party modules such as ip_wccp should go into other directories such
as /lib/modules/`uname -r`/ipv4/ or /lib/modules/`uname -r`/extra/. This
makes it a lot easier for your collegues or others to later find that the
ip_wccp module did not come with the kernel.

Regards
Henrik
Received on Wed Sep 01 2004 - 03:47:04 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:01 MDT