Error Compiling Kernel After Editing module.h

warren mann broken at warmann.com
Sun Nov 26 09:15:11 PST 2000


Soragan wrote:

> after i edit the module.h in struct list_head , i can compile my sysklogd.
> now , i got the error when compiling the kernel
>
> In file included from /usr/src/linux/include/linux/raid/md.h:29,
>                  from init/main.c:24:
> /usr/src/linux/include/linux/module.h:179: redefinition of `struct
> list_head'
> make: *** [init/main.o] Error 1
>
> any solution ?
>
> regards,
> soragan
>
> --
> Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
> and put unsubscribe in the subject header of the message

you can either change it back or change line 179 of module.h to this:

struct list_head2 { struct list_head *next, *prev; } list;

this way both sysklogd and the kernel will compile.


-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list