redhat 7.3 module compilation

mixo mixo at beth.uniforum.org.za
Tue Aug 27 15:20:41 BST 2002


I got  'ipvs-1.0.3' from
  http://www.linuxvirtualserver.org/software/kernel-2.4/ipvs-1.0.3.tar.gz
I also installed 'kernel-source-2.4.18-3' and patched with

  cat /root/piranha/ipvs-1.0.3/linux_kernel_ksyms_c.diff | patch -p1

I skipped the other patch as I somehow it fails
 (cat /root/piranha/ipvs-1.0.3/linux_net_netsyms_c.diff | patch -p1)

I then procceed to compile the 'ipvs' modules and installed with
  insmod ip_vs_wlc.o
which succeded.

What I want to know:
 1. Why does the one patch fail?
 2. Why does 'make' on the kernel fail,but 'make deps' succeeds?
And
 3.  Without the patch, installing the module(even thout is compiled) give s
      
------------------------------------------------------------------------------------------------
      ip_vs_wlc.o: unresolved symbol register_ip_vs_scheduler_R4b2ae615
     ip_vs_wlc.o: unresolved symbol unregister_ip_vs_scheduler_R7abc3c96
    
 -------------------------------------------------------------------------------------------------
     Why?
 


P.S.

What I get if try to compile the kernel after applying the patch
+++++++++++++++++++++++++++++++++++++++++++++++++++++
ksyms.c:146: redefinition of `__kstrtab_buffermem_pages'
ksyms.c:97: `__kstrtab_buffermem_pages' previously defined here
ksyms.c:146: redefinition of `__ksymtab_buffermem_pages'
ksyms.c:97: `__ksymtab_buffermem_pages' previously defined here
ksyms.c:147: redefinition of `__kstrtab_nr_free_pages'
ksyms.c:98: `__kstrtab_nr_free_pages' previously defined here
ksyms.c:147: redefinition of `__ksymtab_nr_free_pages'
ksyms.c:98: `__ksymtab_nr_free_pages' previously defined here
ksyms.c:148: redefinition of `__kstrtab_page_cache_size'
ksyms.c:99: `__kstrtab_page_cache_size' previously defined here
ksyms.c:148: redefinition of `__ksymtab_page_cache_size'
ksyms.c:99: `__ksymtab_page_cache_size' previously defined here
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.18-3/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-3/kernel'
make: *** [_dir_kernel] Error 2






More information about the lvs-users mailing list