[Drbd-dev] Re: Bug#282727: drbd0.7-module-source: Unable to build drbd0.7 binary module

Philipp Hug philipp at hug.cx
Thu Nov 25 00:37:59 CET 2004


If I remember correctly there's a problem building drbd against 2.6.10.
It should be fixed in drbd0.7.6 but it's not released yet.
I think you should define TASK_ZOMBIE as 16 in the meantime, but not sure.


Sven Mueller wrote:

> Philipp Hug [u] wrote on 24/11/2004 11:00:
>> There's a bug in module-assistant that prevents building packages 
>> with a dot in their name.
>> have a look at 
>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=277586 and apply the 
>> attached patch.
>> Maybe I should put info about this into the Debian.README.
> OK, even after applying that patch, I still have a problem compiling 
> drbd0.7-module (through module-assistant), see attached build-log.
> Any idea what might be the cause for this?
> As a side note: I got the same build error when trying to build the 
> module from pristine upstream source. When I define TASK_ZOMBIE as "8" 
> (as in the relevant include file), it continues building just to 
> generate an invalid .ko file with some undefined symbol (though I 
> don't recall which, only that it was a function defined in 
> linux/net.h, might have been sock_alloc())
>Build log starting, file: /var/cache/modass/drbd0.7-module-source.buildlog.2.6.10-rc2-incase.1101308449
>Date: Wed, 24 Nov 2004 16:00:49 +0100
>/usr/bin/make -C drbd clean
>make[1]: Entering directory `/usr/src/modules/drbd/drbd'
>rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*
>make[1]: Leaving directory `/usr/src/modules/drbd/drbd'
>for templ in /usr/src/modules/drbd/debian/drbd0.7-module-_KVERS_.postinst /usr/src/modules/drbd/debian/drbd0.7-module-_KVERS_.postinst.backup /usr/src/modules/drbd/debian/drbd0.7-module-_KVERS_.postinst.modules.in; do \
>    cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.10-rc2-incase/g'` ; \
>  done
>for templ in `ls debian/*.modules.in` ; do \
>    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
>    sed -e 's/##KVERS##/2.6.10-rc2-incase/g ;s/#KVERS#/2.6.10-rc2-incase/g ; s/_KVERS_/2.6.10-rc2-incase/g ; s/##KDREV##/2/g ; s/#KDREV#/2/g ; s/_KDREV_/2/g' < $templ > ${templ%.modules.in}; \
>  done
>dh_clean -k
>/usr/bin/make -C drbd KERNEL_SOURCES=/usr/src/linux-2.6.10-rc2 MODVERSIONS=detect KERNEL=linux-2.6.10-rc2-incase KDIR=/usr/src/linux-2.6.10-rc2
>make[1]: Entering directory `/usr/src/modules/drbd/drbd'
>    Calling toplevel makefile of kernel source tree, which I believe is in
>    KDIR=/usr/src/linux-2.6.10-rc2
>test -x ../scripts/adjust_drbd_config_h.sh && \
> KDIR=/usr/src/linux-2.6.10-rc2 ../scripts/adjust_drbd_config_h.sh
>make[1]: [kbuild] Error 1 (ignored)
>/usr/bin/make -C /usr/src/linux-2.6.10-rc2 SUBDIRS=/usr/src/modules/drbd/drbd  modules
>make[2]: Entering directory `/usr/src/linux-2.6.10-rc2'
>  CC [M]  /usr/src/modules/drbd/drbd/drbd_buildtag.o
>  CC [M]  /usr/src/modules/drbd/drbd/drbd_bitmap.o
>  CC [M]  /usr/src/modules/drbd/drbd/drbd_fs.o
>/usr/src/modules/drbd/drbd/drbd_fs.c: In function `drbd_ioctl_set_disk':
>/usr/src/modules/drbd/drbd/drbd_fs.c:484: error: `TASK_ZOMBIE' undeclared (first use in this function)
>/usr/src/modules/drbd/drbd/drbd_fs.c:484: error: (Each undeclared identifier is reported only once
>/usr/src/modules/drbd/drbd/drbd_fs.c:484: error: for each function it appears in.)
>make[3]: *** [/usr/src/modules/drbd/drbd/drbd_fs.o] Error 1
>make[2]: *** [_module_/usr/src/modules/drbd/drbd] Error 2
>make[2]: Leaving directory `/usr/src/linux-2.6.10-rc2'
>make[1]: *** [kbuild] Error 2
>make[1]: Leaving directory `/usr/src/modules/drbd/drbd'
>make: *** [binary-modules] Error 2

More information about the drbd-dev mailing list