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

Lutz Vieweg lvml at 5t9.de
Tue Jun 4 11:34:18 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 noticed that the head of the repository
does compile with linux-3.9.4.

Is it reasonably (as in: no worse than with 8.4.3) safe to use
the 530e59afe31e9371c2e6c341b72ca5f54bc86841 tree?


Lutz Vieweg

On 06/03/2013 08:44 PM, Lutz Vieweg wrote:
> Hi,
> 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,
>   anyway...)
> Is there a solution known for this?
> Regards,
> Lutz Vieweg

More information about the drbd-user mailing list