librelist archives

« back to archive

Unknown symbol in kernel module

Unknown symbol in kernel module

From:
Julien Herzen
Date:
2014-04-07 @ 15:24
Hi all,

I've compiled Click as a kernel module (using patchless Click on kernel
2.6.32.27). For now, I'm just compiling Click (with no modification or
home-made element).

The compilation succeeds, but gives me this warning :

---------------
WARNING: "__assert"

[/home/julien/openWrt/backfire/build_dir/target-i386_uClibc-0.9.30.1/click-1bf79b95efc906a5db6242c485e5b894fefec835/linuxmodule/click.ko]
undefined!
---------------

And when I run Click, the following happens:

---------------
# click-install test.click
insmod: can't insert '/lib/modules/2.6.32.27/click.ko': unknown symbol in
module, or unknown parameter
click-install: '/sbin/insmod /lib/modules/2.6.32.27/click.ko' failed
---------------

As one could maybe expect, dmesg shows the following line:

---------------
click: Unknown symbol __assert
---------------


I have to mention that I'm cross-compiling Click for OpenWrt on x86 Alix
boards.

Does anyone have an idea of what's going on? It looks like assertions
should be fine with Click as a Linux module.


Thanks!
Julien

Re: Unknown symbol in kernel module

From:
Julien Herzen
Date:
2014-04-11 @ 09:34
I've solved the problem. For some reason it was due to the use of the
uclibc library for cross-compiling OpenWrt. The problem goes away when
using eglibc instead.

Best,
Julien


On Mon, Apr 7, 2014 at 5:24 PM, Julien Herzen <j.herzen@gmail.com> wrote:

> Hi all,
>
> I've compiled Click as a kernel module (using patchless Click on kernel
> 2.6.32.27). For now, I'm just compiling Click (with no modification or
> home-made element).
>
> The compilation succeeds, but gives me this warning :
>
> ---------------
> WARNING: "__assert"
> 
[/home/julien/openWrt/backfire/build_dir/target-i386_uClibc-0.9.30.1/click-1bf79b95efc906a5db6242c485e5b894fefec835/linuxmodule/click.ko]
> undefined!
> ---------------
>
> And when I run Click, the following happens:
>
> ---------------
> # click-install test.click
> insmod: can't insert '/lib/modules/2.6.32.27/click.ko': unknown symbol in
> module, or unknown parameter
> click-install: '/sbin/insmod /lib/modules/2.6.32.27/click.ko' failed
> ---------------
>
> As one could maybe expect, dmesg shows the following line:
>
> ---------------
> click: Unknown symbol __assert
> ---------------
>
>
> I have to mention that I'm cross-compiling Click for OpenWrt on x86 Alix
> boards.
>
> Does anyone have an idea of what's going on? It looks like assertions
> should be fine with Click as a Linux module.
>
>
> Thanks!
> Julien
>
>