[Click] click.mod.c:8: error: variable `__this_module' has initializer but incomplete type (help! Thx!!)
Raj Sidh
rajaram_s at yahoo.com
Thu Dec 4 02:10:10 EST 2008
Hi,
I am having a 2.6.17.8 linux to which I managed to apply click's linux 2.6.19.2 patch. Had .configure as
./configure
--prefix=/my/click_install_dir
--with-linux=/my/linux-2.6.17.8
--enable-linuxmodule
But I got this error at the very end:
CC [M] ksyms.o
CXX [M] elements.o
CC [M]
/my/click-1.6.0/linuxmodule/proclikefsmod.o
LD
[M] /my/click-1.6.0/linuxmodule/click.o
LD [M]
/my/click-1.6.0/linuxmodule/proclikefs.o
Building
modules, stage 2.
MODPOST
CC
/my/click-1.6.0/linuxmodule/click.mod.o
/my/click-1.6.0/linuxmodule/click.mod.c:8:
error: variable `__this_module' has initializer but incomplete
type
/my/click-1.6.0/linuxmodule/click.mod.c:9:
error: unknown field `name' specified in
initializer
/my/click-1.6.0/linuxmodule/click.mod.c:9:
warning: excess elements in struct
initializer
/my/click-1.6.0/linuxmodule/click.mod.c:9:
warning: (near initialization for
`__this_module')
/my/click-1.6.0/linuxmodule/click.mod.c:10:
error: unknown field `init' specified in
initializer
/my/click-1.6.0/linuxmodule/click.mod.c:10:
warning: excess elements in struct
initializer
/my/click-1.6.0/linuxmodule/click.mod.c:10:
warning: (near initialization for
`__this_module')
/my/click-1.6.0/linuxmodule/click.mod.c:8:
error: storage size of `__this_module' isn't known
gmake[3]: ***
[/my/click-1.6.0/linuxmodule/click.mod.o] Error
1
gmake[2]: *** [modules] Error 2
gmake[2]: Leaving directory
`/my/linux-2.6.17.8'
gmake[1]: *** [all]
Error 2
gmake[1]: Leaving directory
`/my/click-1.6.0/linuxmodule'
gmake: *** [install]
Error 1
I searched the archive, but did not see a match for this issue. I am newbie with click and module making. There may be something I am missing in either. Please help! Thanks.
Rajaram
PS: Yes, I had to use 2.6.17.8 kernel:-(
More information about the click
mailing list