[DRBD-user] building with patched lustre kernel

Alex Cresswell acresswell at x-iss.com
Tue Sep 20 18:10:05 CEST 2005

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


Hi,

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?

-Alex

> make -C drbd drbd_buildtag.c
> make[1]: Entering directory `/usr/local/src/drbd-0.7.13/drbd'
> make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/drbd'
> make[1]: Entering directory `/usr/local/src/drbd-0.7.13/user'
> gcc -c -Wall -I../drbd   -c -o drbdsetup.o drbdsetup.c
> gcc -c -Wall -I../drbd   -c -o ../drbd/drbd_buildtag.o 
> ../drbd/drbd_buildtag.c
> gcc -o drbdsetup drbdsetup.o ../drbd/drbd_buildtag.o
> gcc -c -Wall -I../drbd   -c -o drbdadm_main.o drbdadm_main.c
> gcc -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o 
> drbdadm_adjust.                                             o 
> ../drbd/drbd_buildtag.o
> make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/user'
> make[1]: Entering directory `/usr/local/src/drbd-0.7.13/scripts'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/scripts'
> make[1]: Entering directory `/usr/local/src/drbd-0.7.13/documentation'
> To (re)make the documentation: make doc
> make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/documentation'
> make[1]: Entering directory `/usr/local/src/drbd-0.7.13/drbd'
>
>     Calling toplevel makefile of kernel source tree, which I believe is in
>     KDIR=/lib/modules/2.4.21-32.0.1.EL_lustre.1.4.5smp/build
>
> trying to make dep ...
> make[2]: Entering directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> make[3]: Entering directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> make[4]: Entering directory `/usr/local/src/drbd-0.7.13/drbd'
> make[4]: Leaving directory `/usr/local/src/drbd-0.7.13/drbd'
> make[3]: Leaving directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> make[3]: Entering directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> /usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5/include/linux/modversions.h 
> was not                                              updated
> make[3]: Leaving directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> make[2]: Leaving directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> test -f ../scripts/adjust_drbd_config_h.sh && \
>  KDIR=/lib/modules/2.4.21-32.0.1.EL_lustre.1.4.5smp/build /bin/sh 
> ../scripts/adj                                             
> ust_drbd_config_h.sh
>
>   Using unmodified drbd_config.h
>
> 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
> make[2]: Entering directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> make -r -f tmp_include_depends all
> make[3]: Entering directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> 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.
> 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.
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> 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
> make[3]: Entering directory `/usr/local/src/drbd-0.7.13/drbd'
> 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
> drbd_sizeof_sanity_check.c:5: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:5: syntax error before numeric constant
> drbd_sizeof_sanity_check.c:6: `printk_R_ver_str' declared as function 
> returning                                              a function
> drbd_sizeof_sanity_check.c:6: warning: function declaration isn't a 
> prototype
> drbd_sizeof_sanity_check.c: In function 
> `sizeof_drbd_structs_sanity_check':
> drbd_sizeof_sanity_check.c:18: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:18: warning: null format string
> drbd_sizeof_sanity_check.c:18: called object is not a function
> drbd_sizeof_sanity_check.c:19: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:19: warning: null format string
> drbd_sizeof_sanity_check.c:19: called object is not a function
> drbd_sizeof_sanity_check.c:20: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:20: warning: null format string
> drbd_sizeof_sanity_check.c:20: called object is not a function
> drbd_sizeof_sanity_check.c:21: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:21: warning: null format string
> drbd_sizeof_sanity_check.c:21: called object is not a function
> drbd_sizeof_sanity_check.c:22: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:22: warning: null format string
> drbd_sizeof_sanity_check.c:22: called object is not a function
> drbd_sizeof_sanity_check.c:23: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:23: warning: null format string
> drbd_sizeof_sanity_check.c:23: called object is not a function
> drbd_sizeof_sanity_check.c:24: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:24: warning: null format string
> drbd_sizeof_sanity_check.c:24: called object is not a function
> drbd_sizeof_sanity_check.c:25: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:25: warning: null format string
> drbd_sizeof_sanity_check.c:25: called object is not a function
> drbd_sizeof_sanity_check.c:26: invalid suffix on integer constant
> drbd_sizeof_sanity_check.c:26: warning: null format string
> drbd_sizeof_sanity_check.c:26: called object is not a function
> make[3]: *** [drbd_sizeof_sanity_check.o] Error 1
> make[3]: Leaving directory `/usr/local/src/drbd-0.7.13/drbd'
> make[2]: *** [_mod_/usr/local/src/drbd-0.7.13/drbd] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.4.21-32.0.1.EL_lustre.1.4.5'
> make[1]: *** [kbuild] Error 2
> make[1]: Leaving directory `/usr/local/src/drbd-0.7.13/drbd'
> make: *** [all] Error 2


-- 
Alex Cresswell - Systems Analyst
RHCE, CCNA, CLE
eXcellence in IS Solutions, Inc. (X-ISS)
========================================
Email:      acresswell at x-iss.com
VM/Pager:   713.339.7225
Office:     713.862.9200
Fax:        713.586.3224
========================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20050920/63015590/attachment.htm>


More information about the drbd-user mailing list