Re: module.h error? in kernel headers for 2.4-test11


Subject: Re: module.h error? in kernel headers for 2.4-test11
From: David Wagner (dhwagner@swbell.net)
Date: Wed Nov 29 2000 - 07:37:01 MST


on 11/29/00 7:15 AM, Michael Coyle at coyle@ResExcellence.com wrote:

> Hello Keith,
>
> I'm having the same problem of a missing autoconf.h and want to make
> sure I understand your solution.

I don't have an answer to Michael's question, but I can say that after
re-rsyncing the kernel source, and re-doing "make xconfig", and "make dep",
that the step "make all" seems to put autoconf.h in its right place.
(this is with the source for 2.4-test11). I had just been using "make
vmlinux" and copying the vmlinux and System.map files to the correct places.

But mol still won't compile because of the declaration
"struct list_head list;"
in /usr/include/linux/module.h
which is included in mol's main.c.

In file included from main.c:20:
/usr/include/linux/module.h:179: field `list' has incomplete type

The line in module.h in question is:

struct inter_module_entry {
        struct list_head list; <--- Offending line
        const char *im_name;
        struct module *owner;
        const void *userdata;
};

It was suggested that linux/list.h is not being included because of an ifdef
_KERNEL_ statement, but I found no such statement in module.h.

David Wagner



This archive was generated by hypermail 2a24 : Thu Nov 30 2000 - 17:50:22 MST