[DRBD-user] error on compiling sys-cluster/drbd-kernel on gentoo

Marko Weber | Zackbummfertig.de weber at zackbummfertig.de
Wed Mar 25 21:20:55 CET 2009

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


hello list,
i am new here and have to start with a question on installing drbd  
8.0.14 on a gentoo system

on compiling the sys-cluster/drbd-kernel ,
i get an error =
(any1 can help me to solve this ? is any further info needed to you ?)


test -f ../scripts/adjust_drbd_config_h.sh && \
         KDIR=/usr/src/linux O= /bin/bash ../scripts/adjust_drbd_config_h.sh
/usr/src/linux 
/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd
        Sorry, automagic adjustment of drbd_config.h failed.
        For well known 2.6. kernels, no adjustment to the shipped 
drbd_config is necessary.
        You need to verify it yourself.
make: [kbuild] Fehler 1 (ignoriert)
make -C /usr/src/linux 
SUBDIRS=/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd  
modules
make[1]: Entering directory `/usr/src/linux-2.6.28-gentoo-r1'
  CC [M]  
/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd/drbd_buildtag.o
  CC [M]  
/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd/drbd_bitmap.o
  CC [M]  
/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd/drbd_proc.o
  CC [M]  
/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd/drbd_worker.o
  CC [M]  
/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd/drbd_receiver.o
/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd/drbd_receiver.c: 
In Funktion »drbd_alloc_ee«:
/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd/drbd_receiver.c:257: 
Fehler: »struct bio« hat kein Element namens »bi_hw_segments«
make[2]: *** 
[/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd/drbd_receiver.o] 
Fehler 1
make[1]: *** 
[_module_/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/work/drbd-8.0.14/drbd] 
Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.28-gentoo-r1'
make: *** [kbuild] Fehler 2
 *
 * ERROR: sys-cluster/drbd-kernel-8.0.14 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3282:  Called linux-mod_src_compile
 *             environment, line 2524:  Called die
 * The specific snippet of code:
 *               eval "emake 
HOSTCC="$(tc-getBUILD_CC)"                                                 
CROSS_COMPILE=${CHOST}-                                                 
LDFLAGS="$(get_abi_LDFLAGS)"   
${BUILD_FIXES}                                           
${BUILD_PARAMS}                                                 
${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" 
CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} 
${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc 
CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  -j1 KDIR=/usr/src/linux O= 
default
 *
 * If you need support, post the topmost build error, and the call stack 
if relevant.
 * A complete build log is located at 
'/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/sys-cluster/drbd-kernel-8.0.14/temp/environment'.
 *






More information about the drbd-user mailing list