Re: IP_WCCP

From: Michael Vincent K. Pozon - CompE <vince@dont-contact.us>
Date: Thu, 27 Apr 2000 13:43:29 +0800 (PHT)

[root@omega /root]# gcc -D__KERNEL__ -I/usr/src/linux/include -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe -DMODULE -DMODVERSIONS -o
ip_wccp.o ip_wccp.c
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
/tmp/ccayyxJh.o: In function `ip_wccp_rcv':
/tmp/ccayyxJh.o(.text+0x7c): undefined reference to `ip_rcv'
/tmp/ccayyxJh.o(.text+0x91): undefined reference to `__kfree_skb'
/tmp/ccayyxJh.o: In function `init_module':
/tmp/ccayyxJh.o(.text+0xa6): undefined reference to `printk'
/tmp/ccayyxJh.o(.text+0xb0): undefined reference to `inet_add_protocol'
/tmp/ccayyxJh.o: In function `cleanup_module':
/tmp/ccayyxJh.o(.text+0xc2): undefined reference to `inet_del_protocol'
/tmp/ccayyxJh.o(.text+0xda): undefined reference to `printk'
collect2: ld returned 1 exit status

i cant compile it anymore , the previous gcc syntx compiled ip_wccp.c
susccessfully but i cant modprobe it ... it generates errors

On Tue, 25 Apr 2000, Henrik Nordstrom wrote:

> Michael Vincent K. Pozon - CompE wrote:
> >
> > i compiled ip_wccp.c with the syntax provided below , but then when i do
> > the modprobe , it gave me these errors:
> >
> > [root@omega ipv4]# modprobe ip_wccp
> > /lib/modules/2.2.14/ipv4/ip_wccp.o: unresolved symbol __kfree_skb
> > /lib/modules/2.2.14/ipv4/ip_wccp.o: unresolved symbol inet_del_protocol
> > /lib/modules/2.2.14/ipv4/ip_wccp.o: unresolved symbol inet_add_protocol
> > /lib/modules/2.2.14/ipv4/ip_wccp.o: unresolved symbol ip_rcv
> > /lib/modules/2.2.14/ipv4/ip_wccp.o: unresolved symbol printk
> >
> > did i missed something ?
>
> Try
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -O2 -fomit-frame-ponter
> -fno-strict-aliasing -pipe -DMODULE -DMODVERSIONS -o ip_wccp.o ip_wccp.c
>
> If this too fails then your /usr/src/linux/include does probably not
> match your running kernel build. Yes, some of the files in
> /usr/src/linux/include are build dependent. In such case do a rebuild of
> the kernel from source, reboot to the new kernel and then try again at
> building ip_wccp.o.
>
> --
> Henrik Nordstrom
> Squid and Linux Hacker
>

--
m  i  c  h  a  e  l   v  i  n  c  e  n  t   p  o  z  o  n
             ::  mikevince@engineer.com  ::
---------------------------------------------------------------
HPS Software & Communication Corp.     ICQ : 1413343
Pilipino Internet Cebu              office : (+63)(32) 3447847
Systems/Network Administrator       home   : (+63)(32) 3446427
CCNA,CCDA  - -  - - - - - - - - - - cell   : (+63) 917-3276966
 - - - - - - - - - - - - - - - - -  http://mikevince.tripod.com
Received on Wed Apr 26 2000 - 23:30:51 MDT

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