disagrees about version of symbol struct_module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all.

This are the dates,

- Kernel installed: 2.6.16-rc3

- Module Hello.c:
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>

MODULE_LICENSE("GPL");

static int hello_init(void)
{
  printk(KERN_ALERT "Hello, world\n");
  return 0;
}

static void hello_exit(void)
{
  printk(KERN_ALERT "Goodbye, cruel world\n");
}

module_init(hello_init);
module_exit(hello_exit);

- Makefile:
obj-m := Hello.o

- make -C /usr/src/linux-2.6.16-rc3 SUBDIRS=$PWD modules
make: Entering directory `/usr/src/linux-2.6.16-rc3'
  Building modules, stage 2.
  MODPOST
make: Leaving directory `/usr/src/linux-2.6.16-rc3'

- 'insmod Hello.ko' and 'rmmod Hello' output okey, without messages

But dmesg show this:
Hello: disagrees about version of symbol struct_module
Hello: disagrees about version of symbol struct_module
Hello, world
Goodbye, cruel world

What's the meaning of "disagrees about version of symbol struct_module"
lines?

This is the output of 'nm Hello.ko' if it helps:
0000000e T cleanup_module
0000000e t hello_exit
00000000 t hello_init
00000000 T init_module
00000000 r __mod_license9
00000020 r __mod_srcversion29
00000043 r __module_depends
0000004c r __mod_vermagic5
         U printk
00000000 D __this_module
00000000 r ____versions

Thanks you very much, in advance.

Regards.

Jose.


-- 
http://www.lordofunix.org/

Not Registered GNU/Hurd User.
Registered BSD User 51101.
Registered Linux User #213309.
Memories..... You are talking about memories. 
Rick Deckard. Blade Runner.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux