The patch net_if.h.patch is only for BSD see the fix from githut https://github.com/tgraf/bmon/commit/4645116a57c41daa6a6349d61771b3993995305e Error with actual patch in Linux: x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include/bmon -I../include -I../include -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -Wall -I/usr/include/libnl3 -I/usr/include/libnl3 -O2 -march=k8-sse3 -pipe -msahf -mcx16 -c -o bmon-out_curses.o `test -f 'out_curses.c' || echo './'`out_curses.c In file included from /usr/include/libnl3/netlink/route/link.h:18:0, from in_netlink.c:44: /usr/include/linux/if.h:71:2: error: redeclaration of enumerator ‘IFF_UP’ IFF_UP = 1<<0, /* sysfs */ ^ In file included from in_netlink.c:26:0: /usr/include/net/if.h:44:5: note: previous definition of ‘IFF_UP’ was here IFF_UP = 0x1, /* Interface is up. */ ^ In file included from /usr/include/libnl3/netlink/route/link.h:18:0, from in_netlink.c:44: /usr/include/linux/if.h:72:2: error: redeclaration of enumerator ‘IFF_BROADCAST’ IFF_BROADCAST = 1<<1, /* __volatile__ */ ^ In file included from in_netlink.c:26:0: /usr/include/net/if.h:46:5: note: previous definition of ‘IFF_BROADCAST’ was here IFF_BROADCAST = 0x2, /* Broadcast address valid. */ ^ In file included from /usr/include/libnl3/netlink/route/link.h:18:0, from in_netlink.c:44: /usr/include/linux/if.h:73:2: error: redeclaration of enumerator ‘IFF_DEBUG’ IFF_DEBUG = 1<<2, /* sysfs */ ^ In file included from in_netlink.c:26:0: /usr/include/net/if.h:48:5: note: previous definition of ‘IFF_DEBUG’ was here IFF_DEBUG = 0x4, /* Turn on debugging. */ ^ In file included from /usr/include/libnl3/netlink/route/link.h:18:0, from in_netlink.c:44: /usr/include/linux/if.h:74:2: error: redeclaration of enumerator ‘IFF_LOOPBACK’ IFF_LOOPBACK = 1<<3, /* __volatile__ */ Reproducible: Always
1) Please post your `emerge --info net-analyzer/bmon' output in a comment. 2) Please attach the entire build log to this bug report. 3) Reopen this bug report.
Additionally, post your `emerge -vpq dev-libs/libnl' output.
*** Bug 557446 has been marked as a duplicate of this bug. ***
Got the same error while dev-libs/libnl-3.2.25 was emerged After emerging dev-libs/libnl-3.2.26 it compiled fine