<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000066" bgcolor="#ffffff">
Hi,<br>
<br>
I'm trying to compile drbd-0.7.13 to work with lustre filesystem. I'm
using patched kernel source provided by lustre, and I run into the
following compile error with drbd after following the steps from the
install doc. Is there something I can tweak in the headers to fix
this, or do I need to upgrade to 2.6.x?<br>
<br>
-Alex<br>
<br>
<blockquote type="cite">make -C drbd drbd_buildtag.c<br>
make[1]: Entering directory `/usr/local/src/drbd-0.7.13/drbd'<br>
make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/drbd'<br>
make[1]: Entering directory `/usr/local/src/drbd-0.7.13/user'<br>
gcc -c -Wall -I../drbd -c -o drbdsetup.o drbdsetup.c<br>
gcc -c -Wall -I../drbd -c -o ../drbd/drbd_buildtag.o
../drbd/drbd_buildtag.c<br>
gcc -o drbdsetup drbdsetup.o ../drbd/drbd_buildtag.o<br>
gcc -c -Wall -I../drbd -c -o drbdadm_main.o drbdadm_main.c<br>
gcc -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o
drbdadm_adjust. o
../drbd/drbd_buildtag.o<br>
make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/user'<br>
make[1]: Entering directory `/usr/local/src/drbd-0.7.13/scripts'<br>
make[1]: Nothing to be done for `all'.<br>
make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/scripts'<br>
make[1]: Entering directory `/usr/local/src/drbd-0.7.13/documentation'<br>
To (re)make the documentation: make doc<br>
make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/documentation'<br>
make[1]: Entering directory `/usr/local/src/drbd-0.7.13/drbd'<br>
<br>
Calling toplevel makefile of kernel source tree, which I believe is
in<br>
KDIR=/lib/modules/2.4.21-32.0.1.EL_lustre.1.4.5smp/build<br>
<br>
trying to make dep ...<br>
make[2]: Entering directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
make[3]: Entering directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
make[4]: Entering directory `/usr/local/src/drbd-0.7.13/drbd'<br>
make[4]: Leaving directory `/usr/local/src/drbd-0.7.13/drbd'<br>
make[3]: Leaving directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
make[3]: Entering directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5/include/linux/modversions.h
was not updated<br>
make[3]: Leaving directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
make[2]: Leaving directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
test -f ../scripts/adjust_drbd_config_h.sh && \<br>
KDIR=/lib/modules/2.4.21-32.0.1.EL_lustre.1.4.5smp/build /bin/sh
../scripts/adj
ust_drbd_config_h.sh<br>
<br>
Using unmodified drbd_config.h<br>
<br>
make -C /lib/modules/2.4.21-32.0.1.EL_lustre.1.4.5smp/build
SUBDIRS=/usr/local/s
rc/drbd-0.7.13/drbd modules<br>
make[2]: Entering directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
make -r -f tmp_include_depends all<br>
make[3]: Entering directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
make[3]: Circular
/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5/include/asm/smplo
ck.h <-
/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5/include/linux/interrupt.h
d ependency dropped.<br>
make[3]: Circular
/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5/include/linux/net
filter_ipv4/ip_conntrack_helper.h <-
/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.
5/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped.<br>
make[3]: Nothing to be done for `all'.<br>
make[3]: Leaving directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
make -C /usr/local/src/drbd-0.7.13/drbd CFLAGS="-D__KERNEL__
-I/usr/src/linux-2
.4.21-32.0.1.EL_lustre.1.4.5/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O 2
-fno-strict-aliasing -fno-common -Wno-unused -fomit-frame-pointer
-pipe -freo rder-blocks
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS
-inc lude
/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5/include/linux/modversions.h"
M AKING_MODULES=1 modules<br>
make[3]: Entering directory `/usr/local/src/drbd-0.7.13/drbd'<br>
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5/include
-Wall -W strict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-Wno-unus ed
-fomit-frame-pointer -pipe -freorder-blocks
-mpreferred-stack-boundary=2
-mar ch=i686 -DMODULE
-DMODVERSIONS -include
/usr/src/linux-2.4.21-32.0.1.EL_lustre.1
.4.5/include/linux/modversions.h -I/usr/local/src/drbd-0.7.13/drbd
-nostdinc -i withprefix
include -DKBUILD_BASENAME=drbd_sizeof_sanity_check -c -o
drbd_sizeof _sanity_check.o
drbd_sizeof_sanity_check.c<br>
drbd_sizeof_sanity_check.c:5: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:5: syntax error before numeric constant<br>
drbd_sizeof_sanity_check.c:6: `printk_R_ver_str' declared as function
returning a function<br>
drbd_sizeof_sanity_check.c:6: warning: function declaration isn't a
prototype<br>
drbd_sizeof_sanity_check.c: In function
`sizeof_drbd_structs_sanity_check':<br>
drbd_sizeof_sanity_check.c:18: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:18: warning: null format string<br>
drbd_sizeof_sanity_check.c:18: called object is not a function<br>
drbd_sizeof_sanity_check.c:19: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:19: warning: null format string<br>
drbd_sizeof_sanity_check.c:19: called object is not a function<br>
drbd_sizeof_sanity_check.c:20: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:20: warning: null format string<br>
drbd_sizeof_sanity_check.c:20: called object is not a function<br>
drbd_sizeof_sanity_check.c:21: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:21: warning: null format string<br>
drbd_sizeof_sanity_check.c:21: called object is not a function<br>
drbd_sizeof_sanity_check.c:22: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:22: warning: null format string<br>
drbd_sizeof_sanity_check.c:22: called object is not a function<br>
drbd_sizeof_sanity_check.c:23: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:23: warning: null format string<br>
drbd_sizeof_sanity_check.c:23: called object is not a function<br>
drbd_sizeof_sanity_check.c:24: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:24: warning: null format string<br>
drbd_sizeof_sanity_check.c:24: called object is not a function<br>
drbd_sizeof_sanity_check.c:25: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:25: warning: null format string<br>
drbd_sizeof_sanity_check.c:25: called object is not a function<br>
drbd_sizeof_sanity_check.c:26: invalid suffix on integer constant<br>
drbd_sizeof_sanity_check.c:26: warning: null format string<br>
drbd_sizeof_sanity_check.c:26: called object is not a function<br>
make[3]: *** [drbd_sizeof_sanity_check.o] Error 1<br>
make[3]: Leaving directory `/usr/local/src/drbd-0.7.13/drbd'<br>
make[2]: *** [_mod_/usr/local/src/drbd-0.7.13/drbd] Error 2<br>
make[2]: Leaving directory
`/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'<br>
make[1]: *** [kbuild] Error 2<br>
make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/drbd'<br>
make: *** [all] Error 2<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Alex Cresswell - Systems Analyst
RHCE, CCNA, CLE
eXcellence in IS Solutions, Inc. (X-ISS)
========================================
Email: <a class="moz-txt-link-abbreviated" href="mailto:acresswell@x-iss.com">acresswell@x-iss.com</a>
VM/Pager: 713.339.7225
Office: 713.862.9200
Fax: 713.586.3224
========================================</pre>
</body>
</html>