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

Langemeyer, Werner (IBW) Werner.Langemeyer at de.bp.com
Thu Apr 6 10:24:35 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.


thanks, the build works fine now!

also the rpm build with a few changes in the drbd.spec files works fine...

[root at emdc-ha1 langemw]# diff -uraN drbd08/drbd.spec.in /usr/src/redhat/SPECS/drbd.spec
--- drbd08/drbd.spec.in 2006-04-06 03:37:25.000000000 +0200
+++ /usr/src/redhat/SPECS/drbd.spec     2006-04-06 03:43:28.000000000 +0200
@@ -19,17 +19,18 @@

 Name: drbd
 Summary: Distributed Redundant Block Device driver for Linux
-Version:
+Version: 0.8
 Release: 3
 Source: %{name}-%{version}.tar.gz
 Vendor: DRBD
 License: GPL
 ExclusiveOS: linux
 Group: System Environment/Kernel
-Packager:
+Packager: Werner Langemeyer <support at i-b-w.com>
 Requires: kernel
 Provides: %{name}
 URL: http://www.drbd.org/
+BuildPrereq: docbook-utils
 BuildRoot: %{_tmppath}/%{name}-%{version}-root

 %description
@@ -121,6 +122,8 @@
 %defattr(755,root,root)
 /sbin/drbdsetup
 /sbin/drbdadm
+/sbin/drbdmeta
+/usr/lib/drbd/outdate-peer.sh
 /etc/ha.d/resource.d/drbddisk

 %defattr(644,root,root)
@@ -132,6 +135,7 @@
 %{_mandir}/man8/drbdadm.8.gz
 %{_mandir}/man8/drbddisk.8.gz
 %{_mandir}/man5/drbd.conf.5.gz
+%{_mandir}/man8/drbdmeta.8.gz
 %doc scripts/drbd.conf
 %doc COPYING
 %doc README
@@ -190,6 +194,9 @@
 /sbin/depmod -a -F /boot/System.map-%{kernelversion} %{kernelversion} >/dev/null 2>&1 || true

 %changelog
+* Thu Apr 06 2006 09:12:23 Werner Langemeyer <support at i-b-w.com>
+- used latest trunk 2132:
+  with FC5 Kernel 2.6.16 patch in drbd_compat_wrappers.h from Lars Ellenberg.

 * Tue Mar 14 2006 11:37:56 +0200 Philipp Reisner <phil at linbit.com>
 - drbd (8.0_pre1-1) 


Mit freundlichen Grüßen / Best regards 

Werner Langemeyer 
Red Hat Certified Engineer

INGENIEURBÜRO WAITE GmbH


-----Original Message-----
From: Lars Ellenberg [mailto:Lars.Ellenberg at linbit.com] 
Sent: Mittwoch, 5. April 2006 14:45
To: drbd-user at lists.linbit.com
Subject: Re: [DRBD-user] drbd 8.0_pre1 could not be build on Fedora Core 5

/ 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