[DRBD-user] Compilation of drbd-8.4.3 for linux-3.9.4 fails

Lutz Vieweg lvml at 5t9.de
Mon Jun 3 20:44:12 CEST 2013

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


I need to upgrade a system (running drbd-8.4.3) to a newer kernel (because of an xfs_grow bug),
so I installed linux-3.9.4.

But linux-3.9.4 still contains the drbd-8.4.2 module, so I get the error message
> DRBD module version: 8.4.2
>    userland version: 8.4.3
> preferably kernel and userland versions should match.
while booting.

When I try to compile drbd-8.4.3 for linux-3.9.4, I get the following error:

>   CC [M]  /inst/drbd-8.4.3/drbd/lru_cache.o
> /inst/drbd-8.4.3/drbd/lru_cache.c:265:60: error: macro "hlist_for_each_entry" passed 4 arguments, but takes just 3
> /inst/drbd-8.4.3/drbd/lru_cache.c: In function ‘__lc_find’:
> /inst/drbd-8.4.3/drbd/lru_cache.c:265: error: ‘hlist_for_each_entry’ undeclared (first use in this function)
> /inst/drbd-8.4.3/drbd/lru_cache.c:265: error: (Each undeclared identifier is reported only once
> /inst/drbd-8.4.3/drbd/lru_cache.c:265: error: for each function it appears in.)
> /inst/drbd-8.4.3/drbd/lru_cache.c:265: error: expected ‘;’ before ‘{’ token
> /inst/drbd-8.4.3/drbd/lru_cache.c:261: warning: unused variable ‘e’
> /inst/drbd-8.4.3/drbd/lru_cache.c:260: warning: unused variable ‘n’
> /inst/drbd-8.4.3/drbd/lru_cache.c:276: warning: no return statement in function returning non-void

(And I'm not prepared to experiment with drbd-9, yet, it's a two-machine setup,

Is there a solution known for this?


Lutz Vieweg

More information about the drbd-user mailing list