[ENBD] compilation problems
Peter T. Breuer
enbd@lists.community.tummy.com
Thu, 13 Feb 2003 10:00:49 +0100 (MET)
"A month of sundays ago De Pelsemaeker Pieter wrote:"
> I have redhat 7.2 with kernel 2.4.9-34. :
Then that's your problem. Bring your kernel up to date or force some of
the macros in the enbd.c compatibility section into use. The kernel
you have is a heavily patched fork from way back now, and it's not
related linearly to the current kernel. Apparently it doesn't define
one thing at least that all modern kernels have, but it probably has
a mound of backported stuff from recent kernels.
> I do not find a definition for list_for_each_prev :
> [root@dwalin2 pdp]# find / -name list.h
> /usr/include/linux/list.h
This is where it should be. Avail yourself of the definition in the
ennd.c source itself.
But I must say that I am pretty sure that /usr/src/linux is NOT where
the source of your kernel is.
> There is a definition in enbd.c itself:
>
> #undef list_for_each_prev
> #define list_for_each_prev(pos, head) \
> for (pos = (struct request *)(head)->sem; pos != (head); \
> pos = (struct request *)pos->sem)
>
Peter