Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have compiled my kernel module, after a lot of debugging. So heres what I do: bounce latest1 # insmod nf_lb.ko insmod: error inserting 'nf_lb.ko': -1 Unknown symbol in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2006
    Location
    Ireland
    Posts
    9

    'Unkown symbol in module' error while insmodding - but it should be fine!?


    Hi,

    I have compiled my kernel module, after a lot of debugging.

    So heres what I do:

    bounce latest1 # insmod nf_lb.ko
    insmod: error inserting 'nf_lb.ko': -1 Unknown symbol in module
    bounce latest1 #
    So then I do a 'dmesg' and get:

    nf_lb: Unknown symbol queue_delayed_work
    nf_lb: Unknown symbol flush_workqueue
    nf_lb: Unknown symbol destroy_workqueue
    nf_lb: Unknown symbol __create_workqueue
    These are functions used by the workqueue(linux/workqueue.h) I am using, and are standard in 2.6 and probably older kernels? Plus it compiled fine, so why am I getting this?

    Also, I did a:

    cat /proc/kallsyms | grep 'work'
    and see that these symbols ARE in the kernel.

    Any ideas? Any help much appreciated!


    Thanks,

    Cormac Redmond

  2. #2
    Just Joined!
    Join Date
    Feb 2006
    Location
    Ireland
    Posts
    9
    Ah....

    I had to change

    MODULE_LICENSE("$LICENSE$");
    to

    MODULE_LICENSE("GPL");

    Feck sake!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •