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 can't seem to compile drbd-3.8.10 on Debian/squeeze using module-assistant. This is with Debian kernel linux-image-2.6.32-5-xen-amd64 (2.6.32-31) make[3]: Entering directory `/usr/src/linux-headers-2.6.32-5-xen-amd64' CC [M] /usr/src/modules/drbd/drbd/drbd_buildtag.o In file included from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/notifier.h:13, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/memory_hotplug.h:6, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/mmzone.h:668, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h:13, from /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h:48, from /usr/src/modules/drbd/drbd/linux/connector.h:109, from /usr/src/modules/drbd/drbd/linux/drbd.h:28, from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2: /usr/src/modules/drbd/drbd/linux/mutex.h:6:27: error: asm/semaphore.h: No such file or directory Any pointers? Full build trace is attached. thanks, jf -------------- next part -------------- dpatch deapply-all rm -rf patch-stamp patch-stampT debian/patched dh_clean /usr/bin/make -C drbd clean make[1]: Entering directory `/usr/src/modules/drbd/drbd' rm -rf .tmp_versions Module.markers Module.symvers modules.order rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel* make[1]: Leaving directory `/usr/src/modules/drbd/drbd' /usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules make[1]: Entering directory `/usr/src/modules/drbd' dpatch deapply-all rm -rf patch-stamp patch-stampT debian/patched dh_clean dh_clean: Compatibility levels before 5 are deprecated. /usr/bin/make -C drbd clean make[2]: Entering directory `/usr/src/modules/drbd/drbd' rm -rf .tmp_versions Module.markers Module.symvers modules.order rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel* make[2]: Leaving directory `/usr/src/modules/drbd/drbd' for templ in /usr/src/modules/drbd/debian/drbd8-module-_KVERS_.postinst /usr/src/modules/drbd/debian/drbd8-module-_KVERS_.postinst.backup /usr/src/modules/drbd/debian/drbd8-module-_KVERS_.postinst.modules.in /usr/src/modules/drbd/debian/drbd8-module-_KVERS_.postrm /usr/src/modules/drbd/debian/drbd8-module-_KVERS_.postrm.backup /usr/src/modules/drbd/debian/drbd8-module-_KVERS_.postrm.modules.in /usr/src/modules/drbd/debian/drbd8-module-_KVERS_.preinst /usr/src/modules/drbd/debian/drbd8-module-_KVERS_.preinst.backup /usr/src/modules/drbd/debian/drbd8-module-_KVERS_.preinst.modules.in; do \ cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.32-5-xen-amd64/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.32-5-xen-amd64/g ;s/#KVERS#/2.6.32-5-xen-amd64/g ; s/_KVERS_/2.6.32-5-xen-amd64/g ; s/##KDREV##/2.6.32-31/g ; s/#KDREV#/2.6.32-31/g ; s/_KDREV_/2.6.32-31/g ' < $templ > ${templ%.modules.in}; \ done dh_testdir dh_testroot dh_clean -k dh_clean: dh_clean -k is deprecated; use dh_prep instead dh_clean: Compatibility levels before 5 are deprecated. /usr/bin/make -C drbd KERNEL_SOURCES=/lib/modules/2.6.32-5-xen-amd64/build MODVERSIONS=detect KERNEL=linux-2.6.32-5-xen-amd64 KDIR=/lib/modules/2.6.32-5-xen-amd64/build make[2]: Entering directory `/usr/src/modules/drbd/drbd' Calling toplevel makefile of kernel source tree, which I believe is in KDIR=/lib/modules/2.6.32-5-xen-amd64/build test -f ../scripts/adjust_drbd_config_h.sh && \ KDIR=/lib/modules/2.6.32-5-xen-amd64/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh /lib/modules/2.6.32-5-xen-amd64/build /usr/src/modules/drbd/drbd KDIR=/usr/src/linux-headers-2.6.32-5-common-xen O=/lib/modules/2.6.32-5-xen-amd64/build /usr/src/modules/drbd/drbd Adjusted drbd_config.h: --- ./linux/drbd_config.h 2011-04-12 15:56:23.000000000 -0400 +++ ./linux/drbd_config.h.new 2011-04-14 17:05:42.000000000 -0400 @@ -118 +118 @@ -//#define NEED_BLK_QUEUE_MAX_SEGMENTS +#define NEED_BLK_QUEUE_MAX_SEGMENTS /usr/bin/make -C /lib/modules/2.6.32-5-xen-amd64/build SUBDIRS=/usr/src/modules/drbd/drbd modules make[3]: Entering directory `/usr/src/linux-headers-2.6.32-5-xen-amd64' CC [M] /usr/src/modules/drbd/drbd/drbd_buildtag.o In file included from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/notifier.h:13, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/memory_hotplug.h:6, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/mmzone.h:668, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h:13, from /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h:48, from /usr/src/modules/drbd/drbd/linux/connector.h:109, from /usr/src/modules/drbd/drbd/linux/drbd.h:28, from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2: /usr/src/modules/drbd/drbd/linux/mutex.h:6:27: error: asm/semaphore.h: No such file or directory In file included from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/notifier.h:13, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/memory_hotplug.h:6, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/mmzone.h:668, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h:13, from /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h:48, from /usr/src/modules/drbd/drbd/linux/connector.h:109, from /usr/src/modules/drbd/drbd/linux/drbd.h:28, from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2: /usr/src/modules/drbd/drbd/linux/mutex.h:9: error: field 'sem' has incomplete type /usr/src/modules/drbd/drbd/linux/mutex.h: In function 'mutex_init': /usr/src/modules/drbd/drbd/linux/mutex.h:14: error: implicit declaration of function 'sema_init' /usr/src/modules/drbd/drbd/linux/mutex.h: In function 'mutex_lock': /usr/src/modules/drbd/drbd/linux/mutex.h:19: error: implicit declaration of function 'down' /usr/src/modules/drbd/drbd/linux/mutex.h: In function 'mutex_lock_interruptible': /usr/src/modules/drbd/drbd/linux/mutex.h:24: error: implicit declaration of function 'down_interruptible' /usr/src/modules/drbd/drbd/linux/mutex.h: In function 'mutex_unlock': /usr/src/modules/drbd/drbd/linux/mutex.h:29: error: implicit declaration of function 'up' /usr/src/modules/drbd/drbd/linux/mutex.h: In function 'mutex_trylock': /usr/src/modules/drbd/drbd/linux/mutex.h:39: error: implicit declaration of function 'down_trylock' In file included from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/kmemtrace.h:12, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/slub_def.h:13, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/slab.h:162, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/percpu.h:5, from /usr/src/linux-headers-2.6.32-5-common-xen/arch/x86/include/asm/local.h:4, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h:20, from /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h:48, from /usr/src/modules/drbd/drbd/linux/connector.h:109, from /usr/src/modules/drbd/drbd/linux/drbd.h:28, from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2: /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h: At top level: /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:49: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:83: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:117: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:155: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:193: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:212: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:231: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:253: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:275: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:304: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:330: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/kmem.h:355: error: expected ')' before '(' token In file included from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/slab.h:162, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/percpu.h:5, from /usr/src/linux-headers-2.6.32-5-common-xen/arch/x86/include/asm/local.h:4, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h:20, from /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h:48, from /usr/src/modules/drbd/drbd/linux/connector.h:109, from /usr/src/modules/drbd/drbd/linux/drbd.h:28, from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2: /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/slub_def.h: In function 'kmalloc_large': /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/slub_def.h:236: error: implicit declaration of function 'trace_kmalloc' /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/slub_def.h: In function 'kmalloc_node': /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/slub_def.h:296: error: implicit declaration of function 'trace_kmalloc_node' In file included from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h:23, from /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h:48, from /usr/src/modules/drbd/drbd/linux/connector.h:109, from /usr/src/modules/drbd/drbd/linux/drbd.h:28, from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2: /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/module.h: At top level: /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/module.h:20: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/module.h:39: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/module.h:56: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/module.h:78: error: expected ')' before '(' token /usr/src/linux-headers-2.6.32-5-common-xen/include/trace/events/module.h:100: error: expected ')' before '(' token In file included from /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h:48, from /usr/src/modules/drbd/drbd/linux/connector.h:109, from /usr/src/modules/drbd/drbd/linux/drbd.h:28, from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2: /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h: In function '__module_get': /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h:471: error: implicit declaration of function 'trace_module_get' /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h: At top level: /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h:541: warning: 'struct tracepoint_iter' declared inside parameter list /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/module.h:541: warning: its scope is only this definition or declaration, which is probably not what you want In file included from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/device.h:25, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/dmaengine.h:24, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/skbuff.h:30, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/if_ether.h:124, from /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/netdevice.h:29, from /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h:50, from /usr/src/modules/drbd/drbd/linux/connector.h:109, from /usr/src/modules/drbd/drbd/linux/drbd.h:28, from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2: /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/semaphore.h:32: warning: conflicting types for 'sema_init' /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/semaphore.h:32: error: static declaration of 'sema_init' follows non-static declaration /usr/src/modules/drbd/drbd/linux/mutex.h:14: error: previous implicit declaration of 'sema_init' was here /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/semaphore.h:42: warning: conflicting types for 'down' /usr/src/modules/drbd/drbd/linux/mutex.h:19: warning: previous implicit declaration of 'down' was here /usr/src/linux-headers-2.6.32-5-common-xen/include/linux/semaphore.h:47: warning: conflicting types for 'up' /usr/src/modules/drbd/drbd/linux/mutex.h:29: warning: previous implicit declaration of 'up' was here In file included from /usr/src/modules/drbd/drbd/linux/connector.h:109, from /usr/src/modules/drbd/drbd/linux/drbd.h:28, from /usr/src/modules/drbd/drbd/drbd_buildtag.c:2: /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h: In function 'gfp_any': /usr/src/linux-headers-2.6.32-5-common-xen/include/net/sock.h:1453: error: implicit declaration of function 'in_softirq' make[6]: *** [/usr/src/modules/drbd/drbd/drbd_buildtag.o] Error 1 make[5]: *** [_module_/usr/src/modules/drbd/drbd] Error 2 make[4]: *** [sub-make] Error 2 make[3]: *** [all] Error 2 make[3]: Leaving directory `/usr/src/linux-headers-2.6.32-5-xen-amd64' make[2]: *** [kbuild] Error 2 make[2]: Leaving directory `/usr/src/modules/drbd/drbd' make[1]: *** [binary-modules] Error 2 make[1]: Leaving directory `/usr/src/modules/drbd' make: *** [kdist_build] Error 2