Mailing List Archive

0.6.1-pre2 compile for 2.2.12 kernel
Hi all,
I am trying to compile the 0.6.1-pre1 for BlueCat 3.0 (which is based on the
2.2.12 kernel).
However the compile of drbd_fs.c fails because of missing definition of
'wait_queue_head_t'. It seems that the definition in the case of earlier
kernel version is located in the drbd_main.c but the type is used in other
sources as well.

I moved the section "LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)" to drbd.h.
Now the compile works find.

Just wanted to let you know.

/Wolfram




=======================================================================
Wolfram Weyer FORCE COMPUTERS GmbH
Staff Engineer - Systems Engineering A Solectron Subsidiary

phone: +49 89 60814-523 Street: Prof.-Messerschmitt-Str. 1
fax: +49 89 60814-112 City: D-85579 Neubiberg/Muenchen
mailto:Wolfram.Weyer@example.com <mailto:Wolfram.Weyer@force.de>
http://www.forcecomputers.com <http://www.forcecomputers.com/>
=======================================================================
Re: 0.6.1-pre2 compile for 2.2.12 kernel [ In reply to ]
Hi Wolfram,

Thanks for that tip.
Testing compatibiliy with 2.2.x is high on my todo list, and I will
definitely do to before 0.6.1 final is released.

-philipp

* Weyer, Wolfram <Wolfram.Weyer@example.com> [010921 15:08]:
> Hi all,
> I am trying to compile the 0.6.1-pre1 for BlueCat 3.0 (which is based on the
> 2.2.12 kernel).
> However the compile of drbd_fs.c fails because of missing definition of
> 'wait_queue_head_t'. It seems that the definition in the case of earlier
> kernel version is located in the drbd_main.c but the type is used in other
> sources as well.
>
> I moved the section "LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)" to drbd.h.
> Now the compile works find.
>
> Just wanted to let you know.
>
> /Wolfram
>
>
>
>
> =======================================================================
> Wolfram Weyer FORCE COMPUTERS GmbH
> Staff Engineer - Systems Engineering A Solectron Subsidiary
>
> phone: +49 89 60814-523 Street: Prof.-Messerschmitt-Str. 1
> fax: +49 89 60814-112 City: D-85579 Neubiberg/Muenchen
> mailto:Wolfram.Weyer@example.com <mailto:Wolfram.Weyer@force.de>
> http://www.forcecomputers.com <http://www.forcecomputers.com/>
> =======================================================================
>
>
0.6.1-pre2 compile for 2.2.12 kernel [ In reply to ]
Hi,
I have another issue with the 0.6.1-pre2 and the 2.2.12 kernel. It seems
that "list_add_tail()" from list.h is not available for the 2.2.12 kernel.
In order to make it running I just patched my list.h with the appropriate
lines from the 2.4.9 kernel. However, this should not be the final solution
;-)

/Wolfram


=======================================================================
Wolfram Weyer FORCE COMPUTERS GmbH
Staff Engineer - Systems Engineering A Solectron Subsidiary

phone: +49 89 60814-523 Street: Prof.-Messerschmitt-Str. 1
fax: +49 89 60814-112 City: D-85579 Neubiberg/Muenchen
mailto:Wolfram.Weyer@example.com <mailto:Wolfram.Weyer@force.de>
http://www.forcecomputers.com <http://www.forcecomputers.com/>
=======================================================================
Re: 0.6.1-pre2 compile for 2.2.12 kernel [ In reply to ]
Hi Wolfram,

You would help me (and yourself, as soon as you install the next release)
if you would add the code to the drbd_int.h file in

#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,2,12)
list_add_tail()...
#endif

and send the patch to the list.

-Philipp

* Weyer, Wolfram <Wolfram.Weyer@example.com> [010926 14:02]:
> Hi,
> I have another issue with the 0.6.1-pre2 and the 2.2.12 kernel. It seems
> that "list_add_tail()" from list.h is not available for the 2.2.12 kernel.
> In order to make it running I just patched my list.h with the appropriate
> lines from the 2.4.9 kernel. However, this should not be the final solution
> ;-)
>
> /Wolfram
>
>
> =======================================================================
> Wolfram Weyer FORCE COMPUTERS GmbH
> Staff Engineer - Systems Engineering A Solectron Subsidiary
>
> phone: +49 89 60814-523 Street: Prof.-Messerschmitt-Str. 1
> fax: +49 89 60814-112 City: D-85579 Neubiberg/Muenchen
> mailto:Wolfram.Weyer@example.com <mailto:Wolfram.Weyer@force.de>
> http://www.forcecomputers.com <http://www.forcecomputers.com/>
> =======================================================================
>