[DRBD-user] drbd 8.0_pre1 could not be build on Fedora Core 5

Lars Ellenberg Lars.Ellenberg at linbit.com
Wed Apr 5 14:44:33 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


/ 2006-04-05 14:41:26 +0200
\ Langemeyer, Werner (IBW):
> sorry Lars,
> 
> it changed, but still not building, used now latest "Checked out revision 2131."
> 
> see below:
> 
> CC [M]  /home/langemw/drbd08/drbd/drbd_receiver.o
> /home/langemw/drbd08/drbd/drbd_receiver.c: In function `drbd_pp_alloc':
> /home/langemw/drbd08/drbd/drbd_receiver.c:141: structure has no member named `u'
> /home/langemw/drbd08/drbd/drbd_receiver.c:155: structure has no member named `u'
> /home/langemw/drbd08/drbd/drbd_receiver.c: In function `drbd_pp_free':
> /home/langemw/drbd08/drbd/drbd_receiver.c:200: structure has no member named `u'

bah.
2.6.15-1.2054_FC5 is cheating,
and is really 2.6.16 (-rc6 or so)...

you need to apply this patch to the drbd source code:

Index: drbd_compat_wrappers.h
===================================================================
--- drbd_compat_wrappers.h	(revision 2131)
+++ drbd_compat_wrappers.h	(working copy)
@@ -10,7 +10,7 @@
 
 /* struct page has a union in 2.6.15 ...
  * an anonymous union and struct since 2.6.16 */
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16))
+#if 1 || (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16))
 #define U_PRIVATE private
 #else
 #define U_PRIVATE u.private


-- 
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list