request for member magic in something not a structure or union
Dear All, I am new to the Fedora Linux. I worked on SuSE and Red Hat Linux. Now I am using Fedora Core 3 with 2.6.9-1.667 kernel version. I got a problem while compiling a module, but the same module is working under SuSE 9.1 with 2.6.5, 2.6.6, 2.6.8 and 2.6.9 kernel versions. I understood that the error messages are related to spin_lock_irqsave and spin_lock_init only. If I comment those two lines the compilation is OK. The error messages are --- /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c: In function `do_tifm_transfer': /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `magic' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `lock' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `babble' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `babble' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `module' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `owner' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `oline' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `lock' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `owner' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:933: error: request for member `oline' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:938: error: request for member `magic' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:938: error: request for member `lock' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:938: error: request for member `babble' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:938: error: request for member `babble' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:938: error: request for member `module' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:938: error: request for member `lock' in something not a structure or union /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c: In function `gendisk_init': /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:1090: error: invalid type argument of `->' /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:1090: error: invalid type argument of `->' /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:1090: error: invalid type argument of `->' /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:1090: error: invalid type argument of `->' /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:1090: error: invalid type argument of `->' /home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.c:1090: error: invalid type argument of `->' make[2]: *** [/home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source/tidrv.o] Error 1 make[1]: *** [_module_/home/ti/tifm-2.6.9-1.667-kernel/tifm-1.3-2.6.x-source] Error 2 make: *** [default] Error 2 Please any help greatly appreciated. Thanks in advance. Regards, Srinivas G
* Srinivas G.
I am new to the Fedora Linux. I worked on SuSE and Red Hat Linux. Now I am using Fedora Core 3 with 2.6.9-1.667 kernel version. I got a problem while compiling a module, but the same module is working under SuSE 9.1 with 2.6.5, 2.6.6, 2.6.8 and 2.6.9 kernel versions.
And you are requestion Fedora knowledge in a SuSE forum. Perhaps you are not in the forum you intended? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
participants (2)
-
Patrick Shanahan
-
Srinivas G.