[DRBD-user] Bug: section type conflict (drbd 8.4 / gcc 4.8.2)

Lars Ellenberg lars.ellenberg at linbit.com
Tue Apr 22 13:46:19 CEST 2014

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


On Sat, Apr 19, 2014 at 06:13:27PM +0200, Mark van Dijk wrote:
> Greetings,
> 
> When trying to compile drbd 8.4 using gcc 4.8.2, the following problem
> occurs. As I have no idea to fix it I hope you can help me.

You seem to suspect gcc version incompatibility,
or why do you list the compiler version?

Does it work with a different compiler version?
If so, which platform (OS) are you on,
and is this the "default" compiler there,
or where did you optain it?

Which DRBD git hash do you try to compile?
Against which kernel do you try to compile?

> If this is not a priority then I hope you can advise me what to do.
> Downgrade gcc, perhaps? 
> 
> 
> In file included from work/drbd-8.4.9999/drbd/drbd_nl.c:103:0:
> work/drbd-8.4.9999/drbd/linux/genl_magic_func.h:251:24: error: drbd_genl_ops causes a section type conflict with drbd_mcg_events
>  static struct genl_ops ZZZ_genl_ops[] __read_mostly = {
>                         ^
> In file included from work/drbd-8.4.9999/drbd/linux/genl_magic_func-genl_register_mc_group.h:17:0,
>                  from work/drbd-8.4.9999/drbd/linux/genl_magic_func.h:289,
>                  from work/drbd-8.4.9999/drbd/drbd_nl.c:103:
> work/drbd-8.4.9999/drbd/linux/drbd_genl.h:252:36: note: ‘drbd_mcg_events’ was declared here


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list