|
Hi,
I upgraded my system to Ubuntu 11.04 and now i am now able to compile MHVTL kernel module. I am getting following error. root@vermad:~/Downloads/mhvtl-0.19/kernel# make make -C /lib/modules/2.6.38-9-generic/build SUBDIRS=/root/Downloads/mhvtl-0.19/kernel modules make[1]: Entering directory `/usr/src/linux-headers-2.6.38-9-generic' CC [M] /root/Downloads/mhvtl-0.19/kernel/mhvtl.o /root/Downloads/mhvtl-0.19/kernel/mhvtl.c:315:2: warning: initialization from incompatible pointer type /root/Downloads/mhvtl-0.19/kernel/mhvtl.c:317:2: warning: initialization from incompatible pointer type In file included from /root/Downloads/mhvtl-0.19/kernel/mhvtl.c:346:0: /root/Downloads/mhvtl-0.19/kernel/fetch27.c: In function ‘vtl_sg_copy_user’: /root/Downloads/mhvtl-0.19/kernel/fetch27.c:51:5: warning: cast from pointer to integer of different size /root/Downloads/mhvtl-0.19/kernel/fetch27.c:52:5: warning: cast from pointer to integer of different size /root/Downloads/mhvtl-0.19/kernel/mhvtl.c: In function ‘vtl_add_device’: /root/Downloads/mhvtl-0.19/kernel/mhvtl.c:1108:2: error: implicit declaration of function ‘init_MUTEX’ /root/Downloads/mhvtl-0.19/kernel/mhvtl.c: At top level: /root/Downloads/mhvtl-0.19/kernel/mhvtl.c:1708:1: warning: data definition has no type or storage class /root/Downloads/mhvtl-0.19/kernel/mhvtl.c:1708:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’ /root/Downloads/mhvtl-0.19/kernel/mhvtl.c:1708:1: warning: parameter names (without types) in function declaration /root/Downloads/mhvtl-0.19/kernel/mhvtl.c: In function ‘vtl_remove_lu’: /root/Downloads/mhvtl-0.19/kernel/mhvtl.c:1717:8: error: ‘tmp_mutex’ undeclared (first use in this function) /root/Downloads/mhvtl-0.19/kernel/mhvtl.c:1717:8: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [/root/Downloads/mhvtl-0.19/kernel/mhvtl.o] Error 1 make[1]: *** [_module_/root/Downloads/mhvtl-0.19/kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-9-generic' make: *** [default] Error 2 Please help!! Deepak |
|
Please use the 0.18 release. The 0.19 is laging behind. Perhaps I should release an up to date 0.19.... Sent from my iPad On Jun 1, 2011, at 4:06, "deepak026 [via MHVTL - Linux Virtual Tape Library - Community Forums]"<[hidden email]> wrote:
|
|
Administrator
|
Why even bother with two different versions ? I think most people think the 0.19 is the one that is most up to date .. I am really happy with github as I can always get the most up to date mhvtl code immediately as it becomes available. |
|
Yeah, the two version idea hasn't worked out at all.
I started the 0.19 with the idea of using xml as the config file format. Then came the 'personality module' idea.. Then I back-ported the 'personality module' to fix a few bugs in the 0.18 and haven't spent any time on 0.19 branch.. Live and learn :) On Wed, Jun 1, 2011 at 7:46 AM, nia [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]> wrote: > Mark Harvey wrote: > Please use the 0.18 release. The 0.19 is laging behind. > > Perhaps I should release an up to date 0.19.... > > Why even bother with two different versions ? I think most people think the > 0.19 is the one that is most up to date .. > > I am really happy with github as I can always get the most up to date mhvtl > code immediately as it becomes available. > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/MHVTL-kernel-module-not-getting-compiled-on-Ubuntu-11-04-tp3007223p3008377.html > To start a new topic under MHVTL - Linux Virtual Tape Library - Community > Forums, email [hidden email] > To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums, > click here. |
|
I tried using 0.18 as well and same kine of results. here is the output.
root@vermad:~/Downloads/mhvtl-0.18/kernel# make make -C /lib/modules/2.6.38-9-generic/build SUBDIRS=/root/Downloads/mhvtl-0.18/kernel modules make[1]: Entering directory `/usr/src/linux-headers-2.6.38-9-generic' CC [M] /root/Downloads/mhvtl-0.18/kernel/mhvtl.o /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:312:2: warning: initialization from incompatible pointer type /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:313:2: warning: initialization from incompatible pointer type /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:330:2: error: unknown field ‘ioctl’ specified in initializer /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:330:2: warning: initialization from incompatible pointer type In file included from /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:337:0: /root/Downloads/mhvtl-0.18/kernel/fetch27.c: In function ‘vtl_sg_copy_user’: /root/Downloads/mhvtl-0.18/kernel/fetch27.c:51:5: warning: cast from pointer to integer of different size /root/Downloads/mhvtl-0.18/kernel/fetch27.c:52:5: warning: cast from pointer to integer of different size /root/Downloads/mhvtl-0.18/kernel/mhvtl.c: In function ‘vtl_add_device’: /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:1087:2: error: implicit declaration of function ‘init_MUTEX’ /root/Downloads/mhvtl-0.18/kernel/mhvtl.c: At top level: /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:1724:1: warning: data definition has no type or storage class /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:1724:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’ /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:1724:1: warning: parameter names (without types) in function declaration /root/Downloads/mhvtl-0.18/kernel/mhvtl.c: In function ‘vtl_remove_lu’: /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:1733:8: error: ‘tmp_mutex’ undeclared (first use in this function) /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:1733:8: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [/root/Downloads/mhvtl-0.18/kernel/mhvtl.o] Error 1 make[1]: *** [_module_/root/Downloads/mhvtl-0.18/kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-9-generic' make: *** [default] Error 2 Deepak |
|
Results on a 32bit Ubuntu box :
====================== markh@zaphodvm:~$ cd src/mhvtl/kernel/ markh@zaphodvm:~/src/mhvtl/kernel$ cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=11.04 DISTRIB_CODENAME=natty DISTRIB_DESCRIPTION="Ubuntu 11.04" markh@zaphodvm:~/src/mhvtl/kernel$ uname -a Linux zaphodvm 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux markh@zaphodvm:~/src/mhvtl/kernel$ make make -C /lib/modules/2.6.38-8-generic/build SUBDIRS=/home/markh/src/mhvtl/kernel modules make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic' CC [M] /home/markh/src/mhvtl/kernel/mhvtl.o /home/markh/src/mhvtl/kernel/mhvtl.c:330:2: warning: initialization from incompatible pointer type In file included from /home/markh/src/mhvtl/kernel/mhvtl.c:359:0: /home/markh/src/mhvtl/kernel/fetch27.c: In function âvtl_sg_copy_userâ: /home/markh/src/mhvtl/kernel/fetch27.c:51:5: warning: cast from pointer to integer of different size /home/markh/src/mhvtl/kernel/fetch27.c:52:5: warning: cast from pointer to integer of different size Building modules, stage 2. MODPOST 1 modules CC /home/markh/src/mhvtl/kernel/mhvtl.mod.o LD [M] /home/markh/src/mhvtl/kernel/mhvtl.ko make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic' ====================== Please make sure you have 0.18-16 (mhvtl-2011-05-22.tgz) - or use latest from github.com. Unfortunately, I now notice the kernel module version string was not updated with the last kernel module patch. So we can't simply do a 'grep vtl_version mhvtl.c' to identify the correct code. Please post if this works/does not work for you. Many thanks Mark |
|
Ir worked !!! with 0.18.16.
root@vermad:~/Downloads/mhvtl-0.18/kernel# make make -C /lib/modules/2.6.38-9-generic/build SUBDIRS=/root/Downloads/mhvtl-0.18/kernel modules make[1]: Entering directory `/usr/src/linux-headers-2.6.38-9-generic' CC [M] /root/Downloads/mhvtl-0.18/kernel/mhvtl.o /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:330:2: warning: initialization from incompatible pointer type In file included from /root/Downloads/mhvtl-0.18/kernel/mhvtl.c:359:0: /root/Downloads/mhvtl-0.18/kernel/fetch27.c: In function ‘vtl_sg_copy_user’: /root/Downloads/mhvtl-0.18/kernel/fetch27.c:51:5: warning: cast from pointer to integer of different size /root/Downloads/mhvtl-0.18/kernel/fetch27.c:52:5: warning: cast from pointer to integer of different size Building modules, stage 2. MODPOST 1 modules CC /root/Downloads/mhvtl-0.18/kernel/mhvtl.mod.o LD [M] /root/Downloads/mhvtl-0.18/kernel/mhvtl.ko make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-9-generic' Thanks very much.. Deepak |
| Powered by Nabble | See how NAML generates this page |
