click installation problems

Maruti G Gupta mgupta at cs.pdx.edu
Wed Jun 25 22:31:51 EDT 2003


Hi,
  Thanks Brecht. I did try with a 2.4.20 kernel from ftp.kernel.org and
it worked after I got all the right patches for the system.

thanks again !
Maruti

On Wed, 25 Jun 2003, Brecht Vermeulen wrote:

>
> Hi,
>
> have you tried with a clean kernel (as those you get from
> ftp.kernel.org) instead of a RedHat patched -18.9 kernel ?
>
> regards,
> Brecht
>
> Maruti G Gupta wrote:
> >
> > Hi all,
> >   I am having a problem installing the kernel module of Click.
> > I am using a redhat Linux kernel version 2.4.20-18.9 and the latest
> > patch of Click-1.3pre1. My system uses an Intel Xeon CPU 2.8G.
> >
> > I applied the Click  2.4.20 patch and it didn't apply cleanly.
> > I get the following messages:
> >
> > patching file ./include/asm-i386/desc.h
> > Hunk #1 FAILED at 56.
> > 1 out of 1 hunk FAILED -- saving rejects to file
> > ./include/asm-i386/desc.h.rej
> >
> > patching file ./include/asm-ia64/system.h
> >
> > Hunk #5 FAILED at 160.
> > 1 out of 6 hunks FAILED -- saving rejects to file
> > ./include/asm-ia64/system.h.rej
> >
> > patching file ./include/asm-x86_64/pda.h
> >
> > Hunk #1 FAILED at 47.
> > Hunk #2 FAILED at 58.
> > 2 out of 2 hunks FAILED -- saving rejects to file
> > ./include/asm-x86_64/pda.h.rej
> >
> > ---------------------------------------------------
> >
> > everything else seemed to apply cleanly.
> >
> > I looked at the reject files, in desc.h file, the lines 56,64 were
> > marked to be different. But I could see not much difference except
> > a couple of spaces between the patched and original version.
> >
> > ***************
> > *** 56,64 ****
> >   #define idt_descr (*(struct Xgt_desc_struct *)((char *)&idt - 2))
> >   #define gdt_descr (*(struct Xgt_desc_struct *)((char *)&gdt - 2))
> >
> > - #define load_TR(n) __asm__ __volatile__("ltr %%ax"::"a" (__TSS(n)<<3))
> >
> > - #define __load_LDT(n) __asm__ __volatile__("lldt
> > %%ax"::"a" (__LDT(n)<<3))
> >
> >   /*
> >    * This is the ldt that every process will get unless we need
> > --- 56,64 ----
> >   #define idt_descr (*(struct Xgt_desc_struct *)((char *)&idt - 2))
> >   #define gdt_descr (*(struct Xgt_desc_struct *)((char *)&gdt - 2))
> >
> > + #define load_TR(n) __asm__ __volatile__("ltr %%ax": :"a" (__TSS(n)<<3))
> >
> > + #define __load_LDT(n) __asm__ __volatile__("lldt
> > %%ax": :"a" (__LDT(n)<<3))
> >
> >   /*
> >    * This is the ldt that every process will get unless we need
> > ~
> >
> > Other files had similar differences, so I thought it was not a
> > big problem and went on with my kernel compilation.
> >
> > When i reboot with the patched kernel version and run
> > ./configure --with-linux=/usr/src/linux-2.4, I get
> > the following warning:
> >
> > checking for C++-includable kernel header files... yes
> > checking whether -fpermissive is required... yes
> > checking whether -fpermissive is allowed... no
> > configure: WARNING:
> > =========================================
> >
> > Your header files must be patched before a C++ program
> > can include them. Apply the patch that came with this distribution
> > if you want to compile Click as a Linux module.
> >
> > =========================================
> >
> > But I did patch the header files and  I don't understand this
> > message. I have tried this process a couple of times, i.e.
> > do a clean, patch, compile and reboot and configure to make
> > sure I was doing everything right.
> >
> > ALso, if I do a make install, no .o files are generated in
> > clickprefix/lib/ or anywhere, except for the userlevel click.o
> >
> > Can you please help me ???
> >
> > Thanks for making it this far ! any help would be greatly
> > appreciated.
> >
> > Maruti
>




More information about the click mailing list