[Click] click Digest, Vol 49, Issue 19

Puneet Sood psood74 at gmail.com
Fri Jul 20 14:01:10 EDT 2007


David,

The problem occurs if different versions of the compiler/linker have
been used to build the kernel and the Click modules.

You can check the version used to build the modules by doing the following:

$ strings click.ko | grep gcc
$ strings /boot/vmlinux | grep gcc

The gcc version should match upto the first two digits (x.y) and the
Linux kernel name should match.

If you used a cross-compiler (or something different than the default
compiler) you need to modify the linuxmodule/Makefile.in file. Add the
two lines referring to CROSS_COMPILE

CLICK_ELEM2MAKE = $(top_builddir)/click-buildtool elem2make --linux26

CROSS_COMPILE = /path/to/compiler/executables/
export CROSS_COMPILE

CLICKCC = @KERNEL_CC@
CLICKCXX = @KERNEL_CXX@


> Date: Fri, 20 Jul 2007 11:41:38 -0400
> From: dmoore7 at nd.edu
> Subject: [Click] Click-install "Invalid Module format" error
> To: click at pdos.csail.mit.edu
> Message-ID: <1184946098.46a0d7b20c56d at webmail.nd.edu>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello,
> I have a newly patched/compiled 2.6.16.13 vanilla linux kernel running happily,
> and have recompiled click taking care to direct it to my System.map and with
> appropriate files in /usr/src/linux.  It compiles properly, without errors.
> However, when I attempt to execute a simple click-install:
>
> # click-install ./conf/test.click
> insmod: error inserting '/usr/local/lib/proclikefs.ko': -1 Invalid module
> formatclick-install: '/sbin/insmod /usr/local/lib/proclikefs.ko' failed
>
> I encounter the error shown above.  I looked into /var/log/messages file and
> found the following message:
> Jul 20 11:34:41 sybill kernel: proclikefs: disagrees about version of symbol
> struct_module
>
> I carefully retraced my steps from kernel-patch onward, but have not found any
> errors in the output.  However click-install continues to fault as shown above.
> Any help or input getting this working is appreciated.
> Thanks,
>  - David Moore
>
>
>
>
> ------------------------------
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
>
> End of click Digest, Vol 49, Issue 19
> *************************************
>


More information about the click mailing list