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 8.3.10 from git repository against kernel 2.6.32-28-server from ubuntu lucid but I receive this error usr/bin/make -C drbd KERNEL_SOURCES=/usr/src/linux-headers-2.6.32-28- server MODVERSIONS=detect KERNEL=linux-2.6.32-28-server KDIR=/usr/src/ linux-headers-2.6.32-28-server make[2]: Entering directory `/usr/src/modules/drbd/drbd' Calling toplevel makefile of kernel source tree, which I believe is in KDIR=/usr/src/linux-headers-2.6.32-28-server test -f ../scripts/adjust_drbd_config_h.sh && \ KDIR=/usr/src/linux-headers-2.6.32-28-server O= /bin/ bash ../scripts/adjust_drbd_config_h.sh /usr/src/linux-headers-2.6.32-28-server /usr/src/modules/drbd/drbd KDIR=/usr/src/linux-headers-2.6.32-28-server O=/usr/src/linux-headers-2.6.32-28-server /usr/src/modules/drbd/drbd Adjusted drbd_config.h: --- ./linux/drbd_config.h 2011-02-16 12:25:29.000000000 +0100 +++ ./linux/drbd_config.h.new 2011-02-16 12:36:37.340105104 +0100 @@ -118 +118 @@ -//#define NEED_BLK_QUEUE_MAX_SEGMENTS +#define NEED_BLK_QUEUE_MAX_SEGMENTS /usr/bin/make -C /usr/src/linux-headers-2.6.32-28-server SUBDIRS=/usr/ src/modules/drbd/drbd modules make[3]: Entering directory `/usr/src/linux-headers-2.6.32-28-server' CC [M] /usr/src/modules/drbd/drbd/drbd_buildtag.o In file included from include/linux/notifier.h:13, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:666, from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from 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 include/linux/notifier.h:13, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:666, from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from 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 include/linux/kmemtrace.h:12, from include/linux/slub_def.h:13, from include/linux/slab.h:162, from include/linux/percpu.h:5, from /usr/src/linux-headers-2.6.32-28-server/arch/x86/ include/asm/local.h:4, from include/linux/module.h:20, from 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: include/trace/events/kmem.h: At top level: include/trace/events/kmem.h:49: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:83: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:117: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:155: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:193: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:212: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:231: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:253: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:275: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:304: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:330: error: expected ‘)’ before ‘(’ token include/trace/events/kmem.h:355: error: expected ‘)’ before ‘(’ token In file included from include/linux/slab.h:162, from include/linux/percpu.h:5, from /usr/src/linux-headers-2.6.32-28-server/arch/x86/ include/asm/local.h:4, from include/linux/module.h:20, from 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: include/linux/slub_def.h: In function ‘kmalloc_large’: include/linux/slub_def.h:236: error: implicit declaration of function ‘trace_kmalloc’ include/linux/slub_def.h: In function ‘kmalloc_node’: include/linux/slub_def.h:296: error: implicit declaration of function ‘trace_kmalloc_node’ In file included from include/linux/module.h:23, from 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: include/trace/events/module.h: At top level: include/trace/events/module.h:20: error: expected ‘)’ before ‘(’ token include/trace/events/module.h:39: error: expected ‘)’ before ‘(’ token include/trace/events/module.h:56: error: expected ‘)’ before ‘(’ token include/trace/events/module.h:78: error: expected ‘)’ before ‘(’ token include/trace/events/module.h:100: error: expected ‘)’ before ‘(’ token In file included from 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: include/linux/module.h: In function ‘__module_get’: include/linux/module.h:471: error: implicit declaration of function ‘trace_module_get’ include/linux/module.h: At top level: include/linux/module.h:541: warning: ‘struct tracepoint_iter’ declared inside parameter list 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 include/linux/device.h:25, from include/linux/dmaengine.h:24, from include/linux/skbuff.h:30, from include/linux/if_ether.h:124, from include/linux/netdevice.h:29, from 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: include/linux/semaphore.h:32: warning: conflicting types for ‘sema_init’ include/linux/semaphore.h:32: error: static declaration of ‘sema_init’ follows non-static declaration /usr/src/modules/drbd/drbd/linux/mutex.h:14: note: previous implicit declaration of ‘sema_init’ was here include/linux/semaphore.h:42: warning: conflicting types for ‘down’ /usr/src/modules/drbd/drbd/linux/mutex.h:19: note: previous implicit declaration of ‘down’ was here include/linux/semaphore.h:47: warning: conflicting types for ‘up’ /usr/src/modules/drbd/drbd/linux/mutex.h:29: note: 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: include/net/sock.h: In function ‘gfp_any’: include/net/sock.h:1438: error: implicit declaration of function ‘in_softirq’ make[4]: *** [/usr/src/modules/drbd/drbd/drbd_buildtag.o] Error 1 make[3]: *** [_module_/usr/src/modules/drbd/drbd] Error 2 make[3]: Leaving directory `/usr/src/linux-headers-2.6.32-28-server' 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 drbd 8.3.9, also from git, compile and works thanks -- Cordiali saluti Alessandro Bono