Re: WCCP & Linux 6.1

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 27 May 2000 11:41:04 +0200

Kernel modules must be compiled with optimization turned on, or certain
inlined kernel functions will be missing.

Try:

gcc -O2 -c -D__KERNEL__ -DMODULE -I/usr/src/linux/include ip_wccp.c -o
ip_wccp.c

-DMODVERSIONS might also be required in some installations.

Note that /usr/src/linux/include must match the exact kernel build
running (not only version), or you will quite likely get into trouble.

--
Henrik Nordstrom
Squid hacker
Gustavo Torres wrote:
> 
>         Hello I have the RH Linux 6.1 with Kernel 2.2.12, after use:
> modprobe ip_wccp
> 
> I receive the errors:
> 
> /lib/modules/2.2.12-20/ipv4/ip_wccp.o: unresolved symbol htonl
> /lib/modules/2.2.12-20/ipv4/ip_wccp.o: unresolved symbol skb_pull
> /lib/modules/2.2.12-20/ipv4/ip_wccp.o: unresolved symbol __constant_c_memset
> /lib/modules/2.2.12-20/ipv4/ip_wccp.o: unresolved symbol dst_release
> /lib/modules/2.2.12-20/ipv4/ip_wccp.o: unresolved symbol kfree_skb
> 
> I need two know if exist a site where donload ip_wccp.o compiled or the
> exact sintax to gcc to compile ip_wccp.c.
> 
> I have very poor experience to compile modules on RH Linux. Do you can help
> me.
> 
> Thanks
> =================================
> Gustavo Torres
> Torres Consulting - ITALY
> 
> Phone: +39-348-3019076
> Fax: +39-0464-556615
> 
> Web: http://www.torres-c.com
> E-Mail: torres@torres-c.com
> =================================
Received on Sat May 27 2000 - 06:47:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:34 MST