[Iscsitarget-devel] Kernel 3.2.5 support

3 views
Skip to first unread message

Vaclav Vanc

unread,
Feb 12, 2012, 9:06:18 AM2/12/12
to iscsitar...@lists.sourceforge.net
Hi,
I was having trouble with compiling under Linux 3.2.5. If someone
having similar problem, this should help
I had to edit:
"kernel/iscsi.h" and add include "<linux/module.h>"
"kernel/event.c" and add include "iscsi.h"

Regards,
Vaclav Vanc

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitar...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Emmanuel Florac

unread,
Feb 12, 2012, 9:47:08 AM2/12/12
to Vaclav Vanc, iscsitar...@lists.sourceforge.net
Le Sun, 12 Feb 2012 15:06:18 +0100 vous écriviez:

> I was having trouble with compiling under Linux 3.2.5. If someone
> having similar problem, this should help
> I had to edit:
> "kernel/iscsi.h" and add include "<linux/module.h>"
> "kernel/event.c" and add include "iscsi.h"
>

Did you apply this change to the cvs trunk or the latest release?

--
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <efl...@intellique.com>
| +33 1 78 94 84 02
------------------------------------------------------------------------

Vaclav Vanc

unread,
Feb 12, 2012, 10:03:29 AM2/12/12
to Emmanuel Florac, iscsitar...@lists.sourceforge.net
To the trunk.

2012/2/12 Emmanuel Florac <efl...@intellique.com>:

Teck Choon Giam

unread,
Feb 13, 2012, 2:46:21 PM2/13/12
to Vaclav Vanc, iscsitar...@lists.sourceforge.net, Emmanuel Florac
On Sun, Feb 12, 2012 at 11:03 PM, Vaclav Vanc <vanc....@gmail.com> wrote:
> To the trunk.
>
> 2012/2/12 Emmanuel Florac <efl...@intellique.com>:
>> Le Sun, 12 Feb 2012 15:06:18 +0100 vous écriviez:
>>
>>> I was having trouble with compiling under Linux 3.2.5. If someone
>>> having similar problem, this should help
>>> I had to edit:
>>> "kernel/iscsi.h" and add include "<linux/module.h>"
>>> "kernel/event.c" and add include "iscsi.h"

I actually prepend the below line into iet_u.h:
#include <linux/module.h>

That solves the compile errors for kernel v3.2.x of the following:

config.c:358: error: 'THIS_MODULE' undeclared here (not in a function)
session.c:191: error: 'THIS_MODULE' undeclared here (not in a function)
target.c:136: error: 'THIS_MODULE' undeclared (first use in this function)
event.c:86: error: 'THIS_MODULE' undeclared (first use in this function)

Don't know whether is this alright or not thus asking... ...

Thanks.

Kindest regards,
Giam Teck Choon

>>>
>>
>> Did you apply this change to the cvs trunk or the latest release?
>>
>> --
>> ------------------------------------------------------------------------
>> Emmanuel Florac     |   Direction technique
>>                    |   Intellique
>>                    |   <efl...@intellique.com>
>>                    |   +33 1 78 94 84 02
>> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Iscsitarget-devel mailing list
> Iscsitar...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

Vaclav Vanc

unread,
Feb 13, 2012, 2:54:50 PM2/13/12
to Teck Choon Giam, iscsitar...@lists.sourceforge.net, Emmanuel Florac
I am not a developer. I did just quick (dirty) fix, that worked for me
and I wanted to share it with others.

Regards,
Václav Vanc


2012/2/13 Teck Choon Giam <giamte...@gmail.com>:

Teck Choon Giam

unread,
Feb 13, 2012, 3:20:09 PM2/13/12
to Vaclav Vanc, iscsitar...@lists.sourceforge.net, Emmanuel Florac
On Tue, Feb 14, 2012 at 3:54 AM, Vaclav Vanc <vanc....@gmail.com> wrote:
> I am not a developer. I did just quick (dirty) fix, that worked for me
> and I wanted to share it with others.

Oh ok and thanks.

Reply all
Reply to author
Forward
0 new messages