dazuko-help
[Top][All Lists]
Advanced

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

Re: [Dazuko-help] Dazukofs problem in Mandriva 2009.1


From: Michael
Subject: Re: [Dazuko-help] Dazukofs problem in Mandriva 2009.1
Date: Sat, 15 Aug 2009 13:48:07 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

As proposed, I added the line

#include <linux/sched.h>

in 'file.c' and 'ign_dev.c' , and dazukofs compiled in the 2.6.30 vanilla kernel.
But I can't load the module, due to a "Invalid module format":


address@hidden dazukofs-3.1.0-rc2]# make
make -C /lib/modules/`uname -r`/build SUBDIRS="`pwd`" modules
make[1]: Entering directory `/usr/src/linux-2.6.30.4'

  WARNING: Symbol version dump /usr/src/linux-2.6.30.4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/super.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/inode.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/file.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/dentry.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/mmap.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/group_dev.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/ign_dev.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/ctrl_dev.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/dev.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/event.o
  LD [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/dazukofs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /opt/Prg_tmp/dazukofs-3.1.0-rc2/dazukofs.mod.o
  LD [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/dazukofs.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30.4'
address@hidden dazukofs-3.1.0-rc2]# make dazukofs_install
make -C /lib/modules/`uname -r`/build SUBDIRS="`pwd`" modules
make[1]: Entering directory `/usr/src/linux-2.6.30.4'

  WARNING: Symbol version dump /usr/src/linux-2.6.30.4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-2.6.30.4'
mkdir -p /lib/modules/`uname -r`/kernel/fs/dazukofs
cp dazukofs.ko /lib/modules/`uname -r`/kernel/fs/dazukofs
/sbin/depmod -ae
address@hidden dazukofs-3.1.0-rc2]# modprobe dazukofs
FATAL: Error inserting dazukofs (/lib/modules/2.6.30.4/kernel/fs/dazukofs/dazukofs.ko): Invalid module format




Any suggestions? Thanks!
/Michael


Lino Sanfilippo skrev:
Michael wrote:

I also tried with a compiled  new kernel, 2.6.30.4 from 'kernel.org', with the same result, except for a warning:

/address@hidden dazukofs-3.1.0-rc2]# make
make -C /lib/modules/`uname -r`/build SUBDIRS="`pwd`" modules
make[1]: Entering directory `/usr/src/linux-2.6.30.4'

  WARNING: Symbol version dump /usr/src/linux-2.6.30.4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/super.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/inode.o
  CC [M]  /opt/Prg_tmp/dazukofs-3.1.0-rc2/file.o
/opt/Prg_tmp/dazukofs-3.1.0-rc2/*file.c: I funktion "dazukofs_open":
/opt/Prg_tmp/dazukofs-3.1.0-rc2/file.c:185: fel: derefererar pekare till ofullständig typ*
make[2]: *** [/opt/Prg_tmp/dazukofs-3.1.0-rc2/file.o] Fel 1
make[1]: *** [_module_/opt/Prg_tmp/dazukofs-3.1.0-rc2] Fel 2
make[1]: Leaving directory `/usr/src/linux-2.6.30.4'
make: *** [dazukofs_modules] Fel 2/


With the new kernel, 2.6.30.4 and the latest dazukofs-snapshot, there is the same result as above:

/address@hidden dazukofs-20090628]# make
make -C /lib/modules/`uname -r`/build SUBDIRS="`pwd`" modules
make[1]: Entering directory `/usr/src/linux-2.6.30.4'

  WARNING: Symbol version dump /usr/src/linux-2.6.30.4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /opt/Prg_tmp/dazukofs-20090628/super.o
  CC [M]  /opt/Prg_tmp/dazukofs-20090628/inode.o
  CC [M]  /opt/Prg_tmp/dazukofs-20090628/file.o
/opt/Prg_tmp/dazukofs-20090628/*file.c: I funktion "dazukofs_open":
/opt/Prg_tmp/dazukofs-20090628/file.c:185: fel: derefererar pekare till ofullständig typ*
make[2]: *** [/opt/Prg_tmp/dazukofs-20090628/file.o] Fel 1
make[1]: *** [_module_/opt/Prg_tmp/dazukofs-20090628] Fel 2
make[1]: Leaving directory `/usr/src/linux-2.6.30.4'
make: *** [dazukofs_modules] Fel 2/



Note: "file.c:185: fel: derefererar pekare till ofullständig typ" means like "dereferer points to uncomplete type/ deferering pointer to incomplete type".

Have I missed something?

Hi Michael,

you are right, this package does not compile since there are some header includes missing. To make it work
the quickest solution is to simply add the line

#include <linux/sched.h>

in file.c and ign_dev.c.

After including this line the code should compile on 2.6.30 vanilla
(I am not sure about mandriva kernel).

Alternatively you could apply the patches I sent on 09. and 10. Juli:

http://lists.gnu.org/archive/html/dazuko-devel/2009-07/msg00020.html
http://lists.gnu.org/archive/html/dazuko-devel/2009-07/msg00021.html

This would also fix some bugs.

Regards,
Lino

reply via email to

[Prev in Thread] Current Thread [Next in Thread]