Re: insmod rebuild under 2.1.5 #includes

Rob Glover (
Tue, 29 Oct 1996 21:56:55 -0800 (PST)

Ya know, I have to bring comment on this... /usr/include/asm/elf.h has
been giving me problems with compiling a lot of things lately.. I assume
it comes with libc5.4.10, since that is the last one i installed.... I
have tried to compile 1.8.3, among other things, and it always
fails with /usr/include/asm/elf.h:13: sizeof applied to an incomplete type

Any ideas on how to mend this problem?


On Tue, 29 Oct 1996, Keith Rohrer wrote:

> gcc -O6 -pipe -fomit-frame-pointer -Wall -c insmod.c -o insmod.o
> In file included from /usr/include/linux/elf.h:4,
> from insmod.h:23,
> from insmod.c:71:
> /usr/include/asm/elf.h:13: sizeof applied to an incomplete type
> make[1]: *** [insmod.o] Error 1
> The relevant parts of asm/elf.h:
> typedef unsigned long elf_greg_t;
> #define ELF_NGREG (sizeof (struct user_regs_struct) /
> sizeof(elf_greg_t))
> typedef elf_greg_t elf_gregset_t[ELF_NGREG];
> Line 13 is the last typedef (which uses the ELF_NGREG macro).
> You know what to do.[1]
> Keith
> [1]: Blame it on people without the imagination to make up REAL elf
> names, of course. I mean, whoever heard of an elf named "Greg"? If you
> can't rip off someone else's elf names (e.g. "Questor"), go for long
> ("Aglaranna"), woodsy ("Silverleaf"), and/or bug me for one
> ("Leitryonne").
> --
> "It moved faster. I swear, they are evolving right before my eyes. If
> you see something this big, with eight legs coming your way, let me
> know;
> I have to kill it before it develops language skills."
> --- Ambassador Londo Mollari, in 'Sic Transit Vir' (Babylon 5)